Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Include extra files in build/deployment
Forum Updated to NodeBB v4.3 + New Features

Include extra files in build/deployment

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 387 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alexandernst
    wrote on last edited by
    #1

    I want to include an entire folder in the build/deployment of my Qt project.

    I have this in my .pro file:

    html_folder.source = html
    html_folder.target = .
    DEPLOYMENTFOLDERS = html_folder
    
    ...
    
    defineTest(addHTML) {
        for(deploymentfolder, DEPLOYMENTFOLDERS) {
            item = item$${deploymentfolder}
            itemsources = $${item}.files
            $$itemsources = $$eval($${deploymentfolder}.source)
            itempath = $${item}.path
            $$itempath= $$eval($${deploymentfolder}.target)
            export($$itemsources)
            export($$itempath)
            DEPLOYMENT += $$item
        }
    
        export (DEPLOYMENT)
    }
    
    addHTML()
    

    That used to work with Qt 4.x, maybe even 5.x, but now I'm trying to port my project to 5.7 and it's not working, as in, it's not copying my folder to the build/deployment folder.

    What changed caused this to stop working? How can I make it work again?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved