This repository was archived by the owner on May 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 8
8
strategy :
9
9
fail-fast : false
10
10
matrix :
11
- os : [ubuntu-latest, macos-latest]
11
+ os : [ubuntu-latest, macos-latest, windows-latest ]
12
12
steps :
13
13
- uses : actions/checkout@v2
14
14
- uses : actions/setup-python@v1
15
15
with :
16
16
python-version : 3.8
17
+ - name : Install yasm
18
+ if : matrix.os == 'windows-latest'
19
+ run : curl -L -o 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\yasm.exe' http://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe
17
20
- name : Build codecs
18
21
env :
19
22
CIBW_BEFORE_BUILD : scripts/build-codecs /tmp/vendor
23
+ CIBW_BEFORE_BUILD_WINDOWS : scripts\build-codecs.bat C:\cibw\vendor
20
24
CIBW_BUILD : cp38-*
21
25
CIBW_TEST_COMMAND : python -c "import dummy"
22
26
run : |
Original file line number Diff line number Diff line change
1
+ set destdir = %1
2
+
3
+ set outputfile = output\codecs-win%PYTHON_ARCH% .tar.bz2
4
+ if " %PYTHON_ARCH% " == " 64" (
5
+ set triplet = x64-windows-static
6
+ ) else (
7
+ set triplet = x86-windows-static
8
+ )
9
+
10
+ vcpkg install libvpx:%triplet% opus:%triplet%
11
+
12
+ if exist %destdir% (
13
+ rmdir /s /q %destdir%
14
+ )
15
+ mkdir %destdir%
16
+ mkdir %destdir% \include
17
+ mkdir %destdir% \lib
18
+ xcopy C:\vcpkg\installed\%triplet% \include %destdir% \include\ /E
19
+ xcopy C:\vcpkg\installed\%triplet% \lib %destdir% \lib\ /E
20
+
21
+ if not exist output (
22
+ mkdir output
23
+ )
24
+ tar cjvf %outputfile% -C %destdir% include lib
Original file line number Diff line number Diff line change 4
4
if sys .platform == "win32" :
5
5
include_dirs = ["C:\\ cibw\\ vendor\\ include" ]
6
6
library_dirs = ["C:\\ cibw\\ vendor\\ lib" ]
7
+ libraries = ["opus" , "vpxmt" ]
7
8
else :
8
9
include_dirs = ["/tmp/vendor/include" ]
9
10
library_dirs = ["/tmp/vendor/lib" ]
11
+ libraries = ["opus" , "vpx" ]
10
12
11
13
setuptools .setup (
12
14
name = "dummy" ,
17
19
"dummy.binding" ,
18
20
include_dirs = include_dirs ,
19
21
library_dirs = library_dirs ,
20
- libraries = [ "opus" , "vpx" ,] ,
22
+ libraries = libraries ,
21
23
sources = ["src/dummy/binding.c" ],
22
24
),
23
25
],
You can’t perform that action at this time.
0 commit comments