Giter VIP home page Giter VIP logo

sdk-sdl-project-example's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.