Skip to content

Commit

Permalink
Merge pull request #80 from shiguredo/feature/fix-run-py
Browse files Browse the repository at this point in the history
ローカルビルドを通せなくなっているので修正
  • Loading branch information
voluntas committed Sep 10, 2024
2 parents 2094a3c + bc59e06 commit 2909823
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

### misc

- [FIX] run.py で local_sora_cpp_sdk_dir を設定した際に boost が引けなくなってしまっている問題を修正する
- @tnoho
- [FIX] examples の設定に virtual = true を指定するようにする
- これを指定しないとエラーになる
- @voluntas
Expand Down
9 changes: 7 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
cmd,
cmdcap,
get_macos_osver,
get_sora_info,
get_webrtc_info,
get_webrtc_platform,
get_windows_osver,
Expand Down Expand Up @@ -218,14 +219,18 @@ def main():
webrtc_info = get_webrtc_info(
webrtc_platform, args.local_webrtc_build_dir, install_dir, args.debug
)

sora_info = get_sora_info(
webrtc_platform, args.local_sora_cpp_sdk_dir, install_dir, args.debug
)

cmake_args = []
cmake_args.append(f"-DCMAKE_BUILD_TYPE={configuration}")
cmake_args.append(f"-DTARGET_OS={platform.target.os}")
cmake_args.append(f"-DBOOST_ROOT={cmake_path(os.path.join(install_dir, 'boost'))}")
cmake_args.append(f"-DBOOST_ROOT={cmake_path(sora_info.boost_install_dir)}")
cmake_args.append(f"-DWEBRTC_INCLUDE_DIR={cmake_path(webrtc_info.webrtc_include_dir)}")
cmake_args.append(f"-DWEBRTC_LIBRARY_DIR={cmake_path(webrtc_info.webrtc_library_dir)}")
cmake_args.append(f"-DSORA_DIR={cmake_path(os.path.join(install_dir, 'sora'))}")
cmake_args.append(f"-DSORA_DIR={cmake_path(sora_info.sora_install_dir)}")
cmake_args.append(f"-DOPENH264_DIR={cmake_path(os.path.join(install_dir, 'openh264'))}")
python_version = get_python_version()
cmake_args.append(f"-DPYTHON_VERSION_STRING={python_version}")
Expand Down

0 comments on commit 2909823

Please sign in to comment.