Last active
December 29, 2023 01:59
-
-
Save bennyhuo/63b8dd9194ab38cf9f10a19cf5ce7645 to your computer and use it in GitHub Desktop.
外部工具开发鸿蒙 App 的 C++ 代码时,需要为 CMake 额外配置的变量,注意 $SDK_HOME 替换为 SDK 所在的目录,macOS 上一般为 ~/Library/Huawei/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-DOHOS_ARCH=arm64-v8a | |
-DCMAKE_BUILD_TYPE=Debug | |
-DOHOS_SDK_NATIVE=$SDK_HOME/Sdk/openharmony/10/native | |
-DCMAKE_SYSTEM_NAME=OHOS | |
-DCMAKE_OHOS_ARCH_ABI=arm64-v8a | |
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON | |
-DCMAKE_TOOLCHAIN_FILE=$SDK_HOME/Sdk/hmscore/4.0.0/native/build/cmake/hmos.toolchain.cmake | |
-DCMAKE_MAKE_PROGRAM=$SDK_HOME/Sdk/openharmony/10/native/build-tools/cmake/bin/ninja | |
--no-warn-unused-cli | |
-DHMOS_SDK_NATIVE=$SDK_HOME/Sdk/hmscore/4.0.0/native |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
怪了,hmscore没有4.0.0版本