mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
9da1372e54
Also copy the default configuration xml files. These are now on the shared folder together with the stylesheet instead of being inside a resource file. Stylesheets and configuration files are now copied from SRC/SHARED to APP/SHARED
19 lines
730 B
Prolog
19 lines
730 B
Prolog
include(../openpilotgcs.pri)
|
|
|
|
TEMPLATE = subdirs
|
|
SUBDIRS = openpilotgcs/translations
|
|
|
|
DATACOLLECTIONS = dials models pfd sounds diagrams mapicons stylesheets default_configurations
|
|
|
|
equals(copydata, 1) {
|
|
for(dir, DATACOLLECTIONS) {
|
|
exists($$GCS_SOURCE_TREE/share/openpilotgcs/$$dir) {
|
|
macx:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/\") $$addNewline()
|
|
!macx:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/$$dir\") $$addNewline()
|
|
}
|
|
}
|
|
|
|
data_copy.target = FORCE
|
|
QMAKE_EXTRA_TARGETS += data_copy
|
|
}
|