diff --git a/cppLib/build.bat b/cppLib/build.bat index 5ab660e..ea14748 100644 --- a/cppLib/build.bat +++ b/cppLib/build.bat @@ -2,27 +2,27 @@ chcp 65001 > nul set "native_path=C:\Program Files\Huawei\DevEco Studio5\sdk\HarmonyOS-NEXT-DB1\openharmony\native\" -::IF NOT "%~1" == "" ( -:: set "native_path=%~1" -::) -echo %native_path% - +:: IF NOT "%~2" == "" ( +:: set "native_path=%~2" +:: ) +echo native_path: "%native_path%" set "toolchain=%native_path%build\cmake\ohos.toolchain.cmake" -echo %toolchain% +echo toolchain: "%toolchain%" set "cmake_root=%native_path%build-tools\cmake\" -echo %cmake_root% +echo cmake_root: "%cmake_root%" set "cmake_path=%cmake_root%bin\cmake.exe" -echo %cmake_path% +echo cmake_path: "%cmake_path%" set "ninja_path=%cmake_root%bin\ninja.exe" -echo %ninja_path% +echo ninja_path: "%ninja_path%" set "make_path=C:\MinGW\msys\1.0\bin\make.exe" -echo %make_path% +echo make_path: %make_path% set "arch=arm64-v8a" + IF NOT "%~1" == "" ( set "arch=%~1" ) -echo %arch% +echo arch: "%arch%" if exist build ( del /q /s build diff --git a/cppLib/build_all.bat b/cppLib/build_all.bat deleted file mode 100644 index 8c8f94e..0000000 --- a/cppLib/build_all.bat +++ /dev/null @@ -1,5 +0,0 @@ -@echo off -chcp 65001 > nul -build.bat - -build.bat x86_64 diff --git a/cppLib/build_x86.bat b/cppLib/build_x86.bat new file mode 100644 index 0000000..2a7c3f2 --- /dev/null +++ b/cppLib/build_x86.bat @@ -0,0 +1 @@ +build.bat "x86_64"