2022-12-21 11:29:21 +08:00
|
|
|
# While propagating "libs", gn would omit duplicate items,
|
|
|
|
# possibly breaking linking order of static libraries.
|
|
|
|
# "ldflags" are propagated literally, via "all_dependent_configs".
|
|
|
|
config("vcpkg_@gn_group@") {
|
|
|
|
if(is_debug) {
|
|
|
|
defines = [ @gn_defines_DEBUG@ ]
|
|
|
|
include_dirs = [ @gn_include_dirs_DEBUG@ ]
|
|
|
|
} else {
|
|
|
|
defines = [ @gn_defines_RELEASE@ ]
|
|
|
|
include_dirs = [ @gn_include_dirs_RELEASE@ ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
config("vcpkg_@gn_group@_link_libraries") {
|
|
|
|
if(is_debug) {
|
2023-11-29 17:34:00 +08:00
|
|
|
lib_dirs = [ @gn_lib_dirs_DEBUG@ ]
|
2022-12-21 11:29:21 +08:00
|
|
|
ldflags = [ @gn_ldflags_DEBUG@ ]
|
|
|
|
} else {
|
2023-11-29 17:34:00 +08:00
|
|
|
lib_dirs = [ @gn_lib_dirs_RELEASE@ ]
|
2022-12-21 11:29:21 +08:00
|
|
|
ldflags = [ @gn_ldflags_RELEASE@ ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
group("@gn_group@") {
|
|
|
|
public_configs = [ ":vcpkg_@gn_group@" ]
|
|
|
|
all_dependent_configs = [ ":vcpkg_@gn_group@_link_libraries" ]
|
|
|
|
}
|