diff --git a/install.sh b/install.sh index 5249cf6..df05753 100755 --- a/install.sh +++ b/install.sh @@ -22,6 +22,7 @@ if [ $? != 0 ]; then echo "Can't install"; exit 1; fi echo "Name: regexis024-build-system" > "$PC_INST_FILE" echo "Description: Cool C++ build system" >> "$PC_INST_FILE" +echo "Version: 1.0" >> "$PC_INST_FILE" COOL_FLAGS="-Wall -pedantic -Wno-unused-variable -Wno-unused-but-set-variable -Werror=return-type -Wno-reorder" COOL_FLAGS="$COOL_FLAGS -D _GLIBCXX_DEBUG -D _POSIX_C_SOURCE=200809L" diff --git a/regexis024_build_system.h b/regexis024_build_system.h index bead176..91e3c35 100644 --- a/regexis024_build_system.h +++ b/regexis024_build_system.h @@ -937,6 +937,7 @@ struct CTarget { /* If empty, no .pc file will be created. Otherwise, must include filename */ std::string pc_output_path; std::string description; + std::string version = "0.1"; bool entry_point = true; @@ -1204,6 +1205,7 @@ void load_ctargets_on_building_and_installing( path_t(install_pkgconfig_dir_path) / tg.pc_output_path, "Name: " + tg.name + "\n" + "Description: " + tg.description + "\n" + + "Version: " + tg.version + "\n" + "Cflags: " + join_string_arr(s.emitted_compilation_flags_PASSED_FORWARD, " ") + "\n" + "Libs: " + join_string_arr(s.emitted_linkage_flags_PASSED_FORWARD, " ") + "\n")); ret_at_install.tasks[blank_ibu_for_tg_FINAL]->bu_dependencies.push_back(pkg_conf_install_ibu);