Skip to content
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

2.0 #89

Merged
merged 237 commits into from
Nov 2, 2023
Merged

2.0 #89

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
59db486
Add falling and jumping bird
Valegox Oct 2, 2023
e58dccc
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 2, 2023
1b4ef3a
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 2, 2023
2b89784
Merge from dev
Valegox Oct 2, 2023
f488f01
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 16, 2023
ce85628
Update with new dev version
Valegox Oct 17, 2023
aeab416
Arrange gravity values
Valegox Oct 17, 2023
be7e4ee
Add switch to SFML
BaptisteLaran Oct 17, 2023
2b683e8
:art: Committing clang-format changes
Oct 17, 2023
230dc51
Add config files for player and physics adjustments
Valegox Oct 17, 2023
952214b
Remove _ char in flappy bird
Valegox Oct 17, 2023
e479228
Add moving background
Valegox Oct 17, 2023
8ce4c4d
Upload the MAJ of all the cmake
Beafowl-Pull Oct 17, 2023
ba1ca72
Add base entity and simplify TypeEntity
Valegox Oct 17, 2023
8a24ffa
Remove raylib in dependencies
Beafowl-Pull Oct 17, 2023
3db9d09
Remove useless things
Beafowl-Pull Oct 17, 2023
320aa92
Add scaling for sfml sprite
BaptisteLaran Oct 17, 2023
82ecda7
:art: Committing clang-format changes
Oct 17, 2023
1a6ff26
Merge pull request #61 from UwUClub/RT-83-Fix-cmake
GlassAlo Oct 17, 2023
9cf7f4f
Merge dev
BaptisteLaran Oct 17, 2023
e9f9e1b
Merge dev
BaptisteLaran Oct 17, 2023
5a0b398
Merge branch 'RT-70-Switch-to-SFML' of github.com:UwUClub/R-Type into…
BaptisteLaran Oct 17, 2023
74dbd9b
:art: Committing clang-format changes
Oct 17, 2023
ad70d03
Fix .h in LoadedSprite and rm wall
BaptisteLaran Oct 17, 2023
a1a93e4
Fix .h in LoadedSprite and rm wall
BaptisteLaran Oct 17, 2023
3b2c958
Fix cicd
BaptisteLaran Oct 17, 2023
120b707
Fix cicd
BaptisteLaran Oct 17, 2023
8c6f183
Range entities in config
Valegox Oct 17, 2023
c4743b0
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 17, 2023
101e86e
Replace std::thread by boost::thread for io service run
Valegox Oct 17, 2023
507d564
Save debugging progress
Oct 17, 2023
d28d0fc
:art: Committing clang-format changes
Oct 17, 2023
dbe7c84
Fix dll
GlassAlo Oct 18, 2023
be548ee
Use inbound and check packet EOF
Valegox Oct 18, 2023
4ee0887
:art: Committing clang-format changes
Oct 18, 2023
375bea2
Remove handleRequest call in start
Valegox Oct 18, 2023
cc2c7c1
Merge branch 'RT-72-Fix-abort-on-bind' of https://github.com/UwUClub/…
Valegox Oct 18, 2023
cbd5223
Fixed CI codeQL + uuid
GlassAlo Oct 18, 2023
1dd63c4
Fixed CI + Cmake + Revert Network
GlassAlo Oct 18, 2023
f28e97e
Merge pull request #62 from UwUClub/RT-70-Switch-to-SFML
GlassAlo Oct 18, 2023
fe65ec6
Merge from dev
Valegox Oct 18, 2023
640de14
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-72-Fi…
Valegox Oct 18, 2023
f46dc41
Prepare readBuffer before each async receive
Valegox Oct 18, 2023
cc1d91d
Make payload vectors reference
Valegox Oct 18, 2023
d90385a
Update RFC.md
Valegox Oct 18, 2023
c9b9e5e
Add reference to payload in game event constructors
Valegox Oct 18, 2023
faf22cc
Remove aknowledgment debug message
Valegox Oct 18, 2023
fbff1d7
Merge pull request #63 from UwUClub/RT-72-Fix-abort-on-bind
GlassAlo Oct 18, 2023
d96faaa
Merge dev updates
GlassAlo Oct 18, 2023
4713f0b
Refactored events :
GlassAlo Oct 18, 2023
81d9a7d
Merge pull request #64 from UwUClub/RT-79-Event-Manager-Refactor-Temp…
Beafowl-Pull Oct 18, 2023
811edf0
Upload the configuration file for read the docs
Beafowl-Pull Oct 18, 2023
6422fd9
Merge pull request #65 from UwUClub/RT-82-read-the-docs-file
Beafowl-Pull Oct 18, 2023
20f17cf
Fixed events deletion
GlassAlo Oct 19, 2023
6ecb885
Merge pull request #66 from UwUClub/RT-79-Event-Manager-Refactor-Temp…
GlassAlo Oct 19, 2023
7c51e6a
Remove archive from serializaion process
Valegox Oct 19, 2023
33018b2
:art: Committing clang-format changes
Oct 19, 2023
7f40f15
Fixed events deletion
GlassAlo Oct 19, 2023
feb0447
Merge pull request #67 from UwUClub/RT-79-Event-Manager-Refactor-Temp…
Valegox Oct 19, 2023
242cfeb
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-71-Th…
Valegox Oct 21, 2023
369df72
Remove debug messages
Valegox Oct 21, 2023
9761e2b
Fix aknowledgment
Valegox Oct 21, 2023
11cb661
Simplify NetworkHandler's packet reception
Valegox Oct 21, 2023
e4aa731
Create static constexpr for aknowledgment type and improve packet rec…
Valegox Oct 22, 2023
48cb2b2
Send error packet on unserialization error + simplify packet receptio…
Valegox Oct 22, 2023
52a546b
:art: Committing clang-format changes
Oct 22, 2023
d4b12dc
Throw error packet on error in server system
Valegox Oct 22, 2023
b4af12b
Fix move player
Valegox Oct 22, 2023
0abdc9b
Remove boost serialization
Valegox Oct 23, 2023
ebe1ed5
Create abstract serialization functions + remove reinterpret_casts
Valegox Oct 23, 2023
8f96e18
Remove bitset unused include
Valegox Oct 23, 2023
59ed6b0
Remove useless comment
Valegox Oct 23, 2023
c9c305a
Update RFC.md
Valegox Oct 23, 2023
05f4e94
Update RFC.md
Valegox Oct 23, 2023
dae7bb2
Changed from ECS in folder to an external repo
GlassAlo Oct 23, 2023
bd39155
Merge from bad branch
GlassAlo Oct 23, 2023
c4ec8ab
Merge pull request #69 from UwUClub/RT-83-Switch-ECS-to-submodule
GlassAlo Oct 23, 2023
acc195b
Update RFC.md
Valegox Oct 23, 2023
12646f7
Update RFC.md
Valegox Oct 23, 2023
54a8b2b
Merge branch 'dev' into RT-71-Throw-error-packet-on-invalid-format
Valegox Oct 23, 2023
8a81301
Update RFC.md
Valegox Oct 23, 2023
3e9cb57
Update RFC.md
Valegox Oct 23, 2023
47f20d5
Fix wrong merge resolve
Valegox Oct 23, 2023
bf9ea25
Merge pull request #68 from UwUClub/RT-71-Throw-error-packet-on-inval…
Valegox Oct 23, 2023
34eee6e
Update RFC.md
Valegox Oct 23, 2023
4543a15
Update RFC.md
Valegox Oct 23, 2023
8866f40
Update RFC.md
Valegox Oct 23, 2023
183f65b
Update RFC.md
Valegox Oct 23, 2023
8ff1a4d
Change SFMLDisplayClass into ECS
BaptisteLaran Oct 23, 2023
0d29eee
:art: Committing clang-format changes
Oct 23, 2023
f5f9f80
Update RFC.md
Valegox Oct 23, 2023
22b3a1f
Update RFC.md
Valegox Oct 23, 2023
08836e3
Merge dev
BaptisteLaran Oct 23, 2023
e55ac83
Merge dev
BaptisteLaran Oct 23, 2023
200136c
:art: Committing clang-format changes
Oct 23, 2023
be4883f
Update RFC.md
Valegox Oct 23, 2023
5a9e373
Update RFC.md
Valegox Oct 23, 2023
c92e6f0
Update RFC.md
Valegox Oct 23, 2023
3d5b351
Merge dev
BaptisteLaran Oct 24, 2023
c58679b
Merge dev
BaptisteLaran Oct 24, 2023
66ecfad
Add refacto, still things to fix
Valegox Oct 24, 2023
4a1205c
Refactor to use the Physic Lib
GlassAlo Oct 24, 2023
80aaba0
Add big refactor to use RenderPlugin
BaptisteLaran Oct 24, 2023
85b97f2
:art: Committing clang-format changes
Oct 24, 2023
836d495
Fixes + create working generic pack / unpack functions
Valegox Oct 24, 2023
97b3617
Pack packet header and payload structs
Valegox Oct 25, 2023
899694f
Fix compilation json lib
Beafowl-Pull Oct 25, 2023
864c44f
Fixed crash
GlassAlo Oct 25, 2023
fdbd5c2
Merge pull request #71 from UwUClub/Fix
GlassAlo Oct 25, 2023
f4713ce
Get latest ecs
GlassAlo Oct 25, 2023
b9d3fe6
Add packet factory and finish refacto
Valegox Oct 25, 2023
dc871ed
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-85-Se…
Valegox Oct 25, 2023
4d92c8b
Remove empty payload structs and rename unserializePayload to unseria…
Valegox Oct 25, 2023
bbbfc95
Remove debug messages and useless bonus system on client side
Valegox Oct 25, 2023
6f87b92
Handle invalid payload case (avoid crash)
Valegox Oct 25, 2023
35bd785
Replace size_t by unsigned short for entity ids
Valegox Oct 25, 2023
9ef12c2
Fix unsigned short declaration + add include for shared_ptr
Valegox Oct 25, 2023
e905ccf
Fix ci
BaptisteLaran Oct 25, 2023
f541447
FIx compilation
Beafowl-Pull Oct 25, 2023
1849487
Merge branch 'RT-78-Physic-library-Plugin' of github.com:UwUClub/R-Ty…
Beafowl-Pull Oct 25, 2023
012c738
Undo ecs
Beafowl-Pull Oct 25, 2023
19a3d42
Fix
Beafowl-Pull Oct 25, 2023
25f1679
Fix
Beafowl-Pull Oct 25, 2023
d0c5ea1
Fix compil by update EwECS
GlassAlo Oct 25, 2023
731b6c9
Updated EwECS
GlassAlo Oct 25, 2023
60af68c
Remove useless fetch
Beafowl-Pull Oct 25, 2023
4ad5f8a
Merge branch 'RT-78-Physic-library-Plugin' of github.com:UwUClub/R-Ty…
Beafowl-Pull Oct 25, 2023
298b439
Merge pull request #70 from UwUClub/RT-78-Physic-library-Plugin
GlassAlo Oct 25, 2023
a61cb5c
Changed unsigned short to size_t
GlassAlo Oct 25, 2023
2a59b1f
Merge pull request #74 from UwUClub/Fix-Second-Refacto
Valegox Oct 25, 2023
0797ee9
Merge dev
BaptisteLaran Oct 25, 2023
22ed179
:art: Committing clang-format changes
Oct 25, 2023
57b809d
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-85-Se…
Valegox Oct 25, 2023
af874cd
Remove wrong Hitbox includes
Valegox Oct 25, 2023
213767d
Changed enemy missile
GlassAlo Oct 25, 2023
c182420
Use network handlers
Valegox Oct 25, 2023
f0c49c0
Removed useless sprites and dependencies
GlassAlo Oct 25, 2023
2b2ecdb
Removed useless cmake link
GlassAlo Oct 25, 2023
a46fd7a
Remove Boost from RType
Valegox Oct 25, 2023
5afbfdb
Merge pull request #72 from UwUClub/RT-77-Render-library-Plugin
GlassAlo Oct 25, 2023
8bbd0f4
Restablish player colors with externalized network handler
Valegox Oct 25, 2023
75b966e
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-85-Second-ref…
GlassAlo Oct 26, 2023
b766762
Fix compile by removing removed func
GlassAlo Oct 26, 2023
b106b12
Added a font
GlassAlo Oct 26, 2023
24425ee
Made sure every check is done
GlassAlo Oct 26, 2023
17de1da
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-41-Flappy-Bird
GlassAlo Oct 26, 2023
7b56e90
Merge pull request #75 from UwUClub/Added-Font
GlassAlo Oct 26, 2023
5ccdd8f
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-41-Flappy-Bird
GlassAlo Oct 26, 2023
78f6b00
Finished merging
GlassAlo Oct 26, 2023
a2dd5dd
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-85-Se…
Valegox Oct 26, 2023
37412b3
Add animation handler with appropriate json
BaptisteLaran Oct 26, 2023
84648c7
:art: Committing clang-format changes
Oct 26, 2023
ee1cab1
Add bonus and pull from dev
Valegox Oct 26, 2023
16cd84e
Switch subModules to main
BaptisteLaran Oct 26, 2023
4629e40
Merge branch 'RT-77-Render-library-Plugin' of github.com:UwUClub/R-Ty…
BaptisteLaran Oct 26, 2023
8499282
Merge branch 'RT-85-Second-refacto-protocol' of https://github.com/Uw…
Valegox Oct 26, 2023
f7fac89
Remove wrong includes in server's MoveBonus
Valegox Oct 26, 2023
bcf3162
Merge pull request #76 from UwUClub/RT-77-Render-library-Plugin
GlassAlo Oct 27, 2023
255aefd
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-41-Flappy-Bird
GlassAlo Oct 27, 2023
53f32c8
Updated flappybird
GlassAlo Oct 27, 2023
c089e91
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-85-Second-ref…
GlassAlo Oct 27, 2023
7c07fcd
Merge pull request #73 from UwUClub/RT-85-Second-refacto-protocol
Valegox Oct 27, 2023
3263212
Merge from dev
Oct 27, 2023
a583230
:art: Committing clang-format changes
Oct 27, 2023
ec21963
Fix merge details
Oct 27, 2023
46430db
Merge branch 'RT-89-Use-Network-plugin' of github.com:UwUClub/R-Type …
Oct 27, 2023
91f5977
:art: Committing clang-format changes
Oct 27, 2023
3a535a0
Fix bonus (remove probability)
Oct 27, 2023
9be44b2
Merge branch 'RT-89-Use-Network-plugin' of github.com:UwUClub/R-Type …
Oct 27, 2023
ae0858e
Remove SFML in rtype's dependencies.cmakes
Valegox Oct 28, 2023
1147962
Handle packet reception with updates of ecs
Valegox Oct 28, 2023
4f1fa69
Update EwECS submodule
Valegox Oct 28, 2023
b0f0856
Merge pull request #77 from UwUClub/RT-89-Use-Network-plugin
Valegox Oct 28, 2023
0b1c644
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-68-RF…
Valegox Oct 30, 2023
5687e65
Add some feature to flappy bird
Beafowl-Pull Oct 30, 2023
f35ccbd
Update RFC.md
Valegox Oct 30, 2023
bedf29e
:art: Committing clang-format changes
Oct 30, 2023
8e32ad1
Update RFC.md
Valegox Oct 30, 2023
fac7c60
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 30, 2023
96f8aad
Use HitBox to kill bird
Valegox Oct 30, 2023
48acd7b
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-85-Second-ref…
GlassAlo Oct 30, 2023
95308a2
Add pipe
Valegox Oct 30, 2023
b86f6e3
ECS updated
GlassAlo Oct 30, 2023
807af22
Add smooth player movement
BaptisteLaran Oct 30, 2023
e3550ef
:art: Committing clang-format changes
Oct 30, 2023
d00e56a
Merge pull request #79 from UwUClub/Fix-hitbox
GlassAlo Oct 30, 2023
c2f9116
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 30, 2023
66d19d4
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-90-Smooth-mov…
BaptisteLaran Oct 30, 2023
0c8389a
Merge branch 'RT-90-Smooth-movement-for-player' of github.com:UwUClub…
BaptisteLaran Oct 30, 2023
0062d72
Fixed windows
GlassAlo Oct 30, 2023
692ccdb
Add score counter
Valegox Oct 30, 2023
298cbcf
Merge pull request #80 from UwUClub/RT-90-Smooth-movement-for-player
GlassAlo Oct 30, 2023
734fd95
Info message
Valegox Oct 30, 2023
202bbbc
Fix movements
GlassAlo Oct 30, 2023
6d330b2
Merge pull request #81 from UwUClub/RT-90-Smooth-movement-for-player
BaptisteLaran Oct 30, 2023
4362180
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 30, 2023
a6bb8e4
Replay
Valegox Oct 30, 2023
4980c06
Fix bugs
GlassAlo Oct 30, 2023
a854f8a
Removed debug
GlassAlo Oct 30, 2023
f7d4281
trying to fix sounds (in progress)
Beafowl-Pull Oct 30, 2023
5e46fb0
:art: Committing clang-format changes
Oct 30, 2023
dbeb00d
Merge pull request #78 from UwUClub/RT-68-RFC-updates
GlassAlo Oct 31, 2023
84750b6
Changed to constexpr
GlassAlo Oct 31, 2023
335b568
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 31, 2023
cb1158d
Fix background config path
Valegox Oct 31, 2023
98a2cc9
Merge pull request #82 from UwUClub/Fix
GlassAlo Oct 31, 2023
51b15a3
Add pipes
Valegox Oct 31, 2023
48f313b
Kill bird if too high
Valegox Oct 31, 2023
4ca72a2
Add error handling for config
Valegox Oct 31, 2023
bf68ade
Remove Connection register component from rtype (now in ECS)
Valegox Oct 31, 2023
202260c
Remove note file
Valegox Oct 31, 2023
e5e2321
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Oct 31, 2023
f3cc1fb
Add bird animation
Valegox Oct 31, 2023
8954dbf
Upload the sound as plugin
Beafowl-Pull Oct 31, 2023
09539d1
Merge branch 'RT-74-sound-library-plugin' of github.com:UwUClub/R-Typ…
Beafowl-Pull Oct 31, 2023
deea4f9
Merge branch 'main' of github.com:UwUClub/R-Type into RT-74-sound-lib…
Beafowl-Pull Oct 31, 2023
9eaaeb1
:art: Committing clang-format changes
Oct 31, 2023
8834984
Fix compilation
Beafowl-Pull Oct 31, 2023
b9a5bcf
Merge branch 'dev' of github.com:UwUClub/R-Type into RT-74-sound-libr…
Beafowl-Pull Oct 31, 2023
6100d2a
Fix compilation and launch
Beafowl-Pull Oct 31, 2023
cc25e3a
Merge branch 'RT-74-sound-library-plugin' of github.com:UwUClub/R-Typ…
Beafowl-Pull Oct 31, 2023
98fda04
:art: Committing clang-format changes
Oct 31, 2023
b287705
Merge pull request #83 from UwUClub/RT-74-sound-library-plugin
Beafowl-Pull Oct 31, 2023
9eb04c2
update ECS and make new release
GlassAlo Nov 1, 2023
da1d097
added branch in ci for easy release
GlassAlo Nov 1, 2023
2f5081d
Merge branch 'dev' of https://github.com/UwUClub/R-Type into RT-41-Fl…
Valegox Nov 1, 2023
8c6ecf7
Add sounds and music
Valegox Nov 1, 2023
0b86acd
Remove useless files
Valegox Nov 1, 2023
421f986
Remove json lib from flappy bird cmake + header
Valegox Nov 1, 2023
70b0c99
Remove useless type entity
Valegox Nov 1, 2023
d5cf44c
Added flappybird to cpack
GlassAlo Nov 1, 2023
d3f38f7
Merge pull request #85 from UwUClub/RT-41-Flappy-Bird
GlassAlo Nov 1, 2023
f70d247
Update EwECS
Beafowl-Pull Nov 1, 2023
3059545
Merge branch 'release' of github.com:UwUClub/R-Type into release
Beafowl-Pull Nov 1, 2023
2a95db3
Merge pull request #87 from UwUClub/release
Beafowl-Pull Nov 1, 2023
562e3aa
Updated readme
GlassAlo Nov 1, 2023
cf678d2
Merge pull request #88 from UwUClub/Readme
GlassAlo Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
branches:
- main
- dev
- release

