-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/aduros/wasm4 into chore/con…
…vert-to-monorepo
- Loading branch information
Showing
31 changed files
with
1,026 additions
and
143 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
# DESCRIPTION: GitLab CI/CD for libRetro (NOT FOR GitLab-proper) | ||
|
||
############################################################################## | ||
################################# BOILERPLATE ################################ | ||
############################################################################## | ||
|
||
# Core definitions | ||
.core-defs: | ||
variables: | ||
GIT_SUBMODULE_STRATEGY: recursive | ||
CORENAME: wasm4 | ||
CORE_ARGS: -DCMAKE_BUILD_TYPE=Release -DLIBRETRO=ON | ||
CMAKE_SOURCE_ROOT: runtimes/native | ||
|
||
.core-defs-linux: | ||
extends: .core-defs | ||
variables: | ||
CORE_ARGS: -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DCMAKE_BUILD_TYPE=Release | ||
|
||
.core-defs-osx-x64: | ||
extends: .core-defs | ||
variables: | ||
CORE_ARGS: -G Xcode -DCMAKE_BUILD_TYPE=Release | ||
EXTRA_PATH: Release | ||
|
||
.core-defs-android: | ||
extends: .core-defs | ||
|
||
.core-defs-emscripten: | ||
extends: .core-defs | ||
|
||
# Inclusion templates, required for the build to work | ||
include: | ||
################################## DESKTOPS ################################ | ||
# Windows | ||
- project: 'libretro-infrastructure/ci-templates' | ||
file: '/windows-cmake-mingw.yml' | ||
|
||
# MacOS | ||
- project: 'libretro-infrastructure/ci-templates' | ||
file: 'osx-cmake-x86.yml' | ||
|
||
# Linux | ||
- project: 'libretro-infrastructure/ci-templates' | ||
file: '/linux-cmake.yml' | ||
|
||
################################## CELLULAR ################################ | ||
# Android | ||
- project: 'libretro-infrastructure/ci-templates' | ||
file: '/android-cmake.yml' | ||
|
||
################################## MISC #################################### | ||
# Emscripten | ||
- project: 'libretro-infrastructure/ci-templates' | ||
file: '/emscripten-static-cmake.yml' | ||
|
||
# Stages for building | ||
stages: | ||
- build-prepare | ||
- build-shared | ||
- build-static | ||
|
||
############################################################################## | ||
#################################### STAGES ################################## | ||
############################################################################## | ||
# | ||
################################### DESKTOPS ################################# | ||
# Windows 64-bit | ||
libretro-build-windows-x64: | ||
extends: | ||
- .libretro-windows-cmake-x86_64 | ||
- .core-defs | ||
|
||
# Windows 32-bit | ||
libretro-build-windows-i686: | ||
extends: | ||
- .libretro-windows-cmake-x86 | ||
- .core-defs | ||
|
||
# Linux 64-bit | ||
libretro-build-linux-x64: | ||
extends: | ||
- .libretro-linux-cmake-x86_64 | ||
- .core-defs-linux | ||
|
||
# Linux 32-bit | ||
libretro-build-linux-i686: | ||
extends: | ||
- .libretro-linux-cmake-x86 | ||
- .core-defs-linux | ||
|
||
# MacOS 64-bit | ||
libretro-build-osx-x64: | ||
extends: | ||
- .libretro-osx-cmake-x86 | ||
- .core-defs-osx-x64 | ||
|
||
################################### CELLULAR ################################# | ||
# Android ARMv7a | ||
android-armeabi-v7a: | ||
extends: | ||
- .libretro-android-cmake-armeabi-v7a | ||
- .core-defs-android | ||
|
||
# Android ARMv8a | ||
android-arm64-v8a: | ||
extends: | ||
- .libretro-android-cmake-arm64-v8a | ||
- .core-defs-android | ||
|
||
# Android 64-bit x86 | ||
android-x86_64: | ||
extends: | ||
- .libretro-android-cmake-x86_64 | ||
- .core-defs-android | ||
|
||
# Android 32-bit x86 | ||
android-x86: | ||
extends: | ||
- .libretro-android-cmake-x86 | ||
- .core-defs-android | ||
|
||
################################### MISC ##################################### | ||
|
||
# Emscripten | ||
libretro-build-emscripten: | ||
extends: | ||
- .libretro-emscripten-static-cmake-retroarch-master | ||
- .core-defs-emscripten |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[submodule "runtimes/native/vendor/wasm3"] | ||
path = runtimes/native/vendor/wasm3 | ||
url = git://github.com/wasm3/wasm3 | ||
url = https://github.com/wasm3/wasm3 | ||
[submodule "runtimes/native/vendor/glfw"] | ||
path = runtimes/native/vendor/glfw | ||
url = git://github.com/glfw/glfw | ||
url = https://github.com/glfw/glfw | ||
[submodule "runtimes/native/vendor/minifb"] | ||
path = runtimes/native/vendor/minifb | ||
url = git://github.com/emoon/minifb | ||
url = https://github.com/emoon/minifb | ||
[submodule "runtimes/native/vendor/cubeb"] | ||
path = runtimes/native/vendor/cubeb | ||
url = git://github.com/mozilla/cubeb | ||
url = https://github.com/mozilla/cubeb |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
build/cart.wasm: src/*.odin | ||
@-mkdir -p build | ||
odin build src -out:build/cart.wasm -target:freestanding_wasm32 -no-entry-point -extra-linker-flags:"--import-memory -zstack-size=8192 --initial-memory=65536 --max-memory=65536 --global-base=6560 --lto-O3 --gc-sections --strip-all" | ||
odin build src -out:build/cart.wasm -target:freestanding_wasm32 -no-entry-point -extra-linker-flags:"--import-memory -zstack-size=14752 --initial-memory=65536 --max-memory=65536 --stack-first --lto-O3 --gc-sections --strip-all" |
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.