2024-07-28 20:19:47 +02:00
|
|
|
# Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
|
|
|
# reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
# can be found in the LICENSE file.
|
|
|
|
|
2024-08-26 14:44:25 +02:00
|
|
|
MACOS_DEPLOYMENT_TARGET="11.0"
|
2024-07-28 20:19:47 +02:00
|
|
|
MACOS_BUNDLE_ID_BASE="org.cef"
|
|
|
|
CEF_FRAMEWORK_NAME="Chromium Embedded Framework"
|
|
|
|
|
|
|
|
#
|
2024-08-06 17:57:15 +02:00
|
|
|
# Common 'linkopts' for macos_application targets.
|
2024-07-28 20:19:47 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# Standard link frameworks.
|
|
|
|
STANDARD_FRAMEWORKS = [
|
|
|
|
"AppKit",
|
|
|
|
]
|
|
|
|
|
|
|
|
COMMON_LINKOPTS_DEBUG = [
|
|
|
|
]
|
|
|
|
|
|
|
|
COMMON_LINKOPTS_RELEASE = [
|
|
|
|
]
|
|
|
|
|
|
|
|
COMMON_LINKOPTS = [
|
|
|
|
"-framework {}".format(lib) for lib in STANDARD_FRAMEWORKS
|
|
|
|
] + select({
|
2024-07-31 23:53:27 +02:00
|
|
|
"@cef//:macos_dbg": COMMON_LINKOPTS_DEBUG,
|
2024-07-28 20:19:47 +02:00
|
|
|
"//conditions:default": COMMON_LINKOPTS_RELEASE,
|
|
|
|
})
|
|
|
|
|
|
|
|
#
|
2024-08-06 17:57:15 +02:00
|
|
|
# Common 'copts' for cc_libary, objc_library and macos_application targets.
|
|
|
|
# We include defines in 'copts' because objc_library does not support
|
|
|
|
# 'local_defines'. See https://github.com/bazelbuild/bazel/issues/17482.
|
2024-07-28 20:19:47 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
COMMON_COPTS = [
|
|
|
|
"-Wno-undefined-var-template",
|
|
|
|
"-Wno-missing-field-initializers",
|
|
|
|
"-Wno-deprecated-copy",
|
|
|
|
|
|
|
|
# Used by apps to test if the sandbox is enabled
|
2024-08-06 17:57:15 +02:00
|
|
|
"-DCEF_USE_SANDBOX",
|
2024-07-28 20:19:47 +02:00
|
|
|
]
|
|
|
|
|
2024-08-06 17:57:15 +02:00
|
|
|
COMMON_COPTS_DEBUG = [
|
2024-07-28 20:19:47 +02:00
|
|
|
]
|
|
|
|
|
2024-08-06 17:57:15 +02:00
|
|
|
COMMON_COPTS_RELEASE = [
|
2024-07-28 20:19:47 +02:00
|
|
|
# Not a debug build
|
2024-08-06 17:57:15 +02:00
|
|
|
"-DNDEBUG",
|
2024-07-28 20:19:47 +02:00
|
|
|
]
|