env:
CLANG_TIDY_VERSION: "15.0.2"
Expand Down Expand Up @@ -85,6 +86,11 @@ jobs:
gcovr: true
opencppcoverage: true

- name: Install xrand
if: runner.os != 'Windows'
run: |
sudo apt-get install -y freeglut3-dev libfreetype6-dev libx11-dev libxrandr-dev libudev-dev libgl1-mesa-dev libflac-dev libogg-dev libvorbis-dev libvorbisenc2 libvorbisfile3 libopenal-dev libpthread-stubs0-dev xorg-dev

- name: Configure CMake
run: |
cmake -S . -B ./build -G "${{matrix.generator}}" -D${{ env.PROJECT_NAME }}_ENABLE_IPO=${{matrix.enable_ipo }} -DCMAKE_BUILD_TYPE:STRING=Release -D${{ env.PROJECT_NAME }}_PACKAGING_MAINTAINER_MODE:BOOL=False -D${{ env.PROJECT_NAME }}_ENABLE_COVERAGE:BOOL=True -DGIT_SHA:STRING=${{ github.sha }} -DR_Type_ENABLE_SANITIZER_ADDRESS=OFF -DR_Type_ENABLE_SANITIZER_UNDEFINED=OFF
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ jobs:

# make sure coverage is only enabled for Debug builds, since it sets -O0 to make sure coverage
# has meaningful results

