From 580acf845ca36e4a0abd7c1bccec42d37e869fc2 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 7 Mar 2025 00:05:05 -0600 Subject: [PATCH] Feature: Add more fine tuned build_name options. The build names should support shared, static, program, object, and library. Some of these may not be directly used. They should still be loaded. This is done to make the project compliant with the standard while allowing extendability/hackability. --- level_3/fake/c/main/build/library.c | 44 +++- level_3/fake/c/main/build/load.c | 342 +++++++++++++++++++++++---- level_3/fake/c/main/build/program.c | 36 ++- level_3/fake/c/main/build/string.c | 16 ++ level_3/fake/c/main/build/string.h | 50 ++++ level_3/fake/c/main/common/type.c | 16 ++ level_3/fake/c/main/common/type.h | 50 +++- level_3/fake/c/main/make/operate.c | 35 ++- level_3/fake/data/build/process_post.sh | 2 +- level_3/fake/data/build/process_pre.sh | 2 +- level_3/fake/documents/fakefile.txt | 2 +- level_3/fake/documents/settings.txt | 83 ++++++- level_3/fake/specifications/defines.txt | 2 +- level_3/fake/specifications/dependencies.txt | 2 +- level_3/fake/specifications/fakefile.txt | 2 +- level_3/fake/specifications/settings.txt | 22 +- 16 files changed, 632 insertions(+), 74 deletions(-) diff --git a/level_3/fake/c/main/build/library.c b/level_3/fake/c/main/build/library.c index 30a3be0..23e370d 100644 --- a/level_3/fake/c/main/build/library.c +++ b/level_3/fake/c/main/build/library.c @@ -84,7 +84,14 @@ extern "C" { f_number_unsigned_t strings_length = 1; - parameter_file_name.used = fake_build_parameter_library_name_prefix_s.used + data_build->setting.build_name.used + fake_build_parameter_library_name_suffix_shared_s.used; + parameter_file_name.used = fake_build_parameter_library_name_prefix_s.used + + (data_build->setting.build_name_library_shared.used + ? data_build->setting.build_name_library_shared.used + : data_build->setting.build_name_library.used + ? data_build->setting.build_name_library.used + : data_build->setting.build_name.used + ) + + fake_build_parameter_library_name_suffix_shared_s.used; if (data_build->setting.version_major.used) { parameter_file_name_major.used = parameter_file_name.used + data_build->setting.version_major_prefix.used + data_build->setting.version_major.used; @@ -139,12 +146,30 @@ extern "C" { strings[i]->used += fake_build_parameter_library_name_prefix_s.used; } // for - for (i = 0; i < strings_length; ++i) { + if (data_build->setting.build_name_library_shared.used) { + for (i = 0; i < strings_length; ++i) { - memcpy(strings[i]->string + strings[i]->used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used); + memcpy(strings[i]->string + strings[i]->used, data_build->setting.build_name_library_shared.string, sizeof(f_char_t) * data_build->setting.build_name_library_shared.used); - strings[i]->used += data_build->setting.build_name.used; - } // for + strings[i]->used += data_build->setting.build_name_library_shared.used; + } // for + } + else if (data_build->setting.build_name_library.used) { + for (i = 0; i < strings_length; ++i) { + + memcpy(strings[i]->string + strings[i]->used, data_build->setting.build_name_library.string, sizeof(f_char_t) * data_build->setting.build_name_library.used); + + strings[i]->used += data_build->setting.build_name_library.used; + } // for + } + else { + for (i = 0; i < strings_length; ++i) { + + memcpy(strings[i]->string + strings[i]->used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used); + + strings[i]->used += data_build->setting.build_name.used; + } // for + } for (i = 0; i < strings_length; ++i) { @@ -453,7 +478,14 @@ extern "C" { } if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = f_string_dynamic_append_nulless(data_build->setting.build_name, &main->cache_2); + main->setting.state.status = f_string_dynamic_append_nulless( + data_build->setting.build_name_library_static.used + ? data_build->setting.build_name_library_static + : data_build->setting.build_name_library.used + ? data_build->setting.build_name_library + : data_build->setting.build_name, + &main->cache_2 + ); } if (F_status_is_error_not(main->setting.state.status)) { diff --git a/level_3/fake/c/main/build/load.c b/level_3/fake/c/main/build/load.c index dc066d8..23669ac 100644 --- a/level_3/fake/c/main/build/load.c +++ b/level_3/fake/c/main/build/load.c @@ -220,6 +220,26 @@ extern "C" { f_string_dynamics_t build_language = f_string_dynamics_t_initialize; f_string_dynamics_t build_language_path = f_string_dynamics_t_initialize; f_string_dynamics_t build_name = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_library = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_library_shared = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_library_static = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_library = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_library_shared = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_library_static = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_program = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_program_shared = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_program_static = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_shared = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_shared_shared = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_shared_static = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_static = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_static_shared = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_object_static_static = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_program = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_program_shared = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_program_static = f_string_dynamics_t_initialize; + f_string_dynamics_t build_name_script = f_string_dynamics_t_initialize; f_string_dynamics_t build_script = f_string_dynamics_t_initialize; f_string_dynamics_t build_shared = f_string_dynamics_t_initialize; f_string_dynamics_t build_static = f_string_dynamics_t_initialize; @@ -281,6 +301,22 @@ extern "C" { fake_build_setting_name_build_libraries_shared_s, fake_build_setting_name_build_libraries_static_s, fake_build_setting_name_build_name_s, + fake_build_setting_name_build_name_library_s, + fake_build_setting_name_build_name_library_shared_s, + fake_build_setting_name_build_name_library_static_s, + fake_build_setting_name_build_name_object_s, + fake_build_setting_name_build_name_object_library_s, + fake_build_setting_name_build_name_object_library_shared_s, + fake_build_setting_name_build_name_object_library_static_s, + fake_build_setting_name_build_name_object_program_s, + fake_build_setting_name_build_name_object_program_shared_s, + fake_build_setting_name_build_name_object_program_static_s, + fake_build_setting_name_build_name_object_shared_s, + fake_build_setting_name_build_name_object_static_s, + fake_build_setting_name_build_name_program_s, + fake_build_setting_name_build_name_program_shared_s, + fake_build_setting_name_build_name_program_static_s, + fake_build_setting_name_build_name_script_s, fake_build_setting_name_build_objects_library_s, fake_build_setting_name_build_objects_library_shared_s, fake_build_setting_name_build_objects_library_static_s, @@ -391,6 +427,22 @@ extern "C" { &setting->build_libraries_shared, &setting->build_libraries_static, &build_name, + &build_name_library, + &build_name_library_shared, + &build_name_library_static, + &build_name_object, + &build_name_object_library, + &build_name_object_library_shared, + &build_name_object_library_static, + &build_name_object_program, + &build_name_object_program_shared, + &build_name_object_program_static, + &build_name_object_shared, + &build_name_object_static, + &build_name_program, + &build_name_program_shared, + &build_name_program_static, + &build_name_script, &setting->build_objects_library, &setting->build_objects_library_shared, &setting->build_objects_library_static, @@ -501,6 +553,22 @@ extern "C" { F_false, // setting->build_libraries_shared F_false, // setting->build_libraries_static F_false, // build_name + F_false, // build_name_library + F_false, // build_name_library_shared + F_false, // build_name_library_static + F_false, // build_name_object + F_false, // build_name_object_library + F_false, // build_name_object_library_shared + F_false, // build_name_object_library_static + F_false, // build_name_object_program + F_false, // build_name_object_program_shared + F_false, // build_name_object_program_static + F_false, // build_name_object_shared + F_false, // build_name_object_static + F_false, // build_name_program + F_false, // build_name_program_shared + F_false, // build_name_program_static + F_false, // build_name_script F_false, // setting->build_objects_library F_false, // setting->build_objects_library_shared F_false, // setting->build_objects_library_static @@ -724,6 +792,22 @@ extern "C" { fake_build_setting_name_build_language_s, fake_build_setting_name_build_language_path_s, fake_build_setting_name_build_name_s, + fake_build_setting_name_build_name_library_s, + fake_build_setting_name_build_name_library_shared_s, + fake_build_setting_name_build_name_library_static_s, + fake_build_setting_name_build_name_object_s, + fake_build_setting_name_build_name_object_library_s, + fake_build_setting_name_build_name_object_library_shared_s, + fake_build_setting_name_build_name_object_library_static_s, + fake_build_setting_name_build_name_object_program_s, + fake_build_setting_name_build_name_object_program_shared_s, + fake_build_setting_name_build_name_object_program_static_s, + fake_build_setting_name_build_name_object_shared_s, + fake_build_setting_name_build_name_object_static_s, + fake_build_setting_name_build_name_program_s, + fake_build_setting_name_build_name_program_shared_s, + fake_build_setting_name_build_name_program_static_s, + fake_build_setting_name_build_name_script_s, fake_build_setting_name_build_script_s, fake_build_setting_name_build_shared_s, fake_build_setting_name_build_static_s, @@ -770,6 +854,22 @@ extern "C" { &build_language, &build_language_path, &build_name, + &build_name_library, + &build_name_library_shared, + &build_name_library_static, + &build_name_object, + &build_name_object_library, + &build_name_object_library_shared, + &build_name_object_library_static, + &build_name_object_program, + &build_name_object_program_shared, + &build_name_object_program_static, + &build_name_object_shared, + &build_name_object_static, + &build_name_program, + &build_name_program_shared, + &build_name_program_static, + &build_name_script, &build_script, &build_shared, &build_static, @@ -816,6 +916,22 @@ extern "C" { 0, // build_language 0, // build_language_path 0, // build_name + 0, // build_name_library + 0, // build_name_library_shared + 0, // build_name_library_static + 0, // build_name_object + 0, // build_name_object_library + 0, // build_name_object_library_shared + 0, // build_name_object_library_static + 0, // build_name_object_program + 0, // build_name_object_program_shared + 0, // build_name_object_program_static + 0, // build_name_object_shared + 0, // build_name_object_static + 0, // build_name_program + 0, // build_name_program_shared + 0, // build_name_program_static + 0, // build_name_script &setting->build_script, // build_script &setting->build_shared, // build_shared &setting->build_static, // build_static @@ -852,6 +968,22 @@ extern "C" { &setting->build_language, // build_language &setting->build_language_path, // build_language_path &setting->build_name, // build_name + &setting->build_name_library, // build_name_library + &setting->build_name_library_shared, // build_name_library_shared + &setting->build_name_library_static, // build_name_library_static + &setting->build_name_object, // build_name_object + &setting->build_name_object_library, // build_name_object_library + &setting->build_name_object_library_shared, // build_name_object_library_shared + &setting->build_name_object_library_static, // build_name_object_library_static + &setting->build_name_object_program, // build_name_object_program + &setting->build_name_object_program_shared, // build_name_object_program_shared + &setting->build_name_object_program_static, // build_name_object_program_static + &setting->build_name_object_shared, // build_name_object_shared + &setting->build_name_object_static, // build_name_object_static + &setting->build_name_program, // build_name_program + &setting->build_name_program_shared, // build_name_program_shared + &setting->build_name_program_static, // build_name_program_static + &setting->build_name_script, // build_name_script 0, // build_script 0, // build_shared 0, // build_static @@ -898,44 +1030,60 @@ extern "C" { settings_matches[15], // build_language settings_matches[16], // build_language_path settings_matches[20], // build_name - settings_matches[27], // build_script - settings_matches[28], // build_shared - settings_matches[44], // build_static - settings_matches[70], // has_path_standard - settings_matches[73], // path_headers - settings_matches[74], // path_language - settings_matches[75], // path_library_script - settings_matches[76], // path_library_shared - settings_matches[77], // path_library_static - settings_matches[78], // path_object_script - settings_matches[79], // path_object_shared - settings_matches[80], // path_object_static - settings_matches[81], // path_program_script - settings_matches[82], // path_program_shared - settings_matches[83], // path_program_static - settings_matches[84], // path_sources - settings_matches[85], // path_sources_headers - settings_matches[86], // path_sources_library - settings_matches[87], // path_sources_object - settings_matches[88], // path_sources_program - settings_matches[89], // path_sources_script - settings_matches[90], // preserve_path_headers - settings_matches[91], // process_post - settings_matches[92], // process_pre - settings_matches[93], // search_exclusive - settings_matches[94], // search_shared - settings_matches[95], // search_static - settings_matches[96], // stage - settings_matches[97], // version_file - settings_matches[98], // version_major - settings_matches[99], // version_major_prefix - settings_matches[100], // version_micro - settings_matches[101], // version_micro_prefix - settings_matches[102], // version_minor - settings_matches[103], // version_minor_prefix - settings_matches[104], // version_nano - settings_matches[105], // version_nano_prefix - settings_matches[106], // version_target + settings_matches[21], // build_name_library, + settings_matches[22], // build_name_library_shared + settings_matches[23], // build_name_library_static + settings_matches[24], // build_name_object + settings_matches[25], // build_name_object_library + settings_matches[26], // build_name_object_library_shared + settings_matches[27], // build_name_object_library_static + settings_matches[28], // build_name_object_program + settings_matches[29], // build_name_object_program_shared + settings_matches[30], // build_name_object_program_static + settings_matches[31], // build_name_object_shared + settings_matches[32], // build_name_object_static + settings_matches[33], // build_name_program + settings_matches[35], // build_name_program_shared + settings_matches[35], // build_name_program_static + settings_matches[36], // build_name_script + settings_matches[43], // build_script + settings_matches[44], // build_shared + settings_matches[60], // build_static + settings_matches[86], // has_path_standard + settings_matches[89], // path_headers + settings_matches[90], // path_language + settings_matches[91], // path_library_script + settings_matches[92], // path_library_shared + settings_matches[93], // path_library_static + settings_matches[94], // path_object_script + settings_matches[95], // path_object_shared + settings_matches[96], // path_object_static + settings_matches[97], // path_program_script + settings_matches[98], // path_program_shared + settings_matches[99], // path_program_static + settings_matches[100], // path_sources + settings_matches[101], // path_sources_headers + settings_matches[102], // path_sources_library + settings_matches[103], // path_sources_object + settings_matches[104], // path_sources_program + settings_matches[105], // path_sources_script + settings_matches[106], // preserve_path_headers + settings_matches[107], // process_post + settings_matches[108], // process_pre + settings_matches[109], // search_exclusive + settings_matches[110], // search_shared + settings_matches[111], // search_static + settings_matches[112], // stage + settings_matches[113], // version_file + settings_matches[114], // version_major + settings_matches[115], // version_major_prefix + settings_matches[116], // version_micro + settings_matches[117], // version_micro_prefix + settings_matches[118], // version_minor + settings_matches[119], // version_minor_prefix + settings_matches[120], // version_nano + settings_matches[121], // version_nano_prefix + settings_matches[122], // version_target }; const f_string_static_t settings_single_string_default[] = { @@ -944,6 +1092,22 @@ extern "C" { f_string_empty_s, // build_language f_string_empty_s, // build_language_path f_string_empty_s, // build_name + f_string_empty_s, // build_name_library + f_string_empty_s, // build_name_library_shared + f_string_empty_s, // build_name_library_static + f_string_empty_s, // build_name_object + f_string_empty_s, // build_name_object_library + f_string_empty_s, // build_name_object_library_shared + f_string_empty_s, // build_name_object_library_static + f_string_empty_s, // build_name_object_program + f_string_empty_s, // build_name_object_program_shared + f_string_empty_s, // build_name_object_program_static + f_string_empty_s, // build_name_object_shared + f_string_empty_s, // build_name_object_static + f_string_empty_s, // build_name_program + f_string_empty_s, // build_name_program_shared + f_string_empty_s, // build_name_program_static + f_string_empty_s, // build_name_script f_string_empty_s, // build_script f_string_empty_s, // build_shared f_string_empty_s, // build_static @@ -996,6 +1160,22 @@ extern "C" { 0, // build_language 0, // build_language_path 0, // build_name + 0, // build_name_library + 0, // build_name_library_shared + 0, // build_name_library_static + 0, // build_name_object + 0, // build_name_object_library + 0, // build_name_object_library_shared + 0, // build_name_object_library_static + 0, // build_name_object_program + 0, // build_name_object_program_shared + 0, // build_name_object_program_static + 0, // build_name_object_shared + 0, // build_name_object_static + 0, // build_name_program + 0, // build_name_program_shared + 0, // build_name_program_static + 0, // build_name_script 0, // build_script 0, // build_shared 0, // build_static @@ -1042,6 +1222,22 @@ extern "C" { 0, // build_language 0, // build_language_path 0, // build_name + 0, // build_name_library + 0, // build_name_library_shared + 0, // build_name_library_static + 0, // build_name_object + 0, // build_name_object_library + 0, // build_name_object_library_shared + 0, // build_name_object_library_static + 0, // build_name_object_program + 0, // build_name_object_program_shared + 0, // build_name_object_program_static + 0, // build_name_object_shared + 0, // build_name_object_static + 0, // build_name_program + 0, // build_name_program_shared + 0, // build_name_program_static + 0, // build_name_script 0, // build_script 0, // build_shared 0, // build_static @@ -1088,6 +1284,22 @@ extern "C" { f_string_empty_s, // build_language f_string_empty_s, // build_language_path f_string_empty_s, // build_name + f_string_empty_s, // build_name_library + f_string_empty_s, // build_name_library_shared + f_string_empty_s, // build_name_library_static + f_string_empty_s, // build_name_object + f_string_empty_s, // build_name_object_library + f_string_empty_s, // build_name_object_library_shared + f_string_empty_s, // build_name_object_library_static + f_string_empty_s, // build_name_object_program + f_string_empty_s, // build_name_object_program_shared + f_string_empty_s, // build_name_object_program_static + f_string_empty_s, // build_name_object_shared + f_string_empty_s, // build_name_object_static + f_string_empty_s, // build_name_program + f_string_empty_s, // build_name_program_shared + f_string_empty_s, // build_name_program_static + f_string_empty_s, // build_name_script fake_common_setting_bool_yes_s, // build_script fake_common_setting_bool_yes_s, // build_shared fake_common_setting_bool_yes_s, // build_static @@ -1135,6 +1347,22 @@ extern "C" { 4, // build_language 2, // build_language_path 6, // build_name + 6, // build_name_library + 6, // build_name_library_shared + 6, // build_name_library_static + 6, // build_name_object + 6, // build_name_object_library + 6, // build_name_object_library_shared + 6, // build_name_object_library_static + 6, // build_name_object_program + 6, // build_name_object_program_shared + 6, // build_name_object_program_static + 6, // build_name_object_shared + 6, // build_name_object_static + 6, // build_name_program + 6, // build_name_program_shared + 6, // build_name_program_static + 6, // build_name_script 1, // build_script 1, // build_shared 1, // build_static @@ -1177,7 +1405,7 @@ extern "C" { f_string_dynamic_t *single_source = 0; - for (i = 0; i < 43; ++i) { + for (i = 0; i < 59; ++i) { // Assign the default for literal and path types. if (!settings_single_matches[i] && settings_single_destination[i]) { @@ -1318,36 +1546,36 @@ extern "C" { // Handle special defaults for path sources. if (F_status_is_error_not(main->setting.state.status)) { - // [85] path_sources_headers. - if (!settings_matches[85]) { + // [101] path_sources_headers. + if (!settings_matches[101]) { setting->path_sources_headers.used = 0; main->setting.state.status = f_string_dynamic_append_nulless(setting->path_sources, &setting->path_sources_headers); } - // [86] path_sources_library. - if (!settings_matches[86] && F_status_is_error_not(main->setting.state.status)) { + // [102] path_sources_library. + if (!settings_matches[102] && F_status_is_error_not(main->setting.state.status)) { setting->path_sources_library.used = 0; main->setting.state.status = f_string_dynamic_append_nulless(setting->path_sources, &setting->path_sources_library); } - // [87] path_sources_object. - if (!settings_matches[87] && F_status_is_error_not(main->setting.state.status)) { + // [103] path_sources_object. + if (!settings_matches[103] && F_status_is_error_not(main->setting.state.status)) { setting->path_sources_object.used = 0; main->setting.state.status = f_string_dynamic_append_nulless(setting->path_sources, &setting->path_sources_object); } - // [88] path_sources_program. - if (!settings_matches[88] && F_status_is_error_not(main->setting.state.status)) { + // [104] path_sources_program. + if (!settings_matches[104] && F_status_is_error_not(main->setting.state.status)) { setting->path_sources_program.used = 0; main->setting.state.status = f_string_dynamic_append_nulless(setting->path_sources, &setting->path_sources_program); } - // [89] path_sources_script. - if (!settings_matches[89] && F_status_is_error_not(main->setting.state.status)) { + // [105] path_sources_script. + if (!settings_matches[105] && F_status_is_error_not(main->setting.state.status)) { setting->path_sources_script.used = 0; main->setting.state.status = f_string_dynamic_append_nulless(setting->path_sources, &setting->path_sources_script); @@ -1378,6 +1606,22 @@ extern "C" { f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_language.array, &build_language.used, &build_language.size, &f_string_dynamics_delete_callback); f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_language_path.array, &build_language_path.used, &build_language_path.size, &f_string_dynamics_delete_callback); f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name.array, &build_name.used, &build_name.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_library, &build_name_library.used, &build_name_library.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_library_shared, &build_name_library_shared.used, &build_name_library_shared.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_library_static, &build_name_library_static.used, &build_name_library_static.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object, &build_name_object.used, &build_name_object.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_library, &build_name_object_library.used, &build_name_object_library.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_library_shared, &build_name_object_library_shared.used, &build_name_object_library_shared.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_library_static, &build_name_object_library_static.used, &build_name_object_library_static.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_program, &build_name_object_program.used, &build_name_object_program.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_program_shared, &build_name_object_program_shared.used, &build_name_object_program_shared.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_program_static, &build_name_object_program_static.used, &build_name_object_program_static.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_shared, &build_name_object_shared.used, &build_name_object_shared.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_object_static, &build_name_object_static.used, &build_name_object_static.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_program, &build_name_program.used, &build_name_program.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_program_shared, &build_name_program_shared.used, &build_name_program_shared.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_program_static, &build_name_program_static.used, &build_name_program_static.size, &f_string_dynamics_delete_callback); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_name_script, &build_name_script.used, &build_name_script.size, &f_string_dynamics_delete_callback); f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_script.array, &build_script.used, &build_script.size, &f_string_dynamics_delete_callback); f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_shared.array, &build_shared.used, &build_shared.size, &f_string_dynamics_delete_callback); f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &build_static.array, &build_static.used, &build_static.size, &f_string_dynamics_delete_callback); diff --git a/level_3/fake/c/main/build/program.c b/level_3/fake/c/main/build/program.c index cd6c78e..0adcfe2 100644 --- a/level_3/fake/c/main/build/program.c +++ b/level_3/fake/c/main/build/program.c @@ -84,7 +84,14 @@ extern "C" { main->setting.state.status = f_string_dynamic_append_nulless(data->path_build_programs_shared, &main->cache_argument); if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = f_string_dynamic_append_nulless(data_build->setting.build_name, &main->cache_argument); + main->setting.state.status = f_string_dynamic_append_nulless( + data_build->setting.build_name_program_shared.used + ? data_build->setting.build_name_program_shared + : data_build->setting.build_name_program.used + ? data_build->setting.build_name_program + : data_build->setting.build_name, + &main->cache_argument + ); } if (F_status_is_error(main->setting.state.status)) { @@ -115,7 +122,14 @@ extern "C" { main->setting.state.status = f_string_dynamic_append_nulless(fake_build_parameter_library_link_file_s, &main->cache_argument); if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = f_string_dynamic_append_nulless(data_build->setting.build_name, &main->cache_argument); + main->setting.state.status = f_string_dynamic_append_nulless( + data_build->setting.build_name_library_shared.used + ? data_build->setting.build_name_library_shared + : data_build->setting.build_name_library.used + ? data_build->setting.build_name_library + : data_build->setting.build_name, + &main->cache_argument + ); } if (F_status_is_error(main->setting.state.status)) { @@ -217,7 +231,14 @@ extern "C" { } if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = f_string_dynamic_append_nulless(data_build->setting.build_name, &main->cache_argument); + main->setting.state.status = f_string_dynamic_append_nulless( + data_build->setting.build_name_library_static.used + ? data_build->setting.build_name_library_static + : data_build->setting.build_name_library.used + ? data_build->setting.build_name_library + : data_build->setting.build_name, + &main->cache_argument + ); } if (F_status_is_error_not(main->setting.state.status)) { @@ -256,7 +277,14 @@ extern "C" { main->setting.state.status = f_string_dynamic_append_nulless(data->path_build_programs_static, &main->cache_argument); if (F_status_is_error_not(main->setting.state.status)) { - main->setting.state.status = f_string_dynamic_append_nulless(data_build->setting.build_name, &main->cache_argument); + main->setting.state.status = f_string_dynamic_append_nulless( + data_build->setting.build_name_program_static.used + ? data_build->setting.build_name_program_static + : data_build->setting.build_name_program.used + ? data_build->setting.build_name_program + : data_build->setting.build_name, + &main->cache_argument + ); } if (F_status_is_error(main->setting.state.status)) { diff --git a/level_3/fake/c/main/build/string.c b/level_3/fake/c/main/build/string.c index 73bff40..f94cc30 100644 --- a/level_3/fake/c/main/build/string.c +++ b/level_3/fake/c/main/build/string.c @@ -67,6 +67,22 @@ const f_string_static_t fake_build_documentation_files_s = macro_f_string_static const f_string_static_t fake_build_setting_name_build_libraries_shared_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_libraries_shared_s, 0, FAKE_build_setting_name_build_libraries_shared_s_length); const f_string_static_t fake_build_setting_name_build_libraries_static_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_libraries_static_s, 0, FAKE_build_setting_name_build_libraries_static_s_length); const f_string_static_t fake_build_setting_name_build_name_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_s, 0, FAKE_build_setting_name_build_name_s_length); + const f_string_static_t fake_build_setting_name_build_name_library_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_library_s, 0, FAKE_build_setting_name_build_name_library_s_length); + const f_string_static_t fake_build_setting_name_build_name_library_shared_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_library_shared_s, 0, FAKE_build_setting_name_build_name_library_shared_s_length); + const f_string_static_t fake_build_setting_name_build_name_library_static_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_library_static_s, 0, FAKE_build_setting_name_build_name_library_static_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_s, 0, FAKE_build_setting_name_build_name_object_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_library_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_library_s, 0, FAKE_build_setting_name_build_name_object_library_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_library_shared_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_library_shared_s, 0, FAKE_build_setting_name_build_name_object_library_shared_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_library_static_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_library_static_s, 0, FAKE_build_setting_name_build_name_object_library_static_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_program_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_program_s, 0, FAKE_build_setting_name_build_name_object_program_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_program_shared_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_program_shared_s, 0, FAKE_build_setting_name_build_name_object_program_shared_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_program_static_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_program_static_s, 0, FAKE_build_setting_name_build_name_object_program_static_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_shared_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_shared_s, 0, FAKE_build_setting_name_build_name_object_shared_s_length); + const f_string_static_t fake_build_setting_name_build_name_object_static_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_object_static_s, 0, FAKE_build_setting_name_build_name_object_static_s_length); + const f_string_static_t fake_build_setting_name_build_name_program_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_program_s, 0, FAKE_build_setting_name_build_name_program_s_length); + const f_string_static_t fake_build_setting_name_build_name_program_shared_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_program_shared_s, 0, FAKE_build_setting_name_build_name_program_shared_s_length); + const f_string_static_t fake_build_setting_name_build_name_program_static_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_program_static_s, 0, FAKE_build_setting_name_build_name_program_static_s_length); + const f_string_static_t fake_build_setting_name_build_name_script_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_name_script_s, 0, FAKE_build_setting_name_build_name_script_s_length); const f_string_static_t fake_build_setting_name_build_objects_library_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_objects_library_s, 0, FAKE_build_setting_name_build_objects_library_s_length); const f_string_static_t fake_build_setting_name_build_objects_library_shared_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_objects_library_shared_s, 0, FAKE_build_setting_name_build_objects_library_shared_s_length); const f_string_static_t fake_build_setting_name_build_objects_library_static_s = macro_f_string_static_t_initialize_1(FAKE_build_setting_name_build_objects_library_static_s, 0, FAKE_build_setting_name_build_objects_library_static_s_length); diff --git a/level_3/fake/c/main/build/string.h b/level_3/fake/c/main/build/string.h index c9802cb..0f50639 100644 --- a/level_3/fake/c/main/build/string.h +++ b/level_3/fake/c/main/build/string.h @@ -147,6 +147,22 @@ extern "C" { #define FAKE_build_setting_name_build_libraries_shared_s "build_libraries_shared" #define FAKE_build_setting_name_build_libraries_static_s "build_libraries_static" #define FAKE_build_setting_name_build_name_s "build_name" + #define FAKE_build_setting_name_build_name_library_s "build_name_library" + #define FAKE_build_setting_name_build_name_library_shared_s "build_name_library_shared" + #define FAKE_build_setting_name_build_name_library_static_s "build_name_library_static" + #define FAKE_build_setting_name_build_name_object_s "build_name_object" + #define FAKE_build_setting_name_build_name_object_library_s "build_name_object_library" + #define FAKE_build_setting_name_build_name_object_library_shared_s "build_name_object_library_shared" + #define FAKE_build_setting_name_build_name_object_library_static_s "build_name_object_library_static" + #define FAKE_build_setting_name_build_name_object_program_s "build_name_object_program" + #define FAKE_build_setting_name_build_name_object_program_shared_s "build_name_object_program_shared" + #define FAKE_build_setting_name_build_name_object_program_static_s "build_name_object_program_static" + #define FAKE_build_setting_name_build_name_object_shared_s "build_name_object_shared" + #define FAKE_build_setting_name_build_name_object_static_s "build_name_object_static" + #define FAKE_build_setting_name_build_name_program_s "build_name_program" + #define FAKE_build_setting_name_build_name_program_shared_s "build_name_program_shared" + #define FAKE_build_setting_name_build_name_program_static_s "build_name_program_static" + #define FAKE_build_setting_name_build_name_script_s "build_name_script" #define FAKE_build_setting_name_build_objects_library_s "build_objects_library" #define FAKE_build_setting_name_build_objects_library_shared_s "build_objects_library_shared" #define FAKE_build_setting_name_build_objects_library_static_s "build_objects_library_static" @@ -261,6 +277,23 @@ extern "C" { #define FAKE_build_setting_name_build_libraries_shared_s_length 22 #define FAKE_build_setting_name_build_libraries_static_s_length 22 #define FAKE_build_setting_name_build_name_s_length 10 + #define FAKE_build_setting_name_build_name_library_s_length 18 + #define FAKE_build_setting_name_build_name_library_shared_s_length 25 + #define FAKE_build_setting_name_build_name_library_static_s_length 25 + #define FAKE_build_setting_name_build_name_object_s_length 11 + #define FAKE_build_setting_name_build_name_object_library_s_length 25 + #define FAKE_build_setting_name_build_name_object_library_shared_s_length 32 + #define FAKE_build_setting_name_build_name_object_library_static_s_length 32 + #define FAKE_build_setting_name_build_name_object_program_s_length 25 + #define FAKE_build_setting_name_build_name_object_program_shared_s_length 32 + #define FAKE_build_setting_name_build_name_object_program_static_s_length 32 + #define FAKE_build_setting_name_build_name_object_shared_s_length 24 + #define FAKE_build_setting_name_build_name_object_static_s_length 24 + #define FAKE_build_setting_name_build_name_program_s_length 18 + #define FAKE_build_setting_name_build_name_program_shared_s_length 25 + #define FAKE_build_setting_name_build_name_program_static_s_length 25 + #define FAKE_build_setting_name_build_name_program_script_s_length 25 + #define FAKE_build_setting_name_build_name_script_s_length 17 #define FAKE_build_setting_name_build_objects_library_s_length 21 #define FAKE_build_setting_name_build_objects_library_shared_s_length 28 #define FAKE_build_setting_name_build_objects_library_static_s_length 28 @@ -375,6 +408,23 @@ extern "C" { extern const f_string_static_t fake_build_setting_name_build_libraries_shared_s; extern const f_string_static_t fake_build_setting_name_build_libraries_static_s; extern const f_string_static_t fake_build_setting_name_build_name_s; + extern const f_string_static_t fake_build_setting_name_build_name_library_s; + extern const f_string_static_t fake_build_setting_name_build_name_library_shared_s; + extern const f_string_static_t fake_build_setting_name_build_name_library_static_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_library_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_library_shared_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_library_static_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_program_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_program_shared_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_program_static_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_shared_s; + extern const f_string_static_t fake_build_setting_name_build_name_object_static_s; + extern const f_string_static_t fake_build_setting_name_build_name_program_s; + extern const f_string_static_t fake_build_setting_name_build_name_program_shared_s; + extern const f_string_static_t fake_build_setting_name_build_name_program_static_s; + extern const f_string_static_t fake_build_setting_name_build_name_program_script_s; + extern const f_string_static_t fake_build_setting_name_build_name_script_s; extern const f_string_static_t fake_build_setting_name_build_objects_library_s; extern const f_string_static_t fake_build_setting_name_build_objects_library_shared_s; extern const f_string_static_t fake_build_setting_name_build_objects_library_static_s; diff --git a/level_3/fake/c/main/common/type.c b/level_3/fake/c/main/common/type.c index 0bc2fba..32b705e 100644 --- a/level_3/fake/c/main/common/type.c +++ b/level_3/fake/c/main/common/type.c @@ -25,6 +25,22 @@ extern "C" { f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_language.string, &build_setting->build_language.used, &build_setting->build_language.size);f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_compiler.string, &build_setting->build_compiler.used, &build_setting->build_compiler.size); f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_language_path.string, &build_setting->build_language_path.used, &build_setting->build_language_path.size); f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name.string, &build_setting->build_name.used, &build_setting->build_name.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_library.string, &build_setting->build_name_library.used, &build_setting->build_name_library.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_library_shared.string, &build_setting->build_name_library_shared.used, &build_setting->build_name_library_shared.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_library_static.string, &build_setting->build_name_library_static.used, &build_setting->build_name_library_static.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object.string, &build_setting->build_name_object.used, &build_setting->build_name_object.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_library.string, &build_setting->build_name_object_library.used, &build_setting->build_name_object_library.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_library_shared.string, &build_setting->build_name_object_library_shared.used, &build_setting->build_name_object_library_shared.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_library_static.string, &build_setting->build_name_object_library_static.used, &build_setting->build_name_object_library_static.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_program.string, &build_setting->build_name_object_program.used, &build_setting->build_name_object_program.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_program_shared.string, &build_setting->build_name_object_program_shared.used, &build_setting->build_name_object_program_shared.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_program_static.string, &build_setting->build_name_object_program_static.used, &build_setting->build_name_object_program_static.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_shared.string, &build_setting->build_name_object_shared.used, &build_setting->build_name_object_shared.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_object_static.string, &build_setting->build_name_object_static.used, &build_setting->build_name_object_static.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_program.string, &build_setting->build_name_program.used, &build_setting->build_name_program.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_program_shared.string, &build_setting->build_name_program_shared.used, &build_setting->build_name_program_shared.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_program_static.string, &build_setting->build_name_program_static.used, &build_setting->build_name_program_static.size); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->build_name_script.string, &build_setting->build_name_script.used, &build_setting->build_name_script.size); f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->path_headers.string, &build_setting->path_headers.used, &build_setting->path_headers.size); f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->path_language.string, &build_setting->path_language.used, &build_setting->path_language.size); f_memory_array_resize(0, sizeof(f_char_t), (void **) &build_setting->path_library_script.string, &build_setting->path_library_script.used, &build_setting->path_library_script.size); diff --git a/level_3/fake/c/main/common/type.h b/level_3/fake/c/main/common/type.h index 55d7f65..b909850 100644 --- a/level_3/fake/c/main/common/type.h +++ b/level_3/fake/c/main/common/type.h @@ -384,6 +384,22 @@ extern "C" { * - build_language: The build_language setting. * - build_language_path: The build_language_path setting. * - build_name: The build_name setting. + * - build_name_library: The build_name_library setting. + * - build_name_library_shared: The build_name_library_shared setting. + * - build_name_library_static: The build_name_library_static setting. + * - build_name_object: The build_name_object setting. + * - build_name_object_library: The build_name_object_library setting. + * - build_name_object_library_shared: The build_name_object_library_shared setting. + * - build_name_object_library_static: The build_name_object_library_static setting. + * - build_name_object_program: The build_name_object_program setting. + * - build_name_object_program_shared: The build_name_object_program_shared setting. + * - build_name_object_program_static: The build_name_object_program_static setting. + * - build_name_object_shared: The build_name_object_shared setting. + * - build_name_object_static: The build_name_object_static setting. + * - build_name_program: The build_name_program setting. + * - build_name_program_shared: The build_name_program_shared setting. + * - build_name_program_static: The build_name_program_static setting. + * - build_name_script: The build_name_script setting. * - path_headers: The path_headers setting. * - path_language: The path_language setting. * - path_library_script: The path_library_script setting. @@ -503,6 +519,22 @@ extern "C" { f_string_dynamic_t build_language; f_string_dynamic_t build_language_path; f_string_dynamic_t build_name; + f_string_dynamic_t build_name_library; + f_string_dynamic_t build_name_library_shared; + f_string_dynamic_t build_name_library_static; + f_string_dynamic_t build_name_object; + f_string_dynamic_t build_name_object_program; + f_string_dynamic_t build_name_object_program_shared; + f_string_dynamic_t build_name_object_program_static; + f_string_dynamic_t build_name_object_library; + f_string_dynamic_t build_name_object_library_shared; + f_string_dynamic_t build_name_object_library_static; + f_string_dynamic_t build_name_object_shared; + f_string_dynamic_t build_name_object_static; + f_string_dynamic_t build_name_program; + f_string_dynamic_t build_name_program_shared; + f_string_dynamic_t build_name_program_static; + f_string_dynamic_t build_name_script; f_string_dynamic_t path_headers; f_string_dynamic_t path_language; f_string_dynamic_t path_library_script; @@ -644,6 +676,22 @@ extern "C" { f_string_dynamic_t_initialize, \ f_string_dynamic_t_initialize, \ f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ + f_string_dynamic_t_initialize, \ f_string_dynamics_t_initialize, \ f_string_dynamics_t_initialize, \ f_string_dynamics_t_initialize, \ @@ -710,7 +758,7 @@ extern "C" { f_string_dynamics_t_initialize, \ } - #define fake_build_setting_total_d 107 + #define fake_build_setting_total_d 123 #endif // _di_fake_build_setting_t_ /** diff --git a/level_3/fake/c/main/make/operate.c b/level_3/fake/c/main/make/operate.c index e7ec429..58f443c 100644 --- a/level_3/fake/c/main/make/operate.c +++ b/level_3/fake/c/main/make/operate.c @@ -918,9 +918,24 @@ extern "C" { if (unmatched) { const f_string_static_t dynamic_name[] = { fake_build_setting_name_build_compiler_s, - // @todo fake_build_setting_name_build_indexer_s, fake_build_setting_name_build_name_s, + fake_build_setting_name_build_name_library_s, + fake_build_setting_name_build_name_library_shared_s, + fake_build_setting_name_build_name_library_static_s, + fake_build_setting_name_build_name_object_s, + fake_build_setting_name_build_name_object_library_s, + fake_build_setting_name_build_name_object_library_shared_s, + fake_build_setting_name_build_name_object_library_static_s, + fake_build_setting_name_build_name_object_program_s, + fake_build_setting_name_build_name_object_program_shared_s, + fake_build_setting_name_build_name_object_program_static_s, + fake_build_setting_name_build_name_object_shared_s, + fake_build_setting_name_build_name_object_static_s, + fake_build_setting_name_build_name_program_s, + fake_build_setting_name_build_name_program_shared_s, + fake_build_setting_name_build_name_program_static_s, + fake_build_setting_name_build_name_script_s, fake_build_setting_name_path_headers_s, fake_build_setting_name_path_language_s, fake_build_setting_name_path_library_script_s, @@ -944,6 +959,22 @@ extern "C" { data_make->setting_build.build_compiler, data_make->setting_build.build_indexer, data_make->setting_build.build_name, + data_make->setting_build.build_name_library, + data_make->setting_build.build_name_library_shared, + data_make->setting_build.build_name_library_static, + data_make->setting_build.build_name_object, + data_make->setting_build.build_name_object_library, + data_make->setting_build.build_name_object_library_shared, + data_make->setting_build.build_name_object_library_static, + data_make->setting_build.build_name_object_program, + data_make->setting_build.build_name_object_program_shared, + data_make->setting_build.build_name_object_program_static, + data_make->setting_build.build_name_object_shared, + data_make->setting_build.build_name_object_static, + data_make->setting_build.build_name_program, + data_make->setting_build.build_name_program_shared, + data_make->setting_build.build_name_program_static, + data_make->setting_build.build_name_script, data_make->setting_build.path_headers, data_make->setting_build.path_language, data_make->setting_build.path_library_script, @@ -963,7 +994,7 @@ extern "C" { data_make->setting_build.version_minor, }; - for (i = 0; i < 20; ++i) { + for (i = 0; i < 36; ++i) { main->setting.state.status = f_compare_dynamic_partial_string(dynamic_name[i].string, main->buffer, dynamic_name[i].used, range_name); diff --git a/level_3/fake/data/build/process_post.sh b/level_3/fake/data/build/process_post.sh index 4415b48..500d1d0 100755 --- a/level_3/fake/data/build/process_post.sh +++ b/level_3/fake/data/build/process_post.sh @@ -1,5 +1,5 @@ #!/bin/bash -# license: lgpl-2.1 +# license lgpl-2.1 # programmer: Kevin Day # # The purpose of this script is to provide an example for the post-process part of Fake. diff --git a/level_3/fake/data/build/process_pre.sh b/level_3/fake/data/build/process_pre.sh index 51da85a..a7500c0 100755 --- a/level_3/fake/data/build/process_pre.sh +++ b/level_3/fake/data/build/process_pre.sh @@ -1,5 +1,5 @@ #!/bin/bash -# license: lgpl-2.1 +# license lgpl-2.1 # programmer: Kevin Day # # The purpose of this script is to provide an example for the pre-process part of Fake. diff --git a/level_3/fake/documents/fakefile.txt b/level_3/fake/documents/fakefile.txt index aa57bae..5e9699c 100644 --- a/level_3/fake/documents/fakefile.txt +++ b/level_3/fake/documents/fakefile.txt @@ -1,6 +1,6 @@ # fss-0002 iki-0000 # -# license: open-standard-license-1.0-or-later +# license open-standard-license-1.0-or-later # version 2024/07/30 # # This file (assumed to be named fakefile.txt) can be more easily read using the following iki_read commands: diff --git a/level_3/fake/documents/settings.txt b/level_3/fake/documents/settings.txt index 74c0dc8..4a7b43d 100644 --- a/level_3/fake/documents/settings.txt +++ b/level_3/fake/documents/settings.txt @@ -1,7 +1,7 @@ # fss-0002 iki-0000 # -# license: open-standard-license-1.0-or-later -# version 2024/09/20 +# license open-standard-license-1.0-or-later +# version 2025/03/07 # # This file (assumed to be named settings.txt) can be more easily read using the following iki_read commands: # iki_read settings.txt +Q -w -rrr ASCII ASCII FLL FLL GCC GCC -WW character "'" "'" code '"' '"' @@ -164,9 +164,86 @@ Settings Documentation: These are applied to only static builds. - code:"build_name"\: - The name of the build, which often represent the project name. + The name of the build, which often represents the project name. If program sources are specified, then this will be used as the program name. If library sources are specified, then this will be used in the library name, such as code:"libX.so" where code:"X" would be the code:"build_name" value. + If script sources are specified, then this will be used as the script name. + This is required even if one of the more specific types, such as code:"build_name_library_shared", is specified. + + - code:"build_name_library"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the library name involving objects, such as code:"libX.so" where code:"X" would be the code:"build_name_library" value. + + - code:"build_name_library_shared"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the library name for shared builds involving objects. + These are applied to only to shared builds. + + - code:"build_name_library_static"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the library name for static builds involving objects. + These are applied to only to static builds. + + - code:"build_name_object"\: + The name of the build, which often represents the project name. + If library sources are specified, then this is a variation of code:"build_name" used specifically for the program name involving objects. + If program sources are specified, then this is a variation of code:"build_name" used specifically for the library name involving objects. + + - code:"build_name_object_library"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the library name involving objects, such as code:"libX.so" where code:"X" would be the code:"build_name_library" value. + + - code:"build_name_object_library_shared"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the library name for shared builds involving objects. + These are applied to only to shared builds. + + - code:"build_name_object_library_static"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the library name for static builds involving objects. + These are applied to only to static builds. + + - code:"build_name_object_program"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name involving objects. + + - code:"build_name_object_program_shared"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name for shared builds involving objects. + These are applied to only to shared builds. + + - code:"build_name_object_program_static"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name for static builds involving objects. + These are applied to only to static builds. + + - code:"build_name_object_shared"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name for shared builds involving objects. + These are applied to only to shared builds. + + - code:"build_name_object_static"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name for static builds involving objects. + These are applied to only to static builds. + + - code:"build_name_program"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name. + + - code:"build_name_program_shared"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name for shared builds. + These are applied to only to shared builds. + + - code:"build_name_program_static"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the program name for static builds. + These are applied to only to static builds. + + - code:"build_name_script"\: + The name of the build, which often represents the project name. + This is a variation of code:"build_name" used specifically for the script name. - code:"build_script"\: When code:"yes", the build process will build any scripts, such as a Bash script. diff --git a/level_3/fake/specifications/defines.txt b/level_3/fake/specifications/defines.txt index e2c8412..9e7d660 100644 --- a/level_3/fake/specifications/defines.txt +++ b/level_3/fake/specifications/defines.txt @@ -1,6 +1,6 @@ # fss-0002 iki-0000 # -# license: open-standard-license-1.0-or-later +# license open-standard-license-1.0-or-later # version 2024/03/23 # # This file (assumed to be named defines.txt) can be more easily read using the following iki_read commands: diff --git a/level_3/fake/specifications/dependencies.txt b/level_3/fake/specifications/dependencies.txt index abb9ed7..e6fbf9f 100644 --- a/level_3/fake/specifications/dependencies.txt +++ b/level_3/fake/specifications/dependencies.txt @@ -1,6 +1,6 @@ # fss-0002 iki-0000 # -# license: open-standard-license-1.0-or-later +# license open-standard-license-1.0-or-later # version 2024/03/23 # # This file (assumed to be named dependencies.txt) can be more easily read using the following iki_read commands: diff --git a/level_3/fake/specifications/fakefile.txt b/level_3/fake/specifications/fakefile.txt index 7a8134e..e25796d 100644 --- a/level_3/fake/specifications/fakefile.txt +++ b/level_3/fake/specifications/fakefile.txt @@ -1,6 +1,6 @@ # fss-0002 iki-0000 # -# license: open-standard-license-1.0-or-later +# license open-standard-license-1.0-or-later # version 2024/07/30 # # This file (assumed to be named fakefile.txt) can be more easily read using the following iki_read commands: diff --git a/level_3/fake/specifications/settings.txt b/level_3/fake/specifications/settings.txt index dcfaa08..f0d029c 100644 --- a/level_3/fake/specifications/settings.txt +++ b/level_3/fake/specifications/settings.txt @@ -1,7 +1,7 @@ # fss-0002 iki-0000 # -# license: open-standard-license-1.0-or-later -# version 2024/09/20 +# license open-standard-license-1.0-or-later +# version 2025/03/07 # # This file (assumed to be named settings.txt) can be more easily read using the following iki_read commands: # iki_read settings.txt +Q -w -WW character "'" "'" code '"' '"' @@ -39,7 +39,23 @@ Settings Specification: - code:"build_libraries": Must only contain any number of valid library include arguments that are valid for the compiler defined in "build_compiler" bold:"Object". - code:"build_libraries_shared": Must only contain any number of valid library include arguments that are valid for the compiler defined in "build_compiler" bold:"Object". - code:"build_libraries_static": Must only contain any number of valid library include arguments that are valid for the compiler defined in "build_compiler" bold:"Object". - - code:"build_name": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name": Must only contain characters allowed in a filename (no slashes allowed) (required). + - code:"build_name_library": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_library_shared": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_library_static": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_library": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_library_shared": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_library_static": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_program": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_program_shared": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_program_static": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_shared": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_object_static": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_program": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_program_shared": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_program_static": Must only contain characters allowed in a filename (no slashes allowed). + - code:"build_name_script": Must only contain characters allowed in a filename (no slashes allowed). - code:"build_objects_library": Must only contain any number of valid object file names relative to the appropriate code:"path_object_*" path. - code:"build_objects_library_shared": Must only contain any number of valid object file names relative to the code:"path_object_shared" path. - code:"build_objects_library_static": Must only contain any number of valid object file names relative to the code:"path_object_static" path. -- 1.8.3.1