Skip to content

Instantly share code, notes, and snippets.

@faywong
Created March 26, 2024 11:27
Show Gist options
  • Select an option

  • Save faywong/ac477ffc175329035a512fec282824c5 to your computer and use it in GitHub Desktop.

Select an option

Save faywong/ac477ffc175329035a512fec282824c5 to your computer and use it in GitHub Desktop.

Revisions

  1. faywong created this gist Mar 26, 2024.
    2 changes: 2 additions & 0 deletions howto_write_cpp_on_ohos.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    export OHOS_SDK=/Users/faywong/Library/Huawei/Sdk/HarmonyOS-NEXT-DP1
    cmake -DOHOS_STL=c++_shared -DOHOS_ARCH=armeabi-v7a -DOHOS_PLATFORM=OHOS -DCMAKE_TOOLCHAIN_FILE=${OHOS_SDK}/base/native/build/cmake/ohos.toolchain.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1