Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pukoren/gcw0-sdl2-cmake-sample
A bootstrap CMake project for the gcw0 using SDL2
https://github.com/pukoren/gcw0-sdl2-cmake-sample
Last synced: 25 days ago
JSON representation
A bootstrap CMake project for the gcw0 using SDL2
- Host: GitHub
- URL: https://github.com/pukoren/gcw0-sdl2-cmake-sample
- Owner: PuKoren
- License: mit
- Created: 2014-12-28T12:50:09.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T19:33:24.000Z (about 10 years ago)
- Last Synced: 2023-06-09T08:35:14.352Z (over 1 year ago)
- Language: C++
- Size: 543 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gcw0-sdl2-cmake-sample
======================A bootstrap SDL2 project for the gcw0 using cmake
This bootstrap project is inspired from the Solarus Engine repository: https://github.com/christopho/solarus
I use the exact same structure for cmake + some bash scripts to automate the build# Compilation steps
## 1. Project naming
Write your project name in the following locations
1. *CMakeLists.txt*: line 2, replace PROJECT by your project name
2. *cmake/gcw-zero/opk-data/default.gcw0.desktop*: line 2 and 5, replace Project by your project name (Exec is the executable name, lowercase)
3. Replace *cmake/gcw-zero/opk-data/image.png* with your game logo## 2. GCW Build and auto upload to your handheld
1. Make sure your GCW0 is accessible from your computer (with a ping or something)
2. Run ./build-gcw.sh *PROJECT_NAME* *GCW0_IP* (sample: ./build-gcw.sh *ikaruga* *192.168.1.12*)
3. Launch the application on the GCW0
You can find the generated opk into the *build_gcw0* folder# Manual compilation
You can find the various build steps for the gcw0 (from cmake to generating opk) in the *build-gcw.sh* file.If you just want to compile the binary and not package the game, run
```bash
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/gcw-zero/gcw-zero.cmake .
make
```