Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › feature request stage in pro file

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #23913

    Bas

    hi,

    Can the stage variable in config.json also be configured from within the pro file?

    like

    PRODUCT_STAGE = "publish"

    or something like that.

    Greetz,

    Bas

    #23916

    Alex
    Felgo Team

    Hi Bas,

    thank you for your feedback. This is currently not possible, we will evaluate if that feature should be added to one of the next updates.

    Best,
    Alex

    #23919

    Bas

    ok thanx!

    #23920

    Bas

    just want to share what i have put extra in the pro file:

    # Add more folders to ship with the application here
    RESOURCES += resources.qrc # uncomment for publishing
    
    contains( RESOURCES, resources.qrc ) {
        DEFINES += LOAD_QML_FROM_RESOURCE
    }
    

     

    so if we load from resource, there will be a define of LOAD_QML_FROM_RESOURCE

    then in main.cpp

        // use this during development
        // for PUBLISHING, use the entry point below
    #ifndef LOAD_QML_FROM_RESOURCE
        vplay.setMainQmlFileName(QStringLiteral("qml/Main.qml"));
    #endif
        // use this instead of the above call to avoid deployment of the qml files and compile them into the binary with qt's resource system qrc
        // this is the preferred deployment option for publishing games to the app stores, because then your qml files and js files are protected
        // to avoid deployment of your qml files and images, also comment the DEPLOYMENTFOLDERS command in the .pro file
        // also see the .pro file for more details
    #ifdef LOAD_QML_FROM_RESOURCE
        vplay.setMainQmlFileName(QStringLiteral("qrc:/qml/Main.qml"));
    #endif
    
    

    ok sorry, i have still vplay in there, but that needs to be felgo of course, but this came from an older project.

     

    greetz,

    Bas

     

     

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.