• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2025 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.
13import("//build/ohos.gni")
14import("//build/ohos/sdk/sdk.gni")
15
16action("copy_taihe_out") {
17  sources = [ "../../../prebuilts/taihe/ohos" ]
18  script = "process_sdk_files.py"
19  args = [
20    "--input_dir",
21    rebase_path("../../../prebuilts/taihe/ohos"),
22    "--output_dir",
23    rebase_path("$target_out_dir/tmp_taihe"),
24  ]
25  outputs = [
26    "$target_out_dir/tmp_taihe/linux-x86_64",
27    "$target_out_dir/tmp_taihe/windows-x86_64",
28    "$target_out_dir/tmp_taihe/darwin-arm64",
29    "$target_out_dir/tmp_taihe/darwin-x86_64",
30  ]
31}
32
33ohos_copy("copy_taihe_tools") {
34  deps = [ ":copy_taihe_out" ]
35  if (current_toolchain == "//build/toolchain/linux:clang_x64") {
36    sources = [ "$target_out_dir/tmp_taihe/linux-x86_64" ]
37  } else if (current_toolchain == "//build/toolchain/mingw:mingw_x86_64") {
38    sources = [ "$target_out_dir/tmp_taihe/windows-x86_64" ]
39  } else if (current_toolchain == "//build/toolchain/mac:clang_arm64") {
40    sources = [ "$target_out_dir/tmp_taihe/darwin-arm64" ]
41  } else if (current_toolchain == "//build/toolchain/mac:clang_x64") {
42    sources = [ "$target_out_dir/tmp_taihe/darwin-x86_64" ]
43  }
44  outputs = [ target_out_dir + "/$target_name" ]
45  module_source_dir = target_out_dir + "/$target_name"
46  module_install_name = ""
47  part_name = "runtime_core"
48  subsystem_name = "arkcompiler"
49}
50