diff --git a/bundle.json b/bundle.json index aaab390cf32c3c7bcafe70a2734362d6bf47b2c5..83eb533c981744b3b170d264653508a1bb373afe 100644 --- a/bundle.json +++ b/bundle.json @@ -1,5 +1,5 @@ { - "name": "@arkcompiller/ets_frontend", + "name": "@ohos/ets_frontend", "description": "支持应用TS/JS语言代码的编译,行为符合ArkUI框架需要的Strict模式的ES2015标准", "version": "3.1", "license": "Apache License 2.0", @@ -22,11 +22,15 @@ "runtime_core", "zlib", "bounds_checking_function", - "protobuf" - ], - "third_party": [ + "protobuf", "json", - "icu" + "icu", + "openssl", + "napi", + "toolchain", + "vixl", + "init", + "elfio" ] }, "build": { diff --git a/es2panda/BUILD.gn b/es2panda/BUILD.gn index d7f663a2bb92b56aac0ea96c668bfc51ea120271..79a0795427af24766a6425f4fb7c388a03e5e0dd 100644 --- a/es2panda/BUILD.gn +++ b/es2panda/BUILD.gn @@ -293,12 +293,14 @@ config("es2abc_config_src") { config("es2abc_config_common") { configs = [ "$ark_root:ark_config", - "$sdk_libc_secshared_config", + + # "$sdk_libc_secshared_config", "$ark_root/libpandafile:arkfile_public_config", "$ark_root/libpandabase:arkbase_public_config", "$ark_root/assembler:arkassembler_public_config", "$ark_root/abc2program:abc2program_public_config", - "$ark_third_party_root/json:nlohmann_json_config", + + # "$ark_third_party_root/json:nlohmann_json_config", ":es2abc_config_src", ] @@ -346,7 +348,7 @@ isa_gen = "${ark_root}/isa/gen.rb" isa_gen_data = "$root_gen_dir/isa/isa.yaml" isa_gen_require = "${ark_root}/isa/isapi.rb" action_foreach("gen_isa_headers") { - deps = [ "//arkcompiler/runtime_core/isa:isa_combine" ] + # deps = [ "//arkcompiler/runtime_core/isa:isa_combine" ] template_files = [ "isa.h.erb", @@ -359,7 +361,7 @@ action_foreach("gen_isa_headers") { sources += [ rebase_path("${keywords_templates_dir}/${file}") ] } outputs = [ "${generated_header_dir}/{{source_name_part}}" ] - + external_deps = [ "runtime_core:isa_combine" ] script = "scripts/gen_isa.sh" inputs = [ "${isa_gen}", @@ -394,21 +396,15 @@ ohos_static_library("es2panda_lib") { "../merge_abc:panda_assembly_proto_public_config", ] - include_dirs = [ - "${target_out_dir}", - "//third_party/icu/icu4c/source/common", - "//third_party/icu/icu4c/source/i18n", - "//third_party/icu/icu4c/source", - ] + include_dirs = [ "${target_out_dir}" ] deps = [ ":gen_isa_headers", ":gen_keywords_headers", - "$ark_third_party_root/icu/icu4c:static_icuuc", "../merge_abc:panda_assembly_proto_static", ] - external_deps = [] + external_deps = [ "icu:static_icuuc" ] if (!is_arkui_x) { external_deps += [ "json:nlohmann_json_static", @@ -432,8 +428,8 @@ ohos_static_library("es2panda_lib") { "$ark_root/libpandabase:libarkbase_frontend_static", "$ark_root/libpandafile:libarkfile_frontend_static", "$ark_root/libziparchive:libarkziparchive_frontend_static", - "$ark_third_party_root/json:nlohmann_json_static", ] + external_deps += [ "json:nlohmann_json_static" ] if (enable_bytecode_optimizer) { deps += [ "$ark_root/bytecode_optimizer:libarkbytecodeopt_frontend_static", diff --git a/es2panda/es2abc_config.gni b/es2panda/es2abc_config.gni index 7f9c8c833a0653ee3e86f41759b99f239f16c40b..1f9f28b7daeb7be8c9ba8d78a7fd5798602867b8 100644 --- a/es2panda/es2abc_config.gni +++ b/es2panda/es2abc_config.gni @@ -33,7 +33,10 @@ if (host_toolchain == toolchain_mac) { } else { es2abc_out_root = get_label_info("$es2abc_root:es2panda($toolchain_linux)", "root_out_dir") + # toolchain_linux = host_toolchain = //build/toolchain/linux:clang_x64 es2abc_build_deps = [ "$es2abc_root:es2panda($toolchain_linux)" ] + # ERROR at //arkcompiler/ets_frontend/es2panda/es2abc_config.gni:38:25: + # Unable to load "/hudaxia/part_compile/binarys/arkcompiler/ets_frontend/innerapis/es2panda/clang_x64/BUILD.gn". } es2abc_build_path = es2abc_out_root + "/arkcompiler/ets_frontend" diff --git a/ets2panda/BUILD.gn b/ets2panda/BUILD.gn index 7542df6a822ddc6850425f03258452460e168413..81973ec47403682b263a11805456bc5bd5a6eaf6 100644 --- a/ets2panda/BUILD.gn +++ b/ets2panda/BUILD.gn @@ -1142,10 +1142,10 @@ ohos_source_set("libes2panda_frontend_static") { ":gen_es2panda_lexer_token_inl", ":isa_gen_es2panda_formats_h", ":isa_gen_es2panda_isa_h", - "$ark_third_party_root/icu/icu4c:static_icui18n", - "$ark_third_party_root/icu/icu4c:static_icuuc", ] external_deps = [ + "icu:static_icui18n", + "icu:static_icuuc", "runtime_core:libarktsassembler_package", "runtime_core:libarktsbase_package", "runtime_core:libarktscompiler_package", diff --git a/merge_abc/BUILD.gn b/merge_abc/BUILD.gn index 54bdb3148c62f3ed1f53d47fcbc730874bce3c53..4d6ccf08e80ad6361007365908e7b0d11ae9b93d 100644 --- a/merge_abc/BUILD.gn +++ b/merge_abc/BUILD.gn @@ -52,7 +52,7 @@ config("panda_assembly_proto_public_config") { } assembly_proto_configs = [ - sdk_libc_secshared_config, + # sdk_libc_secshared_config, "$ark_root:ark_config", ":panda_assembly_proto_public_config", "$ark_root/assembler:arkassembler_public_config", @@ -110,7 +110,7 @@ if (!ark_standalone_build) { } action("arkcompiler_generate_proto") { - deps = [ "$ark_third_party_root/protobuf:protoc($host_toolchain)" ] + deps = [ "protobuf:protoc" ] args = [] sources = [] outputs = proto_generated_header + proto_generated_source @@ -155,8 +155,10 @@ ohos_source_set("assembly_proto_static") { "$ark_root/assembler:libarkassembler_frontend_static", "$ark_root/libpandabase:libarkbase_frontend_static", "$ark_root/libpandafile:libarkfile_frontend_static", - "$ark_third_party_root/protobuf:protobuf_lite_static", - "$ark_third_party_root/protobuf:protobuf_static", + ] + external_deps = [ + "protobuf:protobuf_lite_static", + "protobuf:protobuf_static", ] } @@ -196,7 +198,7 @@ ohos_executable("merge_abc") { include_dirs = [ "./src" ] configs = [ - sdk_libc_secshared_config, + # sdk_libc_secshared_config, "$ark_root:ark_config", ":panda_assembly_proto_public_config", "$ark_root/assembler:arkassembler_public_config", @@ -207,12 +209,11 @@ ohos_executable("merge_abc") { deps = [ ":panda_assembly_proto_static", - "$ark_third_party_root/icu/icu4c:static_icuuc", "../es2panda:es2panda_lib", ] - + external_deps = [ "icu:static_icuuc" ] if (!is_arkui_x) { - external_deps = [ "runtime_core:libarkziparchive_frontend_static" ] + external_deps += [ "runtime_core:libarkziparchive_frontend_static" ] } else { deps += [ "$ark_root/libziparchive:libarkziparchive_frontend_static" ] }