mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-27 00:51:47 +00:00
b9a45cd07a
Signed-off-by: wylyw78 <wenyu17@hauwei.com>
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
import("../build/config.gni")
|
|
|
|
subsys_name = OHOS_PROFILER_SUBSYS_NAME
|
|
part_name = OHOS_PROFILER_PART_NAME
|
|
subsys_x64_out = "clang_${host_cpu}/thirdparty/grpc"
|
|
proto_gen_ipc_dir = "clang_${host_cpu}/$subsys_name/$part_name"
|
|
libc_dir_proto = rebase_path("$asdk_libs_dir", "//")
|
|
root_output_dir_proto = rebase_path("$root_out_dir", "//")
|
|
|
|
#host:clang_x64 default:arm mingw:mingw_x86_64
|
|
if (current_toolchain != host_toolchain) {
|
|
if (current_toolchain == default_toolchain) {
|
|
root_output_dir_proto = "$root_output_dir_proto/clang_${host_cpu}"
|
|
} else {
|
|
root_output_dir_proto =
|
|
get_path_info("$root_output_dir_proto", "dir") + "/clang_${host_cpu}"
|
|
}
|
|
}
|
|
protoc = root_output_dir_proto
|
|
print("default_toolchain = ", default_toolchain)
|
|
print("current_toolchain = ", current_toolchain)
|
|
print("host_toolchain = ", host_toolchain)
|
|
print("root_out_dir = ", root_out_dir)
|
|
print("root_output_dir_proto = ", root_output_dir_proto)
|