Added Version key to all pkg-config files
This commit is contained in:
parent
d3fb753fb2
commit
5ee754cf3d
@ -22,6 +22,7 @@ if [ $? != 0 ]; then echo "Can't install"; exit 1; fi
|
|||||||
|
|
||||||
echo "Name: regexis024-build-system" > "$PC_INST_FILE"
|
echo "Name: regexis024-build-system" > "$PC_INST_FILE"
|
||||||
echo "Description: Cool C++ 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="-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"
|
COOL_FLAGS="$COOL_FLAGS -D _GLIBCXX_DEBUG -D _POSIX_C_SOURCE=200809L"
|
||||||
|
@ -937,6 +937,7 @@ struct CTarget {
|
|||||||
/* If empty, no .pc file will be created. Otherwise, must include filename */
|
/* If empty, no .pc file will be created. Otherwise, must include filename */
|
||||||
std::string pc_output_path;
|
std::string pc_output_path;
|
||||||
std::string description;
|
std::string description;
|
||||||
|
std::string version = "0.1";
|
||||||
|
|
||||||
bool entry_point = true;
|
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,
|
path_t(install_pkgconfig_dir_path) / tg.pc_output_path,
|
||||||
"Name: " + tg.name + "\n" +
|
"Name: " + tg.name + "\n" +
|
||||||
"Description: " + tg.description + "\n" +
|
"Description: " + tg.description + "\n" +
|
||||||
|
"Version: " + tg.version + "\n" +
|
||||||
"Cflags: " + join_string_arr(s.emitted_compilation_flags_PASSED_FORWARD, " ") + "\n" +
|
"Cflags: " + join_string_arr(s.emitted_compilation_flags_PASSED_FORWARD, " ") + "\n" +
|
||||||
"Libs: " + join_string_arr(s.emitted_linkage_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);
|
ret_at_install.tasks[blank_ibu_for_tg_FINAL]->bu_dependencies.push_back(pkg_conf_install_ibu);
|
||||||
|
Loading…
Reference in New Issue
Block a user