• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import shutil
2import os
3
4cmake_path = shutil.which('cmake')
5
6cmake_file = os.path.join(os.path.dirname(
7    cmake_path), '../../../build/cmake/ohos.toolchain.cmake')
8
9find_toolchain_file = os.path.isfile(cmake_file)
10
11if(find_toolchain_file):
12    toolchain_file = cmake_file
13else:
14    print(cmake_file+" not found")
15    # toolchain_file = "~/openharmony/out/sdk/packages/ohos-sdk/linux/native/build/cmake/ohos.toolchain.cmake"
16
17
18linux_args = [
19    '-DOHOS_STL=c++_shared',
20    '-DOHOS_ARCH=armeabi-v7a',
21    '-DOHOS_PLATFORM=OHOS',
22    '-DCMAKE_TOOLCHAIN_FILE='+toolchain_file,
23]