malloc = ""
enable_bitcode = false
- if (is_tvos) {
+ if (is_tvos || is_watchos) {
enable_bitcode = true
}
}
if (is_ios) {
if (is_tvos) {
- sdk = "appletvos"
- if (target_cpu == "x86" || target_cpu == "x64") {
- sdk = "appletvsimulator"
- }
+ sdk = "appletv"
+ } else if (is_watchos) {
+ sdk = "watch"
} else {
- sdk = "iphoneos"
- if (target_cpu == "x86" || target_cpu == "x64") {
- sdk = "iphonesimulator"
- }
+ sdk = "iphone"
+ }
+ if (target_cpu == "x86" || target_cpu == "x64") {
+ sdk += "simulator"
+ } else {
+ sdk += "os"
}
ios_sysroot = exec_script("find_ios_sysroot.py", [ sdk ], "trim string")
}
} else if (target_cpu == "x64") {
_target = "x86_64"
}
+ if (is_watchos && _target == "armv7") {
+ _target = "armv7k"
+ }
asmflags += [
"-isysroot",
ios_sysroot,
is_android = current_os == "android"
is_fuchsia = current_os == "fuchsia"
-is_ios = current_os == "ios" || current_os == "tvos"
+is_ios = current_os == "ios" || current_os == "tvos" || current_os == "watchos"
is_tvos = current_os == "tvos"
+is_watchos = current_os == "watchos"
is_linux = current_os == "linux"
is_mac = current_os == "mac"
is_win = current_os == "win" || current_os == "winrt"
if (target_cpu != "arm") {
skia_core_sources += [ "$_src/jumper/SkJumper_generated_win.S" ]
}
-} else if (!is_tvos) {
+} else if (!is_tvos && !is_watchos) {
skia_core_sources += [ "$_src/jumper/SkJumper_generated.S" ]
}
extern "C" {
-#if __has_feature(memory_sanitizer) || defined(SK_BUILD_FOR_TVOS)
+#if __has_feature(memory_sanitizer) || defined(SK_BUILD_FOR_TVOS) || defined(SK_BUILD_FOR_WATCHOS)
// We'll just run portable code.
#elif defined(__aarch64__)
static SkOnce gChooseEngineOnce;
static SkJumper_Engine choose_engine() {
-#if __has_feature(memory_sanitizer) || defined(SK_BUILD_FOR_TVOS)
+#if __has_feature(memory_sanitizer) || defined(SK_BUILD_FOR_TVOS) || defined(SK_BUILD_FOR_WATCHOS)
// We'll just run portable code.
#elif defined(__aarch64__)