- name: Install xrand
if: runner.os != 'Windows'
run: |
sudo apt-get install -y freeglut3-dev libfreetype6-dev libx11-dev libxrandr-dev libudev-dev libgl1-mesa-dev libflac-dev libogg-dev libvorbis-dev libvorbisenc2 libvorbisfile3 libopenal-dev libpthread-stubs0-dev xorg-dev

- name: Configure CMake
run: |
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -D${{ env.PROJECT_NAME }}_PACKAGING_MAINTAINER_MODE:BOOL=${{matrix.packaging_maintainer_mode}} -D${{ env.PROJECT_NAME }}_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }}
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "extern/EwECS"]
path = extern/EwECS
url = https://github.com/UwUClub/EwECS.git
35 changes: 35 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
# - pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
# python:
# install:
# - requirements: docs/requirements.txt
84 changes: 25 additions & 59 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.21)
find_package(SDL2 QUIET)

# This template attempts to be "fetch_content"-able
# so that it works well with tools like CPM or other
Expand All @@ -10,11 +9,6 @@ if (NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 20)
endif()

# strongly encouraged to enable this globally to avoid conflicts between
# -Wpedantic being enabled and -std=c++20 and -std=gnu++20 for example
# when compiling with PCH enabled
set(CMAKE_CXX_EXTENSIONS OFF)

