if [[ $defines != "" ]] ; then
flags_all="$flags_all "
for i in $defines ; do
- flags_all="${flags_all}-D$i "
+ flags_all="${flags_all}$i "
done
fi
if [[ $defines_shared != "" ]] ; then
flags_shared="$flags_shared "
for i in $defines_shared ; do
- flags_shared="${flags_shared}-D$i "
+ flags_shared="${flags_shared}$i "
done
fi
if [[ $defines_static != "" ]] ; then
flags_static="$flags_static "
for i in $defines_static ; do
- flags_static="${flags_static}-D$i "
+ flags_static="${flags_static}$i "
done
fi
f_array_length_t i = 0;
for (; i < data.define.used && F_status_is_fine(*status); i++) {
- length = fake_build_parameter_define_prefix_length + data.define.array[i].used;
-
- char string[length + 1];
-
- memcpy(string, fake_build_parameter_define_prefix, fake_build_parameter_define_prefix_length);
- memcpy(string + fake_build_parameter_define_prefix_length, data.define.array[i].string, data.define.array[i].used);
-
- string[length] = 0;
-
- *status = fll_execute_arguments_add(string, length, arguments);
+ *status = fll_execute_arguments_add(data.define.array[i].string, data.define.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
}
f_array_length_t i = 0;
for (; i < data_build.setting.defines_all.used && F_status_is_fine(*status); i++) {
- length = fake_build_parameter_define_prefix_length + data_build.setting.defines_all.array[i].used;
-
- char string[length + 1];
-
- memcpy(string, fake_build_parameter_define_prefix, fake_build_parameter_define_prefix_length);
- memcpy(string + fake_build_parameter_define_prefix_length, data_build.setting.defines_all.array[i].string, data_build.setting.defines_all.array[i].used);
-
- string[length] = 0;
-
- *status = fll_execute_arguments_add(string, length, arguments);
+ *status = fll_execute_arguments_add(data_build.setting.defines_all.array[i].string, data_build.setting.defines_all.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
if (is_shared) {
for (i = 0; i < data_build.setting.defines_shared.used && F_status_is_fine(*status); i++) {
- length = fake_build_parameter_define_prefix_length + data_build.setting.defines_shared.array[i].used;
-
- char string[length + 1];
-
- memcpy(string, fake_build_parameter_define_prefix, fake_build_parameter_define_prefix_length);
- memcpy(string + fake_build_parameter_define_prefix_length, data_build.setting.defines_shared.array[i].string, data_build.setting.defines_shared.array[i].used);
-
- string[length] = 0;
-
- *status = fll_execute_arguments_add(string, length, arguments);
+ *status = fll_execute_arguments_add(data_build.setting.defines_shared.array[i].string, data_build.setting.defines_shared.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
}
else {
for (i = 0; i < data_build.setting.defines_static.used && F_status_is_fine(*status); i++) {
- length = fake_build_parameter_define_prefix_length + data_build.setting.defines_static.array[i].used;
-
- char string[length + 1];
-
- memcpy(string, fake_build_parameter_define_prefix, fake_build_parameter_define_prefix_length);
- memcpy(string + fake_build_parameter_define_prefix_length, data_build.setting.defines_static.array[i].string, data_build.setting.defines_static.array[i].used);
-
- string[length] = 0;
-
- *status = fll_execute_arguments_add(string, length, arguments);
+ *status = fll_execute_arguments_add(data_build.setting.defines_static.array[i].string, data_build.setting.defines_static.array[i].used, arguments);
if (F_status_is_error(*status)) break;
} // for
}
defines_all\:
A collection of macro names.
These will be appended to the compiler for compiled languages such as C and C++.
- These will automatically have "-D" prepended to them.
These are applied to both shared and static builds.
defines_shared\:
A collection of macro names.
These will be appended to the compiler for compiled languages such as C and C++.
- These will automatically have "-D" prepended to them.
These are applied to only shared builds.
defines_static\:
A collection of macro names.
These will be appended to the compiler for compiled languages such as C and C++.
- These will automatically have "-D" prepended to them.
These are applied to only static builds.
environment\: