Skip to content

freckled-dev/conan-google-webrtc

Repository files navigation

about

conan build files for google webrtc.

miscelaneous

list possible arguments

gn gen out/my_build
gn args --list out/my_build

list for ubuntu 18.04 v88

prerequists

ubuntu

install system dependencies

sudo apt install -y sudo lsb-release
curl -LO https://raw.githubusercontent.com/chromium/chromium/master/build/install-build-deps.sh
chmod u+x install-build-deps.sh
./install-build-deps.sh

now you are set up.

windows

instructions https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md

use the visual studio installer and install the “Desktop development with C++” component and the “MFC/ATL support” sub-components.

The SDK Debugging Tools must also be installed. If the Windows 10 SDK was installed via the Visual Studio installer, then they can be installed by going to: Control Panel → Programs → Programs and Features → Select the “Windows Software Development Kit” → Change → Change → Check “Debugging Tools For Windows” → Change.

create and set the environment variable: "DEPOT_TOOLS_WIN_TOOLCHAIN=1". Else it searches for vs2017 in googly style.

You must have the version 10.0.19041 or higher Windows 10 SDK installed. This can be installed separately or by checking the appropriate box in the Visual Studio Installer. or by https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/

disable Antimalware service

enable long paths https://docs.conan.io/en/latest/reference/conanfile/attributes.html#short-paths by using the tool Group Policy then Computer Configuration > Administrative Templates > System > Filesystem > Enable Win32 long paths. AND set it to msys git (git bash) git config --system core.longpaths true

use cmd. Everything else does not work. Including Power Shell.

because there's no pip, install conan by installer \

now ur set up. create the packages by

notes on versions

v69 Install windows 10 SDK 10.0.17*

tips if there're errors

by default the conan script loads depot_tools. To do it manually: download depot_tools. add it to the system environment. ensure it's first in PATH so no other pyhton exe can be found before it.
https://storage.googleapis.com/chrome-infra/depot_tools.zip verify that python comes first from depot_tools by running

where python
where python3

no win32file https://stackoverflow.com/questions/55551188/python-importerror-no-module-named-win32file

FAILED: py_quality_assessment/apm_configs/default.json
C:/.conan/231d67/1/depot_tools/bootstrap-3_8_0_chromium_8_bin/python/bin/python.exe src/build/toolchain/win/tool_wrapper.py recursive-mirror src/modules/audio_processing/test/py_quality_assessment/apm_configs/default.json py_quality_assessment/apm_configs/default.json
Traceback (most recent call last):
  File "src/build/toolchain/win/tool_wrapper.py", line 51, in <module>
    import win32file    # pylint: disable=import-error
ImportError: No module named win32file

solution, install it

<path-to-depot_tools>/<path-to-python>/python.exe -m pip install pywin32
<path-to-depot_tools>/<path-to-python>/python.exe -m pip install pywin32

create packages and upload them

https://docs.gitlab.com/ee/user/packages/conan_repository/index.html

create release and debug packages

conan create .
conan create . -s build_type=Debug

upload them by

conan remote add freckled_webrtc https://api.bintray.com/conan/freckled/google-webrtc
# conan remote add gitlab https://gitlab.com/api/v4/projects/19162728/packages/conan
# export CONAN_LOGIN_USERNAME=
# export CONAN_PASSWORD=
# conan upload --all --remote=gitlab google-webrtc
conan user -p <APIKEY> -r freckled_webrtc freckled
conan upload --all --remote=freckled_webrtc google-webrtc

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published