1# Copyright (c) 2024 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("//base/hiviewdfx/hitrace/hitrace.gni")
15import("//build/ohos.gni")
16
17ohos_shared_library("cj_hitracechain_ffi") {
18  include_dirs = [
19    "include",
20    "$hitrace_interfaces_path/native/innerkits/include/hitrace",
21    "$hitrace_frameworks_path/include",
22  ]
23
24  sources = [
25    "src/hitracechain_ffi.cpp",
26    "src/hitracechain_impl.cpp",
27  ]
28
29  deps = [ "$hitrace_interfaces_path/native/innerkits:libhitracechain" ]
30
31  external_deps = [
32    "bounds_checking_function:libsec_shared",
33    "napi:cj_bind_ffi",
34  ]
35
36  innerapi_tags = [ "platformsdk" ]
37
38  part_name = "hitrace"
39  subsystem_name = "hiviewdfx"
40}
41
42ohos_shared_library("cj_hitracemeter_ffi") {
43  include_dirs = [
44    "include",
45    "$hitrace_frameworks_path/include",
46  ]
47  sources = [
48    "src/hitracemeter_ffi.cpp",
49    "src/hitracemeter_impl.cpp",
50  ]
51
52  deps = [ "$hitrace_interfaces_path/native/innerkits:hitrace_meter" ]
53
54  external_deps = [
55    "bounds_checking_function:libsec_shared",
56    "napi:cj_bind_ffi",
57  ]
58
59  innerapi_tags = [ "platformsdk" ]
60
61  subsystem_name = "hiviewdfx"
62  part_name = "hitrace"
63}
64