File: exampleassets.pri

package info (click to toggle)
qtwebchannel-opensource-src 5.11.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,468 kB
  • sloc: cpp: 2,858; makefile: 33; ansic: 14
file content (19 lines) | stat: -rw-r--r-- 609 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This adds the qwebchannel js library to an example, creating a self-contained bundle
jslib = $$PWD/shared/qwebchannel.js

# This installs all assets including qwebchannel.js, regardless of the source.
exampleassets.files += $$jslib
INSTALLS += exampleassets

# This code ensures that all assets are present in the build directory.

!equals(_PRO_FILE_PWD_, $$OUT_PWD) {
    # Shadow build, copy all example assets.
    assetcopy.files += $$exampleassets.files
} else {
    # Just copy jslib - other assets are already in place.
    assetcopy.files = $$jslib
}

assetcopy.path = $$OUT_PWD
COPIES += assetcopy