• 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
14declare_args() {
15  profiler_SmartPerf = true
16  is_independent_compile = false
17}
18
19if (is_independent_compile) {
20  asdk_libs_dir = "."
21  host_toolchain = ""
22  PERF_DIR = "//third_party"
23  clang_x64_folder = "."
24  enable_ts_utest = target == "test"
25  TS_DIR = "//."
26  COMMON_LIBRARY = "//third_party/commonlibrary"
27} else {
28  PERF_DIR = "//developtools"
29  clang_x64_folder = "clang_x64"
30  is_test = false
31  is_protoc = false
32  is_spb = false
33  is_sdkdemo = false
34  is_sdkdemo_test = false
35  use_wasm = false
36  enable_ts_utest = false
37  is_fuzz = false
38  TS_DIR = "//developtools/smartperf_host/trace_streamer"
39  COMMON_LIBRARY = "//commonlibrary"
40}
41
42script_executable = "/usr/bin/env"
43device_kernel_version = "default"
44OHOS_TRACE_STREAMER_PROTOS_DIR = get_path_info("../src", "abspath")
45
46OHOS_TRACE_STREAMER_DIR = get_path_info("../", "abspath")
47SRC = "${OHOS_TRACE_STREAMER_DIR}/src"
48PREBUILTS = "//prebuilts"
49THIRD_PARTY = "//third_party"
50kernel_version = "."
51
52OHOS_TRACE_STREAMER_DIR_PROTOC = get_path_info("./protoc.sh", "abspath")
53
54if (target_os == "windows") {
55  OHOS_TRACE_STREAMER_DIR_PROTOC = get_path_info("./protoc_w.py", "abspath")
56}
57
58OHOS_PROFILER_3RDPARTY_GRPC_DIR = "${THIRD_PARTY}/grpc"
59OHOS_PROFILER_3RDPARTY_PROTOBUF_DIR = "${THIRD_PARTY}/protobuf"
60OHOS_PROFILER_3RDPARTY_GOOGLETEST_DIR = "${THIRD_PARTY}/googletest"
61OHOS_PROFILER_SUBSYS_NAME = "developtools"
62OHOS_PROFILER_PART_NAME = "smartperf_host"
63OHOS_PROFILER_TEST_MODULE_OUTPUT_PATH = "smartperf_host"
64
65build_l2 = false
66if (getenv("BUILD_L2") == "true") {
67  build_l2 = true
68}
69