-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removes the dependency on VCPKG entirely, due to conflicts between VCPKG and Emscripten - Adds an optional submodule target for GLM - Moves CMake code relative to dependencies into their dependency files (mk/cmake/SuperTux/Provide*.cmake) - Updates (and significantly simplifies) the build steps for WASM - Fixes a compilation error in `#ifdef EMSCRIPTEN`-guarded code - Allows using the latest version of Emscripten (3.something) instead of the old 1.40 branch - Removes the need to patch SDL_ttf, and adds an option to use the builds provided by Emscripten - Updates the workflow files to reflect those changes
- Loading branch information
Semphris
committed
Jun 26, 2023
1 parent
617933b
commit 0dc4025
Showing
17 changed files
with
148 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
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,17 +1,24 @@ | ||
find_package(OggVorbis REQUIRED) | ||
if(EMSCRIPTEN) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -sUSE_VORBIS=1") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -sUSE_VORBIS=1") | ||
set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -sUSE_VORBIS=1") | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -sUSE_VORBIS=1") | ||
else() | ||
find_package(OggVorbis REQUIRED) | ||
|
||
add_library(LibOggVorbis INTERFACE IMPORTED) | ||
set_target_properties(LibOggVorbis PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${VORBIS_INCLUDE_DIR}" | ||
INTERFACE_LINK_LIBRARIES "${OGGVORBIS_LIBRARIES}" | ||
) | ||
add_library(LibOggVorbis INTERFACE IMPORTED) | ||
set_target_properties(LibOggVorbis PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${VORBIS_INCLUDE_DIR}" | ||
INTERFACE_LINK_LIBRARIES "${OGGVORBIS_LIBRARIES}" | ||
) | ||
|
||
mark_as_advanced( | ||
OGG_LIBRARY | ||
VORBISENC_LIBRARY | ||
VORBISFILE_LIBRARY | ||
VORBIS_INCLUDE_DIR | ||
VORBIS_LIBRARY | ||
) | ||
mark_as_advanced( | ||
OGG_LIBRARY | ||
VORBISENC_LIBRARY | ||
VORBISFILE_LIBRARY | ||
VORBIS_INCLUDE_DIR | ||
VORBIS_LIBRARY | ||
) | ||
endif() | ||
|
||
# EOF # |
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.