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