1# Copyright (c) 2021-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/ohos.gni") 15 16# for js-loader 17ohos_prebuilt_executable("js_js2abc_api8_linux") { 18 source = "./api8/bin/linux/js2abc" 19 output = "js_linux/${source}" 20 part_name = "ets_frontend" 21 subsystem_name = "arkcompiler" 22} 23 24ohos_prebuilt_executable("js_js2abc_api8_win") { 25 source = "./api8/bin/win/js2abc.exe" 26 output = "js_win/${source}" 27 part_name = "ets_frontend" 28 subsystem_name = "arkcompiler" 29} 30 31ohos_prebuilt_executable("js_js2abc_api8_mac") { 32 source = "./api8/bin/mac/js2abc" 33 output = "js_mac/${source}" 34 part_name = "ets_frontend" 35 subsystem_name = "arkcompiler" 36} 37 38ohos_prebuilt_etc("js_ts2abc_api8_linux") { 39 source = "./api8/src/index.js" 40 output = "js_linux/${source}" 41 part_name = "ets_frontend" 42 subsystem_name = "arkcompiler" 43} 44 45ohos_prebuilt_etc("js_ts2abc_api8_win") { 46 source = "./api8/src/index.js" 47 output = "js_win/${source}" 48 part_name = "ets_frontend" 49 subsystem_name = "arkcompiler" 50} 51 52ohos_prebuilt_etc("js_ts2abc_api8_mac") { 53 source = "./api8/src/index.js" 54 output = "js_mac/${source}" 55 part_name = "ets_frontend" 56 subsystem_name = "arkcompiler" 57} 58 59ohos_prebuilt_etc("js_package_api8_linux") { 60 source = "./api8/package.json" 61 output = "js_linux/${source}" 62 part_name = "ets_frontend" 63 subsystem_name = "arkcompiler" 64} 65 66ohos_prebuilt_etc("js_package_api8_win") { 67 source = "./api8/package.json" 68 output = "js_win/${source}" 69 part_name = "ets_frontend" 70 subsystem_name = "arkcompiler" 71} 72 73ohos_prebuilt_etc("js_package_api8_mac") { 74 source = "./api8/package.json" 75 output = "js_mac/${source}" 76 part_name = "ets_frontend" 77 subsystem_name = "arkcompiler" 78} 79 80ohos_prebuilt_etc("js_package-lock_api8_linux") { 81 source = "./api8/package-lock.json" 82 output = "js_linux/${source}" 83 part_name = "ets_frontend" 84 subsystem_name = "arkcompiler" 85} 86 87ohos_prebuilt_etc("js_package-lock_api8_win") { 88 source = "./api8/package-lock.json" 89 output = "js_win/${source}" 90 part_name = "ets_frontend" 91 subsystem_name = "arkcompiler" 92} 93 94ohos_prebuilt_etc("js_package-lock_api8_mac") { 95 source = "./api8/package-lock.json" 96 output = "js_mac/${source}" 97 part_name = "ets_frontend" 98 subsystem_name = "arkcompiler" 99} 100 101ohos_prebuilt_etc("js_node_modules_api8_linux") { 102 source = "//prebuilts/build-tools/common/ts2abc/node_modules" 103 output = "js_linux/${source}" 104 part_name = "ets_frontend" 105 subsystem_name = "arkcompiler" 106} 107 108ohos_prebuilt_etc("js_node_modules_api8_win") { 109 source = "//prebuilts/build-tools/common/ts2abc/node_modules" 110 output = "js_win/${source}" 111 part_name = "ets_frontend" 112 subsystem_name = "arkcompiler" 113} 114 115ohos_prebuilt_etc("js_node_modules_api8_mac") { 116 source = "//prebuilts/build-tools/common/ts2abc/node_modules" 117 output = "js_mac/${source}" 118 part_name = "ets_frontend" 119 subsystem_name = "arkcompiler" 120} 121 122# for ets-loader 123ohos_prebuilt_executable("ets_js2abc_api8_linux") { 124 source = "./api8/bin/linux/js2abc" 125 output = "ets_linux/${source}" 126 part_name = "ets_frontend" 127 subsystem_name = "arkcompiler" 128} 129 130ohos_prebuilt_executable("ets_js2abc_api8_win") { 131 source = "./api8/bin/win/js2abc.exe" 132 output = "ets_win/${source}" 133 part_name = "ets_frontend" 134 subsystem_name = "arkcompiler" 135} 136 137ohos_prebuilt_executable("ets_js2abc_api8_mac") { 138 source = "./api8/bin/mac/js2abc" 139 output = "ets_mac/${source}" 140 part_name = "ets_frontend" 141 subsystem_name = "arkcompiler" 142} 143 144ohos_prebuilt_etc("ets_ts2abc_api8_linux") { 145 source = "./api8/src/index.js" 146 output = "ets_linux/${source}" 147 part_name = "ets_frontend" 148 subsystem_name = "arkcompiler" 149} 150 151ohos_prebuilt_etc("ets_ts2abc_api8_win") { 152 source = "./api8/src/index.js" 153 output = "ets_win/${source}" 154 part_name = "ets_frontend" 155 subsystem_name = "arkcompiler" 156} 157 158ohos_prebuilt_etc("ets_ts2abc_api8_mac") { 159 source = "./api8/src/index.js" 160 output = "ets_mac/${source}" 161 part_name = "ets_frontend" 162 subsystem_name = "arkcompiler" 163} 164 165ohos_prebuilt_etc("ets_package_api8_linux") { 166 source = "./api8/package.json" 167 output = "ets_linux/${source}" 168 part_name = "ets_frontend" 169 subsystem_name = "arkcompiler" 170} 171 172ohos_prebuilt_etc("ets_package_api8_win") { 173 source = "./api8/package.json" 174 output = "ets_win/${source}" 175 part_name = "ets_frontend" 176 subsystem_name = "arkcompiler" 177} 178 179ohos_prebuilt_etc("ets_package_api8_mac") { 180 source = "./api8/package.json" 181 output = "ets_mac/${source}" 182 part_name = "ets_frontend" 183 subsystem_name = "arkcompiler" 184} 185 186ohos_prebuilt_etc("ets_package-lock_api8_linux") { 187 source = "./api8/package-lock.json" 188 output = "ets_linux/${source}" 189 part_name = "ets_frontend" 190 subsystem_name = "arkcompiler" 191} 192 193ohos_prebuilt_etc("ets_package-lock_api8_win") { 194 source = "./api8/package-lock.json" 195 output = "ets_win/${source}" 196 part_name = "ets_frontend" 197 subsystem_name = "arkcompiler" 198} 199 200ohos_prebuilt_etc("ets_package-lock_api8_mac") { 201 source = "./api8/package-lock.json" 202 output = "ets_mac/${source}" 203 part_name = "ets_frontend" 204 subsystem_name = "arkcompiler" 205} 206 207ohos_prebuilt_etc("ets_node_modules_api8_linux") { 208 source = "//prebuilts/build-tools/common/ts2abc/node_modules" 209 output = "ets_linux/${source}" 210 part_name = "ets_frontend" 211 subsystem_name = "arkcompiler" 212} 213 214ohos_prebuilt_etc("ets_node_modules_api8_win") { 215 source = "//prebuilts/build-tools/common/ts2abc/node_modules" 216 output = "ets_win/${source}" 217 part_name = "ets_frontend" 218 subsystem_name = "arkcompiler" 219} 220 221ohos_prebuilt_etc("ets_node_modules_api8_mac") { 222 source = "//prebuilts/build-tools/common/ts2abc/node_modules" 223 output = "ets_mac/${source}" 224 part_name = "ets_frontend" 225 subsystem_name = "arkcompiler" 226} 227