aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn
diff options
context:
space:
mode:
Diffstat (limited to 'gn')
-rw-r--r--gn/BUILD.gn2
-rw-r--r--gn/BUILDCONFIG.gn2
2 files changed, 3 insertions, 1 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 7a6a8211d5..9d65118c96 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -143,7 +143,7 @@ config("default") {
libs += [ malloc ]
}
- if (is_android) {
+ if (is_android && !is_android_cmake) {
asmflags += [ "--target=$ndk_target" ]
cflags += [
"--sysroot=$ndk/sysroot",
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index e5440b9b76..3d4d65ad6e 100644
--- a/gn/BUILDCONFIG.gn
+++ b/gn/BUILDCONFIG.gn
@@ -10,6 +10,7 @@ is_skia_standalone = true
declare_args() {
is_official_build = false
is_component_build = false
+ is_android_cmake = false
ndk = ""
# It's nice to keep ndk_api set to what Clank targets, but probably no big deal if we can't.
@@ -37,6 +38,7 @@ declare_args() {
skia_vulkan_sdk = getenv("VULKAN_SDK")
skia_moltenvk_path = ""
}
+
declare_args() {
is_debug = !is_official_build
}