mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 06:19:06 +08:00
26 lines
807 B
Plaintext
26 lines
807 B
Plaintext
|
# 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@ ]
|
||
|
lib_dirs = [ @gn_lib_dirs_DEBUG@ ]
|
||
|
} else {
|
||
|
defines = [ @gn_defines_RELEASE@ ]
|
||
|
include_dirs = [ @gn_include_dirs_RELEASE@ ]
|
||
|
lib_dirs = [ @gn_lib_dirs_RELEASE@ ]
|
||
|
}
|
||
|
}
|
||
|
config("vcpkg_@gn_group@_link_libraries") {
|
||
|
if(is_debug) {
|
||
|
ldflags = [ @gn_ldflags_DEBUG@ ]
|
||
|
} else {
|
||
|
ldflags = [ @gn_ldflags_RELEASE@ ]
|
||
|
}
|
||
|
}
|
||
|
group("@gn_group@") {
|
||
|
public_configs = [ ":vcpkg_@gn_group@" ]
|
||
|
all_dependent_configs = [ ":vcpkg_@gn_group@_link_libraries" ]
|
||
|
}
|