• 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("//foundation/arkui/napi/napi.gni")
15
16import("//build/test.gni")
17
18ohos_unittest("test_ark_interop") {
19  module_out_path = module_output_path
20
21  include_dirs = []
22  include_dirs += [
23    "../../../interfaces/inner_api/cjffi/ark_interop/",
24    "../../../interfaces/inner_api/cjffi/ark_interop_helper/",
25  ]
26
27  cflags = [ "-g3" ]
28
29  sources = [ "test_ark_interop.cpp" ]
30
31  deps = [
32    "../../..:ace_napi",
33    "../../../interfaces/inner_api/cjffi/ark_interop:ark_interop",
34  ]
35  defines = []
36  if (use_clang_coverage) {
37    defines += [ "CLANG_COVERAGE" ]
38  }
39
40  external_deps = [
41    "ets_runtime:libark_jsruntime",
42    "eventhandler:libeventhandler",
43    "hilog:libhilog",
44    "libuv:uv",
45  ]
46}
47
48group("cj_native_unittest") {
49  testonly = true
50  deps = [ ":test_ark_interop" ]
51}
52