forked from Quick-Box/quickevent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatafiles.pri
More file actions
25 lines (25 loc) · 778 Bytes
/
datafiles.pri
File metadata and controls
25 lines (25 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
unix {
CONFIG(debug, debug|release) {
QMAKE_CLEAN += $$DEST_DATA_DIR/datafiles_installed
POST_TARGETDEPS += $$DEST_DATA_DIR/datafiles_installed
QMAKE_EXTRA_TARGETS += $$DEST_DATA_DIR/datafiles_installed
$$DEST_DATA_DIR/datafiles_installed.commands = \
mkdir -p $$DEST_DATA_DIR \
&& ln -sf $$SRC_DATA_DIR/* $$DEST_DATA_DIR \
&& touch $$DEST_DATA_DIR/datafiles_installed
}
else {
POST_TARGETDEPS += datafiles
QMAKE_EXTRA_TARGETS += datafiles
datafiles.commands = \
mkdir -p $$DEST_DATA_DIR \
&& rsync -r $$SRC_DATA_DIR/ $$DEST_DATA_DIR
}
}
win32 {
POST_TARGETDEPS += datafiles
QMAKE_EXTRA_TARGETS += datafiles
datafiles.commands = \
# mkdir not needed for windows
xcopy $$shell_path($$SRC_DATA_DIR) $$shell_path($$DEST_DATA_DIR) /E /Y /I
}