-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathpyproject.toml
More file actions
60 lines (56 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
60 lines (56 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# To generate wheels locally for linux run
# python3 -m cibuildwheel --output-dir dist --platform linux .
# To generate wheels locally for mac x86_64 run
# python3 -m cibuildwheel --output-dir dist --platform macos --arch x86_64 .
# To generate wheels locally for windows AMD64
# python3 -m cibuildwheel --output-dir dist --platform windows --arch AMD64 .
[build-system]
requires = [
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.cibuildwheel.macos]
before-build='''
# Update or install cmake
brew upgrade cmake || brew install cmake
# Other deps
brew install boost fmt glog jpeg-turbo libpng lz4 xxhash zstd opus
'''
environment = {"CMAKE_ARGS"="-DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++"}
##
# Specifics for Windows platform
##
# VCPKG is used to retrieve and compile static libraries
# To ensure we have a fast build we:
# - are editing x64-windows-static.cmake to build RELEASE only artifacts
# - build only the required boost dependencies (building all boost is slow)
#
# We use VCPKG with a commit HASH containing the fix for CMake 4.0 see https://github.com/microsoft/vcpkg/issues/44507
# We will update to the next available release tag once it is available
##
[tool.cibuildwheel.windows]
environment = {"CMAKE_GENERATOR"="Visual Studio 17 2022"}
before-build = [
"git clone https://github.com/microsoft/vcpkg.git",
"cd vcpkg",
"git checkout 0bde25d4ffc4349ac70a8c22615203eb1201aa4a",
"findstr /c:\"set(VCPKG_BUILD_TYPE release)\" triplets\\x64-windows-static.cmake || echo set(VCPKG_BUILD_TYPE release) >> triplets\\x64-windows-static.cmake",
"bootstrap-vcpkg.bat -disableMetrics",
"vcpkg update",
"vcpkg integrate install",
"vcpkg integrate remove",
"vcpkg install lz4:x64-windows-static",
"vcpkg install zstd:x64-windows-static",
"vcpkg install xxhash:x64-windows-static",
"vcpkg install libpng:x64-windows-static",
"vcpkg install libjpeg-turbo:x64-windows-static",
"vcpkg install fmt:x64-windows-static",
"vcpkg install boost-date-time:x64-windows-static",
"vcpkg install boost-filesystem:x64-windows-static",
"vcpkg install boost-iostreams:x64-windows-static",
"vcpkg install boost-system:x64-windows-static",
"vcpkg install boost-uuid:x64-windows-static",
"vcpkg install boost-interprocess:x64-windows-static",
]