mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix GN undefined identifier error on non-Linux platforms
This commit is contained in:
4
BUILD.gn
4
BUILD.gn
@@ -235,12 +235,14 @@ if (is_win) {
|
|||||||
import("//build/config/win/manifest.gni")
|
import("//build/config/win/manifest.gni")
|
||||||
}
|
}
|
||||||
|
|
||||||
declare_args() {
|
if (is_linux) {
|
||||||
|
declare_args() {
|
||||||
# The cefclient target depends on GTK packages that are not available in the
|
# The cefclient target depends on GTK packages that are not available in the
|
||||||
# default sysroot environment. So we should only use them when we are not
|
# default sysroot environment. So we should only use them when we are not
|
||||||
# using the sysroot. Alternatively, the developer might not want to use the
|
# using the sysroot. Alternatively, the developer might not want to use the
|
||||||
# GTK dependencies at all, in which case they can set `cef_use_gtk=false`.
|
# GTK dependencies at all, in which case they can set `cef_use_gtk=false`.
|
||||||
cef_use_gtk = !use_sysroot
|
cef_use_gtk = !use_sysroot
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user