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