Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Dec 7, 2023
1 parent 4b95386 commit 944e09c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,7 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug,
f"-DCMAKE_CXX_COMPILER={cmake_path(os.path.join(webrtc_info.clang_dir, 'bin', 'clang++'))}")
path = cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))
cmake_args.append(f"-DCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES={path}")
cmake_args.append(f"-DCMAKE_CXX_FLAGS={' '.join(['-nostdinc++'])}")
if platform.target.os == 'jetson':
sysroot = os.path.join(install_dir, 'rootfs')
cmake_args.append('-DCMAKE_SYSTEM_NAME=Linux')
Expand All @@ -1480,12 +1481,14 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug,
cmake_args.append('-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH')
cmake_args.append('-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=BOTH')
cmake_args.append('-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH')
cmake_args.append(f"-DCMAKE_CXX_FLAGS={' '.join(['-nostdinc++'])}")
if platform.target.os == 'ios':
cmake_args += ['-G', 'Xcode']
cmake_args.append("-DCMAKE_SYSTEM_NAME=iOS")
cmake_args.append("-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64")
cmake_args.append("-DCMAKE_OSX_DEPLOYMENT_TARGET=13.0")
cmake_args.append("-DCMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH=NO")
cmake_args.append("-DBLEND2D_NO_JIT=ON")
if platform.target.os == 'android':
toolchain_file = os.path.join(install_dir, 'android-ndk', 'build', 'cmake', 'android.toolchain.cmake')
android_native_api_level = version['ANDROID_NATIVE_API_LEVEL']
Expand All @@ -1501,6 +1504,7 @@ def install_deps(platform: Platform, source_dir, build_dir, install_dir, debug,
# https://github.com/android/ndk/issues/1618
cmake_args.append('-DCMAKE_ANDROID_EXCEPTIONS=ON')
cmake_args.append('-DANDROID_NDK=OFF')
cmake_args.append(f"-DCMAKE_CXX_FLAGS={' '.join(['-nostdinc++'])}")
install_blend2d_args['cmake_args'] = cmake_args
install_blend2d(**install_blend2d_args)

Expand Down

0 comments on commit 944e09c

Please sign in to comment.