Fix GN undefined identifier error on non-Linux platforms

This commit is contained in:
Marshall Greenblatt
2019-11-05 16:17:10 -05:00
parent 04c9bcd802
commit cc6f285abd

View File

@@ -235,12 +235,14 @@ if (is_win) {
import("//build/config/win/manifest.gni") import("//build/config/win/manifest.gni")
} }
declare_args() { if (is_linux) {
# The cefclient target depends on GTK packages that are not available in the declare_args() {
# default sysroot environment. So we should only use them when we are not # The cefclient target depends on GTK packages that are not available in the
# using the sysroot. Alternatively, the developer might not want to use the # default sysroot environment. So we should only use them when we are not
# GTK dependencies at all, in which case they can set `cef_use_gtk=false`. # using the sysroot. Alternatively, the developer might not want to use the
cef_use_gtk = !use_sysroot # GTK dependencies at all, in which case they can set `cef_use_gtk=false`.
cef_use_gtk = !use_sysroot
}
} }
# #