-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace mercurial's tar.bz2 with the primary tar.gz #4
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1c02a7a
Replace mercurial's tar.bz2 with the primary tar.gz
36e3482
Only build SDL2 statically
188a504
Pass-through SHARED value to SDL, and ensure bin/sdl2-config is insta…
9360b73
Switch to SDL2 git repo until SDL2 removing symlinks from their HG ar…
63002d7
Update download_sdl2_hg.cmake
5d4c7b5
Update download_sdl2_hg.cmake
d37dbe0
Reflect the fact we're using the master branch from github (temporarily)
4ac917d
Call git directly and use a shallow-clone
b514c8f
Enable cmake's native shallow-cloning
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -5,8 +5,9 @@ | |
# SDL2_INSTALL_DIR The install directory | ||
# SDL2_REPOSITORY_PATH The reposotory directory | ||
|
||
# Require ExternalProject! | ||
# Require ExternalProject and GIT! | ||
include(ExternalProject) | ||
find_package(Git REQUIRED) | ||
|
||
# Posttible Input Vars: | ||
# <None> | ||
|
@@ -26,11 +27,16 @@ endif() | |
ExternalProject_Add( | ||
SDL2HG | ||
PREFIX ${CMAKE_BINARY_DIR}/external/SDL2 | ||
URL https://hg.libsdl.org/SDL/archive/default.tar.bz2 | ||
# URL https://hg.libsdl.org/SDL/archive/default.tar.bz2 | ||
# Re-enable when the tarball is symlink-free for better Windows compatibility. | ||
# In the meantime, use the auto-tracking SDL2 Git repo: | ||
GIT_SHALLOW 1 | ||
GIT_REPOSITORY https://github.com/spurious/SDL-mirror.git | ||
CMAKE_ARGS | ||
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" | ||
"-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}" | ||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR} | ||
-DSNDIO=OFF | ||
-DSDL_SHARED=${SHARED} | ||
-DCMAKE_DEBUG_POSTFIX=${CMAKE_DEBUG_POSTFIX} | ||
${SDL2_CMAKE_FPIC_FLAG} | ||
${SDL2_NOWASAPI} # WASAPI, No way! | ||
|
@@ -42,6 +48,6 @@ install( | |
CODE "file( INSTALL \${builtSdl2Heads} DESTINATION \"${CMAKE_INSTALL_PREFIX}/include/SDL2\" )" | ||
CODE "file( GLOB builtSdlLibs \"${CMAKE_BINARY_DIR}/lib/*SDL2*\" )" | ||
CODE "file( INSTALL \${builtSdlLibs} DESTINATION \"${CMAKE_INSTALL_PREFIX}/lib\" )" | ||
CODE "file( GLOB builtSdlBins \"${CMAKE_BINARY_DIR}/bin/*SDL2*\" )" | ||
CODE "file( GLOB builtSdlBins \"${CMAKE_BINARY_DIR}/bin/*\" )" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's bad idea: every other library that included into this AudioCodecs pack is adding into same install path. so, making this you making duplicates be installed which will overflow the queue... |
||
CODE "file( INSTALL \${builtSdlBins} DESTINATION \"${CMAKE_INSTALL_PREFIX}/bin\" )" | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why those are quoted - ability to have space-contained paths. Removal of quotes breaks the support of them.