From c5709915247726581bebd612a828e7695a9f7e03 Mon Sep 17 00:00:00 2001 From: DaiH Date: Fri, 10 Jun 2022 14:50:14 +0800 Subject: [PATCH] Modification of compilation commands ------------------------------------ "rk3568" --> "hispark_taurus_standard" issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5BP4B?from=project-issue Signed-off-by: DaiH Change-Id: I76420f696d9f7a2174b9018a1f7754eaa1fdb4d8 --- README.md | 4 ++-- README_zh.md | 4 ++-- docs/development-example-zh.md | 16 ++++++++-------- docs/development-example.md | 14 +++++++------- docs/environment-setup-and-compilation-zh.md | 12 ++++++------ docs/environment-setup-and-compilation.md | 12 ++++++------ docs/using-the-toolchain-zh.md | 4 ++-- docs/using-the-toolchain.md | 4 ++-- 8 files changed, 35 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 49559d09..901b52c3 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ For more information, see: [ARK Runtime Subsystem](https://gitee.com/openharmony ## Build ``` -./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages +./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages ``` ### Available APIs @@ -68,7 +68,7 @@ For details about how to generate JS bytecodes, see [Using the Toolchain](docs/ To run bytecodes: ``` -LD_LIBRARY_PATH=out/rk3568/clang_x64/ark/ark:out/rk3568/clang_x64/ark/ark_js_runtime:out/rk3568/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc +LD_LIBRARY_PATH=out/hispark_taurus/clang_x64/ark/ark:out/hispark_taurus/clang_x64/ark/ark_js_runtime:out/hispark_taurus/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc ``` For more information, please see: [ARK-Runtime-Usage-Guide](https://gitee.com/openharmony/ark_js_runtime/blob/master/docs/ARK-Runtime-Usage-Guide.md). diff --git a/README_zh.md b/README_zh.md index 3dce8938..4b108eb4 100644 --- a/README_zh.md +++ b/README_zh.md @@ -57,7 +57,7 @@ ## 编译构建 ``` -$./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages +$./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages ``` ### 接口说明 @@ -70,7 +70,7 @@ JS生成字节码参考[工具链使用](docs/using-the-toolchain-zh.md) 字节码执行: ``` -LD_LIBRARY_PATH=out/rk3568/clang_x64/ark/ark:out/rk3568/clang_x64/ark/ark_js_runtime:out/rk3568/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc +LD_LIBRARY_PATH=out/hispark_taurus/clang_x64/ark/ark:out/hispark_taurus/clang_x64/ark/ark_js_runtime:out/hispark_taurus/clang_x64/thirdparty/icu:prebuilts/clang/ohos/linux-x86_64/llvm/lib ./out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm helloworld.abc ``` diff --git a/docs/development-example-zh.md b/docs/development-example-zh.md index 8a53e172..e3032896 100644 --- a/docs/development-example-zh.md +++ b/docs/development-example-zh.md @@ -37,7 +37,7 @@ 2. 编译方舟前端,编译命令: ``` - ./build.sh --product-name rk3568 --build-target ark_ts2abc_build + ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build ``` **说明**:上述编译命令为release版本,且执行路径为项目根目录。编译debug版本需增加编译选项:--gn-args is_debug=true。 @@ -55,20 +55,20 @@ 1. 通过方舟前端生成hello-world.abc文件,编译命令: ``` - node --expose-gc /your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js hello-world.js + node --expose-gc /your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js hello-world.js ``` 2. 执行hello-world.abc文件: 1. 设置搜索路径: ``` - export LD_LIBRARY_PATH= /your code path/out/rk3568/clang_x64/ark/ark:/your code path/out/rk3568/clang_x64/ark/ark_js_runtime:/your code path/out/rk3568/clang_x64/global/i18n_standard:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib + export LD_LIBRARY_PATH= /your code path/out/hispark_taurus/clang_x64/ark/ark:/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime:/your code path/out/hispark_taurus/clang_x64/global/i18n_standard:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib ``` 2. 执行ark\_js\_vm: ``` - /your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc + /your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc ``` 执行结果如下: @@ -92,7 +92,7 @@ 执行如下命令,结果输出到output.pa文件中: ``` -./your code path/out/rk3568/clang_x64/ark/ark/ark_disasm hello-world.abc output.pa +./your code path/out/hispark_taurus/clang_x64/ark/ark/ark_disasm hello-world.abc output.pa ``` hello-world.abc反汇编结果如下: @@ -139,13 +139,13 @@ hello-world.abc反汇编结果如下: 1. 编译方舟运行时,编译命令: ``` -./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages +./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages ``` 1. 编译方舟前端,编译命令: ``` -./build.sh --product-name rk3568 --build-target ark_ts2abc_build +./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build ``` **说明**:编译命令执行路径为项目根目录。 @@ -305,7 +305,7 @@ node test262/harness/bin/run.js --hostType=panda --hostPath=python3 - --hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/rk3568/clang_x64/ark/ark:/your code path/out/rk3568/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda' + --hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/hispark_taurus/clang_x64/ark/ark:/your code path/out/hispark_taurus/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda' --threads=15 --mode=only strict mode --timeout=60000 diff --git a/docs/development-example.md b/docs/development-example.md index 444e4a42..f96c8268 100644 --- a/docs/development-example.md +++ b/docs/development-example.md @@ -48,20 +48,20 @@ Run the **hello-world.js** file. 1. Use the ARK frontend to create the **hello-world.abc** file. ``` - node --expose-gc /your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js hello-world.js + node --expose-gc /your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js hello-world.js ``` 2. Run the **hello-world.abc** file. 1. Set the search path. ``` - export LD_LIBRARY_PATH= out/rk3568/clang_x64/ark/ark:out/rk3568/clang_x64/ark/ark_js_runtime:out/rk3568/clang_x64/global/i18n_standard:prebuilts/clang/ohos/linux-x86_64/llvm/lib + export LD_LIBRARY_PATH= out/hispark_taurus/clang_x64/ark/ark:out/hispark_taurus/clang_x64/ark/ark_js_runtime:out/hispark_taurus/clang_x64/global/i18n_standard:prebuilts/clang/ohos/linux-x86_64/llvm/lib ``` 2. Run **ark\_js\_vm**. ``` - /your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc + /your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm hello-world.abc ``` The execution result is as follows: @@ -77,7 +77,7 @@ Run the **hello-world.js** file. Run the following command to export the result to the **output** file: ``` -./your code path/out/rk3568/clang_x64/ark/ark/ark_disasm hello-world.abc output +./your code path/out/hispark_taurus/clang_x64/ark/ark/ark_disasm hello-world.abc output ``` The output is as follows: @@ -124,13 +124,13 @@ The output is as follows: 1. Run the following command to compile ARK runtime: ``` -./build.sh --product-name rk3568 --build-target ark_js_host_linux_tools_packages +./build.sh --product-name hispark_taurus_standard --build-target ark_js_host_linux_tools_packages ``` 2. Run the following command to compile the ARK frontend: ``` -./build.sh --product-name rk3568 --build-target ark_ts2abc_build +./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build ``` **NOTE**: Run the compilation commands in the project root directory. @@ -293,7 +293,7 @@ node test262/harness/bin/run.js --hostType=panda --hostPath=python3 - --hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/rk3568/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/rk3568/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/rk3568/clang_x64/ark/ark:/your code path/out/rk3568/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda' + --hostArgs='-B test262/run_sunspider.py --ark-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark_js_runtime/ark_js_vm --ark-frontend-tool=/your code path/out/hispark_taurus/clang_x64/ark/ark/build/src/index.js --libs-dir=/your code path/out/hispark_taurus/clang_x64/ark/ark:/your code path/out/hispark_taurus/clang_x64/global/i18n:/your code path/prebuilts/clang/ohos/linux-x86_64/llvm/lib/ --ark-frontend=ts2panda' --threads=15 --mode=only strict mode --timeout=60000 diff --git a/docs/environment-setup-and-compilation-zh.md b/docs/environment-setup-and-compilation-zh.md index 47e6c176..4247a6ef 100644 --- a/docs/environment-setup-and-compilation-zh.md +++ b/docs/environment-setup-and-compilation-zh.md @@ -14,7 +14,7 @@ Ubuntu版本要求18.04或20.04,详细环境搭建参考: 1. 首次编译: ``` - ./build.sh --product-name rk3568 + ./build.sh --product-name hispark_taurus_standard ``` 2. 首次编译后增量编译方舟运行时: @@ -37,7 +37,7 @@ Ubuntu版本要求18.04或20.04,详细环境搭建参考: 3. 首次编译后增量编译方舟前端: ``` - ./build.sh --product-name rk3568 --build-target ark_ts2abc_build + ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build ``` **说明**:上述编译命令为release版本,且执行路径为项目根目录。编译debug版本需增加编译选项:--gn-args is_debug=true。 @@ -45,9 +45,9 @@ Ubuntu版本要求18.04或20.04,详细环境搭建参考: 方舟相关的二进制文件在如下路径: ``` -out/rk3568/ark/ark/ -out/rk3568/ark/ark_js_runtime/ -out/rk3568/clang_x64/ark/ark/ -out/rk3568/clang_x64/ark/ark_js_runtime +out/hispark_taurus/ark/ark/ +out/hispark_taurus/ark/ark_js_runtime/ +out/hispark_taurus/clang_x64/ark/ark/ +out/hispark_taurus/clang_x64/ark/ark_js_runtime ``` diff --git a/docs/environment-setup-and-compilation.md b/docs/environment-setup-and-compilation.md index d8d0bfed..51c94e61 100644 --- a/docs/environment-setup-and-compilation.md +++ b/docs/environment-setup-and-compilation.md @@ -11,7 +11,7 @@ Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see: 1. First compilation: ``` - ./build.sh --product-name rk3568 + ./build.sh --product-name hispark_taurus_standard ``` 2. Compile an ARK runtime after the first compilation: @@ -34,7 +34,7 @@ Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see: 3. Compile the ARK frontend after the first compilation: ``` - ./build.sh --product-name rk3568 --build-target ark_ts2abc_build + ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build ``` **NOTE**: Run the compilation commands in the project root directory. @@ -42,8 +42,8 @@ Use Ubuntu 18.04 or 20.04. For details about how to set up the environment, see: The binary files related to ARK are available in the following paths: ``` -out/rk3568/ark/ark/ -out/rk3568/ark/ark_js_runtime/ -out/rk3568/clang_x64/ark/ark/ -out/rk3568/clang_x64/ark/ark_js_runtime +out/hispark_taurus/ark/ark/ +out/hispark_taurus/ark/ark_js_runtime/ +out/hispark_taurus/clang_x64/ark/ark/ +out/hispark_taurus/clang_x64/ark/ark_js_runtime ``` diff --git a/docs/using-the-toolchain-zh.md b/docs/using-the-toolchain-zh.md index 50d48919..8ea6b4ec 100644 --- a/docs/using-the-toolchain-zh.md +++ b/docs/using-the-toolchain-zh.md @@ -9,13 +9,13 @@ 构建编译: ``` -$ ./build.sh --product-name rk3568 --build-target ark_ts2abc_build +$ ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc_build ``` 安装`node`和`npm`后, 使用前端工具: ``` -$ cd out/rk3568/clang_x64/ark/ark/build +$ cd out/hispark_taurus/clang_x64/ark/ark/build $ npm install $ node --expose-gc src/index.js [选项] file.js ``` diff --git a/docs/using-the-toolchain.md b/docs/using-the-toolchain.md index 637170af..fe1b811a 100644 --- a/docs/using-the-toolchain.md +++ b/docs/using-the-toolchain.md @@ -9,13 +9,13 @@ Front-end tools, converting JS source code into ARK bytecode, can be built by sp Build tools: ``` -$ ./build.sh --product-name rk3568 --build-target ark_ts2abc +$ ./build.sh --product-name hispark_taurus_standard --build-target ark_ts2abc ``` Install `node` and `npm`, then use tools: ``` -$ cd out/rk3568/clang_x64/ark/ark/build +$ cd out/hispark_taurus/clang_x64/ark/ark/build $ npm install $ node --expose-gc src/index.js [option] file.js ```