• 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.
13import("//build/ohos.gni")
14ohos_shared_library("systemtestnapi") {
15  public_configs = [ "//foundation/arkui/napi/:ace_napi_config" ]
16
17  include_dirs = [
18    "//foundation/arkui/ace_engine/frameworks",
19    "//third_party/libuv/include",
20    "//third_party/node/src",
21    "//foundation/arkui/napi/interfaces/kits",
22    "//third_party/bounds_checking_function/include",
23    "//foundation/arkui/napi",
24  ]
25
26  cflags = [
27    "-fPIC",
28    "-g3",
29    "-DNAPI_EXPERIMENTAL",
30  ]
31  defines = [ "NAPI_TEST" ]
32  sources = [
33    "js_napi_common.cpp",
34    "js_napi_instance.cpp",
35    "js_native_module.cpp",
36    "js_test_arraybuffer.cpp",
37    "js_test_bigint_napi.cpp",
38    "js_test_buffer_napi.cpp",
39    "js_test_callback_scope_napi.cpp",
40    "js_test_date_napi.cpp",
41    "js_test_object_napi.cpp",
42    "js_test_string_napi.cpp",
43    "js_test_threadsafe_napi.cpp",
44  ]
45
46  deps = [
47    "//foundation/arkui/napi/:ace_napi",
48    "//third_party/bounds_checking_function:libsec_static",
49  ]
50
51  if (is_standard_system) {
52    external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
53  } else {
54    external_deps = [ "hilog:libhilog" ]
55  }
56
57  relative_install_dir = "module"
58
59  subsystem_name = "ace"
60  part_name = "napi"
61}
62
63import("//build/test.gni")
64import("//foundation/arkui/napi/napi.gni")
65
66group("systemtest") {
67  testonly = true
68  deps = [ ":systemtestnapi" ]
69}
70