mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Include cef_config.h from base/cef_build.h and fix detection of args.gn changes so that defines are available everywhere by default. Fix include configuration for chrome_elf_set and sandbox targets.
This commit is contained in:
@ -16,13 +16,21 @@ def make_config_header(gn_config):
|
||||
|
||||
defines = []
|
||||
|
||||
if sys.platform.startswith('linux'):
|
||||
lines = read_file(gn_config).split("\n")
|
||||
lines = read_file(gn_config).split("\n")
|
||||
|
||||
# All Linux builds use Ozone, and the X11 platform is enabled by default.
|
||||
# Check if the config is explicitly disabling it.
|
||||
if not 'ozone_platform_x11=false' in lines:
|
||||
defines.append('#define CEF_X11 1')
|
||||
# The following #defines are used in cef/include/ headers and CEF client-side code.
|
||||
# CEF library-side code will get these #defines from include/base/cef_build.h so
|
||||
# any changes must also be reflected there.
|
||||
|
||||
# All Linux builds use Ozone, and the X11 platform is enabled by default.
|
||||
# Check if the config is explicitly disabling it.
|
||||
if sys.platform.startswith('linux') and \
|
||||
not 'ozone_platform_x11=false' in lines:
|
||||
defines.append('#define CEF_X11 1')
|
||||
|
||||
# Temporary define for disabling the Alloy bootstrap. See issue #3685.
|
||||
if 'enable_alloy_bootstrap=false' in lines:
|
||||
defines.append('#define DISABLE_ALLOY_BOOTSTRAP 1')
|
||||
|
||||
result = get_copyright(full=True, translator=False) + \
|
||||
"""//
|
||||
|
Reference in New Issue
Block a user