mirror of
https://gitee.com/openharmony/commonlibrary_ets_utils
synced 2024-11-27 09:30:48 +00:00
commit
6a37a7e906
@ -47,7 +47,7 @@ if __name__ == '__main__':
|
||||
node-v12.18.4-linux-x64/bin/node'
|
||||
if not os.path.exists(NODE_PATH):
|
||||
raise Exception('NO souch file or directory')
|
||||
TSC_PATH = '../../../../ark/ts2abc/ts2panda/node_modules/\
|
||||
TSC_PATH = '../../../../arkcompiler/ets_frontend/ts2panda/node_modules/\
|
||||
typescript/bin/tsc'
|
||||
CMD_INST = [NODE_PATH, TSC_PATH]
|
||||
run_command(CMD_INST)
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//ark/ts2abc/ts2panda/ts2abc_config.gni")
|
||||
import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/ace/ace.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
@ -43,7 +43,7 @@ gen_js_obj("js_convertxml") {
|
||||
# compile .js to .abc.
|
||||
action("gen_convertxml_abc") {
|
||||
visibility = [ ":*" ]
|
||||
script = "//ark/ts2abc/ts2panda/scripts/generate_js_bytecode.py"
|
||||
script = "//arkcompiler/ets_frontend/ts2panda/scripts/generate_js_bytecode.py"
|
||||
|
||||
args = [
|
||||
"--src-js",
|
||||
@ -60,7 +60,7 @@ action("gen_convertxml_abc") {
|
||||
]
|
||||
deps = [
|
||||
":build_ts_js",
|
||||
"//ark/ts2abc/ts2panda:ark_ts2abc_build",
|
||||
"//arkcompiler/ets_frontend/ts2panda:ark_ts2abc_build",
|
||||
]
|
||||
|
||||
inputs = [ target_out_dir + "/js_convertxml.js" ]
|
||||
|
@ -20,10 +20,10 @@ if (is_standard_system) {
|
||||
ohos_unittest("test_uri_unittest") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
configs = [ "//ark/js_runtime:ark_jsruntime_public_config" ]
|
||||
configs = [ "//arkcompiler/ets_runtime:ark_jsruntime_public_config" ]
|
||||
include_dirs = [
|
||||
"//base/compileruntime/js_api_module/uri",
|
||||
"//ark/js_runtime",
|
||||
"//arkcompiler/ets_runtime",
|
||||
"//foundation/arkui/napi",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
@ -41,7 +41,7 @@ ohos_unittest("test_uri_unittest") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//ark/js_runtime:libark_jsruntime",
|
||||
"//arkcompiler/ets_runtime:libark_jsruntime",
|
||||
"//base/compileruntime/js_api_module/uri:uri_packages",
|
||||
"//foundation/arkui/napi/:ace_napi",
|
||||
"//foundation/arkui/napi/:ace_napi_ark",
|
||||
|
@ -20,10 +20,10 @@ if (is_standard_system) {
|
||||
ohos_unittest("test_xml_unittest") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
configs = [ "//ark/js_runtime:ark_jsruntime_public_config" ]
|
||||
configs = [ "//arkcompiler/ets_runtime:ark_jsruntime_public_config" ]
|
||||
include_dirs = [
|
||||
"//base/compileruntime/js_api_module/xml",
|
||||
"//ark/js_runtime",
|
||||
"//arkcompiler/ets_runtime",
|
||||
"//foundation/arkui/napi",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
@ -41,7 +41,7 @@ ohos_unittest("test_xml_unittest") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"//ark/js_runtime:libark_jsruntime",
|
||||
"//arkcompiler/ets_runtime:libark_jsruntime",
|
||||
"//base/compileruntime/js_api_module/xml:xml_packages",
|
||||
"//foundation/arkui/napi/:ace_napi",
|
||||
"//foundation/arkui/napi/:ace_napi_ark",
|
||||
|
@ -10,7 +10,7 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
import("//ark/ts2abc/ts2panda/ts2abc_config.gni")
|
||||
import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/ace/ace.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
@ -42,7 +42,7 @@ gen_js_obj("js_uri") {
|
||||
# compile .js to .abc.
|
||||
action("gen_uri_abc") {
|
||||
visibility = [ ":*" ]
|
||||
script = "//ark/ts2abc/ts2panda/scripts/generate_js_bytecode.py"
|
||||
script = "//arkcompiler/ets_frontend/ts2panda/scripts/generate_js_bytecode.py"
|
||||
|
||||
args = [
|
||||
"--src-js",
|
||||
@ -59,7 +59,7 @@ action("gen_uri_abc") {
|
||||
]
|
||||
deps = [
|
||||
":build_ts_js",
|
||||
"//ark/ts2abc/ts2panda:ark_ts2abc_build",
|
||||
"//arkcompiler/ets_frontend/ts2panda:ark_ts2abc_build",
|
||||
]
|
||||
|
||||
inputs = [ target_out_dir + "/js_uri.js" ]
|
||||
|
@ -10,7 +10,7 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
import("//ark/ts2abc/ts2panda/ts2abc_config.gni")
|
||||
import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/ace/ace.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
@ -42,7 +42,7 @@ gen_js_obj("js_url") {
|
||||
# compile .js to .abc.
|
||||
action("gen_url_abc") {
|
||||
visibility = [ ":*" ]
|
||||
script = "//ark/ts2abc/ts2panda/scripts/generate_js_bytecode.py"
|
||||
script = "//arkcompiler/ets_frontend/ts2panda/scripts/generate_js_bytecode.py"
|
||||
|
||||
args = [
|
||||
"--src-js",
|
||||
@ -59,7 +59,7 @@ action("gen_url_abc") {
|
||||
]
|
||||
deps = [
|
||||
":build_ts_js",
|
||||
"//ark/ts2abc/ts2panda:ark_ts2abc_build",
|
||||
"//arkcompiler/ets_frontend/ts2panda:ark_ts2abc_build",
|
||||
]
|
||||
|
||||
inputs = [ target_out_dir + "/js_url.js" ]
|
||||
|
@ -11,7 +11,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//ark/ts2abc/ts2panda/ts2abc_config.gni")
|
||||
import("//arkcompiler/ets_frontend/ts2panda/ts2abc_config.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/ohos/ace/ace.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
@ -45,7 +45,7 @@ gen_js_obj("js_xml") {
|
||||
# compile .js to .abc.
|
||||
action("gen_xml_abc") {
|
||||
visibility = [ ":*" ]
|
||||
script = "//ark/ts2abc/ts2panda/scripts/generate_js_bytecode.py"
|
||||
script = "//arkcompiler/ets_frontend/ts2panda/scripts/generate_js_bytecode.py"
|
||||
|
||||
args = [
|
||||
"--src-js",
|
||||
@ -62,7 +62,7 @@ action("gen_xml_abc") {
|
||||
]
|
||||
deps = [
|
||||
":build_ts_js",
|
||||
"//ark/ts2abc/ts2panda:ark_ts2abc_build",
|
||||
"//arkcompiler/ets_frontend/ts2panda:ark_ts2abc_build",
|
||||
]
|
||||
|
||||
inputs = [ target_out_dir + "/js_xml.js" ]
|
||||
|
Loading…
Reference in New Issue
Block a user