Repository navigation
games: add CMake build support for snake, brickmatch, and match4 - #3861
Merged
linguini1 merged 3 commits intoOct 18, 2026
Merged
Conversation
Add CMakeLists.txt to enable CMake build support for the snake game. Signed-off-by: Swatantra Yadav <[email protected]>
Add CMakeLists.txt to enable CMake build support for the brickmatch game. Signed-off-by: Swatantra Yadav <[email protected]>
Add CMakeLists.txt to enable CMake build support for the match4 game. Signed-off-by: Swatantra Yadav <[email protected]>
Swatantra-66
force-pushed
the
cmake/games-snake-brickmatch-match4
branch
from
October 17, 2026 17:44
55a2909 to
74dead3
Compare
xiaoxiang781216
approved these changes
Oct 17, 2026
Contributor
|
FYI, you can try rendering with an actual framebuffer on the simulator by using the X11 graphics support. You can take a look at the |
linguini1
approved these changes
Oct 18, 2026
Contributor
Author
|
Thank you so much for the review and merge, @linguini1! And thanks for the tip on the X11 graphics support—I'll definitely try running |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Addresses the CMake vs. Make build-system gap for
apps/gamesidentified in issue apache/nuttx#19549 ("[Analysis] CMake vs. Make Build-System Gap Analysis"):Add CMake build support (
CMakeLists.txt) for the remaining simple games inapps/games:snake: Addedapps/games/snake/CMakeLists.txtmatchingMakefileoptions (CONFIG_GAMES_SNAKE_*).brickmatch: Addedapps/games/brickmatch/CMakeLists.txtmatchingMakefileoptions (CONFIG_GAMES_BRICKMATCH_*).match4: Addedapps/games/match4/CMakeLists.txtmatchingMakefileoptions (CONFIG_GAMES_MATCH4_*).Addresses apache/nuttx#19549
All CMake files have been formatted with
cmake-formatand verified withcheckpatch.sh.Impact
snake,brickmatch, andmatch4.Testing
sim:nsh(withCONFIG_GAMES_BRICKMATCH=y,CONFIG_GAMES_SNAKE=y,CONFIG_GAMES_MATCH4=y)Build Log:
Runtime Log:
(Note: brick exits with Failed to open /dev/fb0: 2 (ENOENT) as expected on headless sim:nsh since no framebuffer display driver is attached, confirming that the builtin application registers and executes successfully).