1# Copyright (c) 2022 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("//build/test.gni") 15 16if (is_standard_system) { 17 module_output_path = "jsapi_api/napi" 18} 19 20ohos_unittest("test_convertxml_unittest") { 21 module_out_path = module_output_path 22 23 configs = [ "//arkcompiler/ets_runtime:ark_jsruntime_public_config" ] 24 include_dirs = [ 25 "//commonlibrary/ets_utils/js_api_module/convertxml", 26 "//commonlibrary/ets_utils/js_api_module/xml", 27 "//arkcompiler/ets_runtime", 28 "//foundation/arkui/napi", 29 "//foundation/arkui/napi/interfaces/kits", 30 "//foundation/arkui/napi/native_engine", 31 "//foundation/arkui/napi/native_engine/impl/ark", 32 "//third_party/bounds_checking_function/include", 33 "//third_party/googletest/include", 34 "//third_party/node/src", 35 "//third_party/libxml2/include", 36 ] 37 38 cflags = [ "-g3" ] 39 40 sources = [ 41 "test_ark.cpp", 42 "test_convertxml.cpp", 43 ] 44 45 deps = [ 46 "//arkcompiler/ets_runtime:libark_jsruntime", 47 "//commonlibrary/ets_utils/js_api_module/convertxml:convertxml_static", 48 "//commonlibrary/ets_utils/js_api_module/xml:xml_static", 49 "//foundation/arkui/napi/:ace_napi", 50 "//foundation/arkui/napi/:ace_napi_ark", 51 "//third_party/bounds_checking_function:libsec_static", 52 "//third_party/googletest:gtest", 53 "//third_party/googletest:gtest_main", 54 "//third_party/icu/icu4c:static_icuuc", 55 "//third_party/libuv:uv", 56 ] 57 58 if (is_standard_system) { 59 external_deps = [ 60 "c_utils:utils", 61 "hiviewdfx_hilog_native:libhilog", 62 ] 63 } else { 64 external_deps = [ 65 "c_utils:utils", 66 "hilog:libhilog", 67 ] 68 } 69} 70 71group("unittest") { 72 testonly = true 73 deps = [ ":test_convertxml_unittest" ] 74} 75