• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14if (defined(is_arkui_x) && is_arkui_x) {
15  import("//build/config/config.gni")
16  if (is_android) {
17    ndk = aosp_ndk_root
18    ndk_host = ""
19    ndk_target = ""
20    ndk_gdbserver = ""
21
22    if (host_os == "linux") {
23      ndk_host = "linux-x86_64"
24    } else if (host_os == "mac") {
25      ndk_host = "darwin-x86_64"
26    } else if (host_os == "win") {
27      ndk_host = "windows-x86_64"
28    }
29
30    if (target_cpu == "arm64") {
31      ndk_target = "aarch64-linux-android"
32      ndk_gdbserver = "prebuilt/android-arm64/gdbserver/gdbserver"
33    } else if (target_cpu == "arm") {
34      ndk_target = "armv7a-linux-androideabi"
35      ndk_gdbserver = "prebuilt/android-arm/gdbserver/gdbserver"
36    } else if (target_cpu == "x64") {
37      ndk_target = "x86_64-linux-android"
38      ndk_gdbserver = "prebuilt/android-x86_64/gdbserver/gdbserver"
39    } else if (target_cpu == "x86") {
40      ndk_target = "i686-linux-android"
41      ndk_gdbserver = "prebuilt/android-x86/gdbserver/gdbserver"
42    }
43  } else if (is_ios) {
44    ios_min_target = "10.0"
45    ar = "ar"
46    cc = "clang"
47    cxx = "clang++"
48    win_vc = ""
49    win_toolchain_version = ""
50    clang_win = ""
51    cc_wrapper = ""
52  }
53} else {
54  is_android = host_os == "android"
55  is_mingw = current_os == "mingw"
56  is_ios = current_os == "ios" || current_os == "tvos"
57  is_ohos = current_os == "ohos"
58  is_tvos = current_os == "tvos"
59  is_linux = current_os == "linux"
60  is_mac = host_os == "mac"
61
62  if (!defined(is_win)) {
63    is_win = is_mingw
64  }
65}
66
67is_fuchsia = host_os == "fuchsia"
68sanitize_skia = ""
69