-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
CMake Refactor #3093
Draft
swagtoy
wants to merge
56
commits into
SuperTux:master
Choose a base branch
from
swagtoy:cmake-refactor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
CMake Refactor #3093
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
94f8326
Move enscripten
d83f40c
Move to find_package directly in the CMakeLists.txt
c72db8b
Remove CMakeLists.txt.old (oops)
0476871
Remove supertux2_lib and supertux2_c
b249342
Fix warning from other cmakefiles
219b28d
Switch to PkgConfig for a few things (kind of a hack)
7d9a7ef
Remove my attribution from Copyright
ec7043e
Fix PIC linking issues
2d17b3f
Fix Emacs
8b9f20f
Use custom add_package to handle dependency checking in one line
67395f5
Fix install guide for Ubuntu and Arch
9866b82
Refactor add_package to a macro, do aliases, move to separate file
099690b
Fix incorrect terminology
1b58d75
Better ProvideDiscord warning
0063eec
Refactor tests a bit
2d9d3dd
MD5 unit test
4c29ca7
5am code
d4d8df9
make_unit_test; fix AATriangleTest
fd67dcd
Use SDL_rect.h instead of SDL.h for math/rect methods
6830c02
Custom assert function (broken)
5e6bc8d
GLM_ENABLE_EXPERIMENTAL
9fbf635
Make tests/assert more verbose
ca30f08
Merge branch 'cmake-refactor' of github.com:swagtoy/supertux into cma…
d13fd68
Add broken DynamicScopeTest for now
b86b57f
Fix title screen release check
a8237a4
Move SavePNG
7013c00
Fix SDL_SavePNG
d18ffea
Packages using provides code wot i dont think compiles anyway lole ju…
96ecc66
Merge branch 'cmake-refactor' of https://github.com/swagtoy/supertux …
84023d2
btich mingw
MatusGuy 5f72189
Merge branch 'master' of https://github.com/swagtoy/supertux into cma…
9a92c2d
Fix indention
15733c9
Workaround tinygettext wanting iconv
9c48859
Add more external links
b64184e
remove gprof thingy and wip mingw fix error handler
MatusGuy edc7666
mingw works!!! Create dbghelp.a using a predefined dbghelp.def
MatusGuy af14dc4
Add ALL_TESTS target; add FileSystemTest just to remove it anyway
cb08b63
Would help if I actually committed the tests
e65617f
add this file that i forgot to add for mingw
MatusGuy 244c8ea
Merge branch 'cmake-refactor' of https://github.com/swagtoy/supertux …
MatusGuy 40899c6
fix msvc, add option to disable testing, use console when in debug build
MatusGuy 99a050e
Allow for different package names when using pkg-config
MatusGuy 4106352
Update sexp-cpp
MatusGuy 03dbdb0
Better window title and git version detection
MatusGuy 79a6309
Better window title and git version detection
MatusGuy 13b42c6
Merge branch 'cmake-refactor' of https://github.com/swagtoy/supertux …
MatusGuy 7431a90
Fix git message
87bac26
Git run improvements
e2591a2
Modules thing (complete me)
142b602
Correctly use pkg-config and add option to prefer it
MatusGuy dd18bf0
Fix git revision checking
MatusGuy b0d9546
Fix _FOUND if statement
MatusGuy 1686dd6
Move Emscripten.cmake to correct path
MatusGuy efea468
Fix install target for portable package
MatusGuy 8059e00
Exclude submodules from all target and better release checking
MatusGuy a711134
Improve git version checking
MatusGuy 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
File renamed without changes.
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,6 @@ | ||
project(SDL_SavePNG) | ||
|
||
add_library(SDL_SavePNG OBJECT ${PROJECT_SOURCE_DIR}/savepng.c) | ||
set_target_properties(SDL_SavePNG PROPERTIES POSITION_INDEPENDENT_CODE ON) | ||
target_link_libraries(SDL_SavePNG PUBLIC SDL2 PNG) | ||
target_include_directories(SDL_SavePNG PUBLIC ${PROJECT_SOURCE_DIR}) |
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,5 @@ | ||
project(FindLocale) | ||
|
||
add_library(FindLocale OBJECT ${PROJECT_SOURCE_DIR}/findlocale.c) | ||
set_target_properties(FindLocale PROPERTIES POSITION_INDEPENDENT_CODE ON) | ||
target_include_directories(FindLocale PUBLIC ${PROJECT_SOURCE_DIR}) |
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,5 @@ | ||
project(obstack) | ||
|
||
add_library(obstack OBJECT ${PROJECT_SOURCE_DIR}/obstack.c) | ||
set_target_properties(obstack PROPERTIES POSITION_INDEPENDENT_CODE ON) | ||
target_include_directories(obstack PUBLIC ${PROJECT_SOURCE_DIR}) |
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,5 @@ | ||
project(PartioZip) | ||
|
||
add_library(PartioZip OBJECT ${PROJECT_SOURCE_DIR}/zip_manager.cpp ${PROJECT_SOURCE_DIR}/zip_manager.hpp) | ||
target_link_libraries(PartioZip PUBLIC ZLIB) | ||
target_include_directories(PartioZip PUBLIC ${PROJECT_SOURCE_DIR}) |
Submodule sexp-cpp
updated
27 files
+0 −35 | .appveyor.yml | |
+2 −1 | .clang-tidy | |
+1 −0 | .gitattributes | |
+2 −0 | .gitignore | |
+0 −68 | .gitlab-ci.yml | |
+3 −6 | .gitmodules | |
+0 −76 | .travis.yml | |
+27 −101 | CMakeLists.txt | |
+1 −0 | VERSION | |
+0 −1 | external/benchmark | |
+0 −1 | external/googletest | |
+1 −0 | external/tinycmmc | |
+84 −0 | flake.lock | |
+24 −0 | flake.nix | |
+35 −0 | include/sexp/fwd.hpp | |
+8 −0 | pkgconfig/sexp.pc.in | |
+6 −0 | sexp-config.cmake.in | |
+29 −0 | sexpcpp.nix | |
+12 −34 | src/float.cpp | |
+1 −1 | src/lexer.cpp | |
+2 −2 | src/util.cpp | |
+0 −3 | src/value.cpp | |
+23 −12 | tests/float_test.cpp | |
+9 −5 | tests/io_test.cpp | |
+17 −15 | tests/parser_test.cpp | |
+3 −2 | tests/util_test.cpp | |
+4 −4 | tests/value_test.cpp |
Submodule tinygettext
updated
31 files
+23 −0 | .appveyor-macos.yml | |
+41 −0 | .appveyor.yml | |
+2 −10 | .gitignore | |
+43 −199 | CMakeLists.txt | |
+0 −100 | FindICONV.cmake | |
+2 −1 | LICENSE.md | |
+11 −11 | README.md | |
+85 −0 | flake.lock | |
+24 −0 | flake.nix | |
+47 −0 | guix.scm | |
+1 −3 | include/tinygettext/dictionary.hpp | |
+2 −3 | include/tinygettext/dictionary_manager.hpp | |
+1 −3 | include/tinygettext/file_system.hpp | |
+47 −19 | include/tinygettext/iconv.hpp | |
+2 −4 | include/tinygettext/language.hpp | |
+1 −3 | include/tinygettext/log.hpp | |
+1 −1 | include/tinygettext/log_stream.hpp | |
+6 −8 | include/tinygettext/plural_forms.hpp | |
+1 −3 | include/tinygettext/po_parser.hpp | |
+3 −5 | include/tinygettext/unix_file_system.hpp | |
+4 −0 | src/dictionary.cpp | |
+23 −17 | src/dictionary_manager.cpp | |
+10 −14 | src/iconv.cpp | |
+9 −5 | src/language.cpp | |
+26 −2 | src/plural_forms.cpp | |
+3 −6 | src/po_parser.cpp | |
+8 −20 | src/unix_file_system.cpp | |
+4 −0 | test/po_parser_test.cpp | |
+5 −1 | test/tinygettext_test.cpp | |
+11 −0 | tinygettext-config.cmake.in | |
+36 −0 | tinygettext.nix |
Oops, something went wrong.
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.
Remember to include these packages in the vcpkg example!