Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qmake & the directory of generated files
Forum Updated to NodeBB v4.3 + New Features

qmake & the directory of generated files

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 3 Posters 1.1k 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.
  • J.HilkJ Offline
    J.HilkJ Offline
    J.Hilk
    Moderators
    wrote on last edited by
    #1

    So, I was going through the qmake variable references because I have a bunch of *cpp files that are generated in connection with my QML- files, and I would like them to be bundled in their own folder.

    Those cpp files consists of namespaces and a single very large usigned char array

    extern const unsigned char qmlData alignas(16) [] = {
    ...
    }
    

    I found

    • OBJECTS_DIR
    • MOC_DIR
    • RCC_DIR
    • UI_DIR

    and those do what they are supposed to, but none effect those qml-related cpp files.

    0_1531895793331_Screen Shot 2018-07-18 at 08.34.24.png

    So is there something to target these files, to generate them somewhere else?


    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


    Q: What's that?
    A: It's blue light.
    Q: What does it do?
    A: It turns blue.

    kshegunovK 1 Reply Last reply
    0
    • J.HilkJ J.Hilk

      So, I was going through the qmake variable references because I have a bunch of *cpp files that are generated in connection with my QML- files, and I would like them to be bundled in their own folder.

      Those cpp files consists of namespaces and a single very large usigned char array

      extern const unsigned char qmlData alignas(16) [] = {
      ...
      }
      

      I found

      • OBJECTS_DIR
      • MOC_DIR
      • RCC_DIR
      • UI_DIR

      and those do what they are supposed to, but none effect those qml-related cpp files.

      0_1531895793331_Screen Shot 2018-07-18 at 08.34.24.png

      So is there something to target these files, to generate them somewhere else?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @J.Hilk said in qmake & the directory of generated files:

      and those do what they are supposed to, but none effect those qml-related cpp files.

      What are those qml-related cpp files? I imagine they're not generated from the Qt infrastructure itself or am I wrong?

      So is there something to target these files, to generate them somewhere else?

      You can create a custom target. (See the advanced qmake usage from the manual you sourced).

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1
      • kkoehneK Offline
        kkoehneK Offline
        kkoehne
        Moderators
        wrote on last edited by
        #3

        These are files generated by the Qt Quick Compiler (see https://doc.qt.io/QtQuickCompiler/).

        You can set QMLCACHE_DIR to move the generated files to a sub-directory of the build directory.

        Director R&D, The Qt Company

        kshegunovK 1 Reply Last reply
        5
        • kkoehneK kkoehne

          These are files generated by the Qt Quick Compiler (see https://doc.qt.io/QtQuickCompiler/).

          You can set QMLCACHE_DIR to move the generated files to a sub-directory of the build directory.

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @kkoehne said in qmake & the directory of generated files:

          These are files generated by the Qt Quick Compiler

          Okay, my bad then.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @kkoehne said in qmake & the directory of generated files:

            QMLCACHE_DIR

            Ah perfect!
            Thank you @kkoehne , that's exactly what I was looking for!


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            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