try
This commit is contained in:
parent
afa5ae9463
commit
30913ef51a
2 changed files with 13 additions and 2 deletions
11
.cirrus.yml
11
.cirrus.yml
|
@ -44,12 +44,21 @@ mac_task:
|
||||||
setup_script:
|
setup_script:
|
||||||
- brew update
|
- brew update
|
||||||
- brew install python@${PY_VER}
|
- brew install python@${PY_VER}
|
||||||
|
build_sdl_script:
|
||||||
|
- wget https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.30.7.tar.gz
|
||||||
|
- tar xvfz release-2.30.7.tar.gz
|
||||||
|
- mkdir build
|
||||||
|
- cd build
|
||||||
|
- cmake ../SDL-release-2.30.7 -DSDL_SHARED=OFF -DSDL_STATIC=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_BUILD_TYPE=Release
|
||||||
|
- cmake --build . --config Release
|
||||||
|
- sudo cmake --install .
|
||||||
|
- cd ..
|
||||||
build_raylib_script:
|
build_raylib_script:
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
- cd raylib-c
|
- cd raylib-c
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- cd build
|
- cd build
|
||||||
- cmake -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
|
- cmake -DPLATFORM=SDL -DBUILD_EXAMPLES=OFF -DCUSTOMIZE_BUILD=ON -DSUPPORT_FILEFORMAT_JPG=ON -DSUPPORT_FILEFORMAT_FLAC=ON -DWITH_PIC=ON -DCMAKE_BUILD_TYPE=Release ..
|
||||||
- make -j8
|
- make -j8
|
||||||
- sudo make install
|
- sudo make install
|
||||||
build_script:
|
build_script:
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -10,6 +10,8 @@ HERE = pathlib.Path(__file__).parent
|
||||||
README = (HERE / "README.md").read_text()
|
README = (HERE / "README.md").read_text()
|
||||||
VERSION = (HERE / "version.py").read_text().split()[-1].strip("\"'")
|
VERSION = (HERE / "version.py").read_text().split()[-1].strip("\"'")
|
||||||
|
|
||||||
|
RAYLIB_PLATFORM = os.getenv("RAYLIB_PLATFORM", "Desktop")
|
||||||
|
NAME = "raylib_sdl" if RAYLIB_PLATFORM == "SDL" else "raylib"
|
||||||
|
|
||||||
class BinaryDistribution(Distribution):
|
class BinaryDistribution(Distribution):
|
||||||
"""Distribution which always forces a binary package with platform name"""
|
"""Distribution which always forces a binary package with platform name"""
|
||||||
|
@ -18,7 +20,7 @@ class BinaryDistribution(Distribution):
|
||||||
|
|
||||||
# This call to setup() does all the work
|
# This call to setup() does all the work
|
||||||
setup(
|
setup(
|
||||||
name="raylib_sdl",
|
name=NAME,
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
description="Python CFFI bindings for Raylib",
|
description="Python CFFI bindings for Raylib",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
|
|
Reference in a new issue