diff --git a/.github/workflows/build_windows_wheels.yml b/.github/workflows/build_windows_wheels.yml index 728b7e0..5b79421 100644 --- a/.github/workflows/build_windows_wheels.yml +++ b/.github/workflows/build_windows_wheels.yml @@ -4,6 +4,7 @@ on: branches: - main - pypi-dev + - win-32 paths: - '.github/workflows/build_windows_wheels.yml' - 'python-webrtc/cpp/**' @@ -19,8 +20,8 @@ jobs: strategy: matrix: arch: [ -# "x32", - "x64", + "x32", +# "x64", ] env: @@ -52,7 +53,7 @@ jobs: if: matrix.arch == 'x32' working-directory: "C:/src" env: - TARGET_ARCH: ia32 + TARGET_ARCH: x86 CIBW_BEFORE_BUILD: call vcvars32.bat CIBW_ARCHS: x86 CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7" diff --git a/CMakeLists.txt b/CMakeLists.txt index 288e3b9..e11f6a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,10 @@ else() set(DEPOT_GIT_TAG 9b5dd7ab8a98140a1b73b9dea29245605137cd09) # glibc 2.18, supports python 3 < 3.8 endif() +if (WIN32) + set(DEPOT_GIT_TAG 2fddb95698211db1373ebe2b16091a54eac51c9c) +endif() + ExternalProject_Add( project_depot_tools @@ -166,9 +170,9 @@ else() rtc_build_tools=false ) - if ("$ENV{TARGET_ARCH}" STREQUAL "ia32") + if ("$ENV{TARGET_ARCH}" STREQUAL "x86") list(APPEND GN_GEN_ARGS - target_arch=ia32 + target_cpu=x86 ) endif() endif()