• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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
14import("../../build/ts.gni")
15
16subsys_name = OHOS_PROFILER_SUBSYS_NAME
17part_name = OHOS_PROFILER_PART_NAME
18
19# subsys_x64_out = "clang_x64/$subsys_name/$part_name"
20libc_dir_proto = rebase_path("$asdk_libs_dir", "//")
21root_output_dir_proto = rebase_path("$root_out_dir", "//")
22
23#host:clang_x64 default:arm mingw:mingw_x86_64
24if (current_toolchain != host_toolchain) {
25  if (current_toolchain == default_toolchain) {
26    root_output_dir_proto = "$root_output_dir_proto/$clang_x64_folder"
27  } else {
28    root_output_dir_proto =
29        get_path_info("$root_output_dir_proto", "dir") + "/$clang_x64_folder"
30  }
31}
32protoc = root_output_dir_proto
33print("default_toolchain = ", default_toolchain)
34print("current_toolchain = ", current_toolchain)
35print("host_toolchain = ", host_toolchain)
36print("root_out_dir = ", root_out_dir)
37print("root_output_dir_proto = ", root_output_dir_proto)
38