2010-07-01 08:42:42 +00:00
|
|
|
include(../openpilotgcs.pri)
|
|
|
|
|
2010-02-01 14:10:06 +00:00
|
|
|
TEMPLATE = subdirs
|
2010-02-01 14:50:33 +00:00
|
|
|
SUBDIRS = openpilotgcs/translations
|
2010-06-29 01:17:10 +00:00
|
|
|
|
2012-08-09 22:25:34 +01:00
|
|
|
DATACOLLECTIONS = dials models pfd sounds diagrams mapicons stylesheets default_configurations
|
2010-06-29 01:17:10 +00:00
|
|
|
|
2010-07-01 08:42:42 +00:00
|
|
|
equals(copydata, 1) {
|
2012-09-16 15:14:47 +02:00
|
|
|
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()
|
2012-10-07 16:50:04 +01:00
|
|
|
win32:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/$$dir\") $$addNewline()
|
|
|
|
unix:data_copy.commands += $(MKDIR) $$targetPath(\"$$GCS_DATA_PATH/$$dir\") $$addNewline()
|
|
|
|
unix:data_copy.commands += $(COPY_DIR) $$targetPath(\"$$GCS_SOURCE_TREE/share/openpilotgcs/$$dir\") $$targetPath(\"$$GCS_DATA_PATH/\") $$addNewline()
|
2012-09-16 15:14:47 +02:00
|
|
|
}
|
|
|
|
}
|
2010-10-04 19:06:48 +00:00
|
|
|
|
2010-07-01 08:42:42 +00:00
|
|
|
data_copy.target = FORCE
|
2010-10-04 20:20:22 +00:00
|
|
|
QMAKE_EXTRA_TARGETS += data_copy
|
2010-07-01 08:42:42 +00:00
|
|
|
}
|