-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also makes SDL2 mandatory for the tools.
- Loading branch information
Showing
14 changed files
with
142 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
brew install ffmpeg freetype fribidi harfbuzz [email protected] curl pkg-config nasm create-dmg | ||
brew install sdl2 sdl2_net ffmpeg freetype fribidi harfbuzz [email protected] curl pkg-config nasm create-dmg | ||
- name: Setup venv | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,6 +214,12 @@ def _gen_ios_cross_file(cfg): | |
dst_file="SDL2-@[email protected]", | ||
sha256="fc5d6c096a6b82f86613060dfef553a09b9e08afcb401fefac4b9ca221265cda", | ||
), | ||
sdl2_net_Windows=dict( | ||
version="2.2.0", | ||
url="https://github.com/libsdl-org/SDL_net/releases/download/release-2.2.0/SDL2_net-devel-@[email protected]", | ||
dst_file="SDL2_net-@[email protected]", | ||
sha256="f364e55babb44e47b41d039a43c640aa1f76615b726855591b555321c7d870dd", | ||
), | ||
glslang=dict( | ||
version="14.1.0", | ||
dst_file="glslang-@[email protected]", | ||
|
@@ -298,6 +304,7 @@ def _get_external_deps(args): | |
deps.append("opengl_registry") | ||
deps.append("ffmpeg_Windows") | ||
deps.append("sdl2_Windows") | ||
deps.append("sdl2_net_Windows") | ||
deps.append("glslang_Windows") | ||
deps.append("freetype") | ||
deps.append("harfbuzz") | ||
|
@@ -784,6 +791,27 @@ def _sdl2_install(cfg): | |
return cmds | ||
|
||
|
||
@_block("sdl_2net-install", []) | ||
def _sdl2_net_install(cfg): | ||
dirs = ( | ||
"lib", | ||
"include", | ||
"cmake", | ||
) | ||
cmds = [] | ||
for d in dirs: | ||
src = op.join(cfg.externals["sdl2_net_Windows"], d, "*") | ||
dst = op.join(cfg.prefix, d) | ||
os.makedirs(dst, exist_ok=True) | ||
cmds.append(_cmd_join("xcopy", src, dst, "/s", "/y")) | ||
|
||
src = op.join(cfg.externals["sdl2_net_Windows"], "lib", "x64", "SDL2_net.dll") | ||
dst = op.join(cfg.prefix, "Scripts") | ||
cmds.append(_cmd_join("xcopy", src, dst, "/y")) | ||
|
||
return cmds | ||
|
||
|
||
@_block("moltenvk-install", []) | ||
def _moltenvk_install(cfg): | ||
resources = ( | ||
|
@@ -877,7 +905,7 @@ def _glslang_install(cfg): | |
{ | ||
"Android": [_ffmpeg_install], | ||
"iOS": [_ffmpeg_install], | ||
"Windows": [_pkgconf_install, _ffmpeg_install, _sdl2_install], | ||
"Windows": [_pkgconf_install, _ffmpeg_install, _sdl2_install, _sdl2_net_install], | ||
}, | ||
) | ||
def _nopemd_setup(cfg): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.