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