jussipakkanen / sdk-sdl-project-example Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sailfishos/sdk-sdl-project-example
Example project for building an SDL2 application in Sailfish SDK (Qt Creator)
This project forked from sailfishos/sdk-sdl-project-example
Example project for building an SDL2 application in Sailfish SDK (Qt Creator)
SDL Application Example for use with Qt Creator ----------------------------------------------- For now, we have to resort to setting up custom build and deploy steps, as the current SDK version is tightly integrated with Qt Creator and qmake. The steps are easy, and you can customize each step. "mb2 build" uses the configure, build and install steps defined in the .spec file, and also makes sure all build dependencies are installed properly (so list them in the .spec file). You can also use other build systems (e.g. autotools or cmake) as long as you state your build-dependencies correctly in the .spec file and as long as you add the right "configure" command to the %prep step in the .spec file. The SOURCES, HEADERS and OTHER_FILES variables in the .pro file are used to display the source files in the Qt Creator IDE. They are not used for building. Here's how you configure Qt Creator to build the project: 1. Open the .pro file in Qt Creator 2. Modify the project build settings: General: Disable the "Shadow build" setting Build Steps: Remove ALL steps, then add a new one: Custom Process Step Command: sdk/target Arguments: mb2 build Working directory: %{buildDir} Clean Steps: Remove ALL steps, then add a new one: Custom Process Step Command: sdk/target Arguments: sb2 make clean Working directory: %{buildDir} 3. Modify the project run settings: Deployment: Remove ALL steps (except the "Start Emulator" one), then add a new one: Custom Process Step Command: sdk/target Arguments: mb2 deploy --pkcon Working directory: %{buildDir} Run: Custom Process Step Command: sdk/target Arguments: mb2 run /usr/bin/harbour-sdltest Working directory: %{buildDir} (if you change the application binary name, you have to customize the name here; simply replace /usr/bin/harbour-sdltest with /usr/bin/$APPNAME) 4. If you want to have a target device other than "SailfishOS Emulator", you need to modify the DEPLOYMENT_DEVICE variable in sdk/target.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.