1/* 2 * Copyright (c) 2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16{ 17 "apiType": "stageMode", 18 // [Start napi_load_module_with_info_entry_build] 19 // [Start napi_load_module_with_info_entry_build2] 20 // [Start napi_load_module_with_info_entry_build3] 21 // [Start napi_load_module_with_info_entry_build4] 22 "buildOption": { 23 "arkOptions" : { 24 "runtimeOnly" : { 25 // [StartExclute napi_load_module_with_info_entry_build2] 26 // [StartExclute napi_load_module_with_info_entry_build3] 27 // [StartExclute napi_load_module_with_info_entry_build4] 28 "sources": [ 29 "./src/main/ets/Test.ets", 30 ], 31 // [EndExclute napi_load_module_with_info_entry_build2] 32 // [EndExclute napi_load_module_with_info_entry_build3] 33 // [EndExclute napi_load_module_with_info_entry_build4] 34 // [End napi_load_module_with_info_entry_build] 35 "packages": [ 36 // [StartExclute napi_load_module_with_info_entry_build3] 37 // [StartExclute napi_load_module_with_info_entry_build4] 38 "library", 39 // [End napi_load_module_with_info_entry_build2] 40 // [EndExclute napi_load_module_with_info_entry_build4] 41 "libentry.so", 42 // [End napi_load_module_with_info_entry_build4] 43 "libentryone.so", 44 "libentrytwo.so", 45 "libentrythree.so", 46 "libentryfour.so", 47 "har1", 48 // [EndExclute napi_load_module_with_info_entry_build3] 49 "@ohos/hypium" 50 // [End napi_load_module_with_info_entry_build3] 51 ] 52 } 53 }, 54 "externalNativeOptions": { 55 "path": "./src/main/cpp/CMakeLists.txt", 56 "arguments": "", 57 "cppFlags": "", 58 "abiFilters": [ 59 "arm64-v8a", 60 "x86_64", 61 "armeabi-v7a" 62 ] 63 } 64 }, 65 "buildOptionSet": [ 66 { 67 "name": "release", 68 "arkOptions": { 69 "obfuscation": { 70 "ruleOptions": { 71 "enable": false, 72 "files": [ 73 "./obfuscation-rules.txt" 74 ] 75 } 76 } 77 }, 78 "nativeLib": { 79 "debugSymbol": { 80 "strip": true, 81 "exclude": [] 82 } 83 } 84 }, 85 ], 86 "targets": [ 87 { 88 "name": "default" 89 }, 90 { 91 "name": "ohosTest", 92 } 93 ] 94}