# Set the project name and language
project(
R_Type
Expand All @@ -23,90 +17,61 @@ project(
HOMEPAGE_URL "https://github.com/UwUClub/R-Type"
LANGUAGES CXX C)

include(cmake/PreventInSourceBuilds.cmake)
include(ProjectOptions.cmake)
if (NOT TARGET SDL2::SDL2)
set(SDL2_DOWNLOADED TRUE)
else()
set(SDL2_DOWNLOADED FALSE)
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
R_Type_setup_options()

R_Type_global_options()
include(Dependencies.cmake)
R_Type_setup_dependencies()
add_library(R_Type_warnings INTERFACE)

R_Type_local_options()
include(cmake/CompilerWarnings.cmake)
R_Type_set_project_warnings(
R_Type_warnings
FALSE
""
""
""
"")

set(CMAKE_CXX_VISIBILITY_PRESET hidden)
include(Dependencies.cmake)
R_Type_setup_dependencies()

set(GIT_SHA
"Unknown"
CACHE STRING "SHA this build was generated from")
string(
SUBSTRING "${GIT_SHA}"
0
8
GIT_SHORT_SHA)
include(cmake/StandardProjectSettings.cmake)

target_compile_features(R_Type_options INTERFACE cxx_std_${CMAKE_CXX_STANDARD})
# exec submodules init and update
execute_process(COMMAND git submodule update --init --recursive --remote)
add_subdirectory(extern)
# expose the includes folder of the submodules

add_library(R_Type::R_Type_options ALIAS R_Type_options)
add_library(R_Type::R_Type_warnings ALIAS R_Type_warnings)

#add_library(R_Type::R_Type_options INTERFACE IMPORTED)
#add_library(R_Type::R_Type_warnings INTERFACE IMPORTED)

# Adding the src:
add_subdirectory(src)

# Don't even look at tests if we're not top level
if(NOT PROJECT_IS_TOP_LEVEL)
return()
endif()

# Adding the tests:
#include(CTest)
# include(CTest)

#if(BUILD_TESTING)
# add_subdirectory(test)
#endif()
# if(BUILD_TESTING)
# add_subdirectory(test)
# endif()

# If MSVC is being used, and ASAN is enabled, we need to set the debugger environment
# so that it behaves well with MSVC's debugger, and we can run the target from visual studio
if(MSVC)
include(cmake/Utilities.cmake)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
get_all_installable_targets(all_targets)
message("all_targets=${all_targets}")
set_target_properties(${all_targets} PROPERTIES VS_DEBUGGER_ENVIRONMENT "PATH=$(VC_ExecutablePath_x64);%PATH%")
endif()

file(COPY ${CMAKE_SOURCE_DIR}/assets DESTINATION ${CMAKE_BINARY_DIR}/bin)
file(COPY ${CMAKE_SOURCE_DIR}/config DESTINATION ${CMAKE_BINARY_DIR}/bin)

# set the startup project for the "play" button in MSVC
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT server)

if(CMAKE_SKIP_INSTALL_RULES)
return()
endif()

include(cmake/PackageProject.cmake)
find_package(Boost)

# Add other targets that you want installed here, by default we just package the one executable
# we know we want to ship
R_Type_package_project(
TARGETS
server
client
R_Type_options
R_Type_warnings
)
# Experience shows that explicit package naming can help make it easier to sort
# out potential ABI related issues before they start, while helping you
# track a build to a specific GIT SHA
install(TARGETS server client
install(TARGETS server client flappybird
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand All @@ -130,5 +95,6 @@ else()
endif()

install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/assets" DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/config" DESTINATION ${CMAKE_INSTALL_BINDIR})

include(CPack)
include(CPack)
Loading
Loading