mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
AeroSimRC: resemble the AeroSIM-RC directory in build/ground
... to make easier to copy plugin files into AeroSimRC folder.
This commit is contained in:
parent
58de9dbd47
commit
fc18749d1a
@ -1,9 +1,19 @@
|
||||
!win32 { error("AeroSimRC plugin is only available for win32 platform") }
|
||||
!win32 {
|
||||
error("AeroSimRC plugin is only available for win32 platform")
|
||||
}
|
||||
|
||||
include(../../../../../openpilotgcs.pri)
|
||||
|
||||
QT += network
|
||||
QT -= gui
|
||||
TARGET = plugin_AeroSIMRC
|
||||
|
||||
TEMPLATE = lib
|
||||
TARGET = plugin_AeroSIMRC
|
||||
|
||||
RES_DIR = $${PWD}/resources
|
||||
SIM_DIR = $$GCS_BUILD_TREE/../AeroSIM-RC
|
||||
PLUGIN_DIR = $$SIM_DIR/Plugin/CopterControl
|
||||
DLLDESTDIR = $$PLUGIN_DIR
|
||||
|
||||
# Don't depend on MSVRT*.dll
|
||||
win32-msvc* {
|
||||
@ -25,4 +35,37 @@ SOURCES = \
|
||||
udpconnect.cpp \
|
||||
settings.cpp
|
||||
|
||||
#DLLDESTDIR = ../CopterControl
|
||||
# Resemble the AeroSimRC directory structure and copy plugin files and resources
|
||||
equals(copydata, 1) {
|
||||
|
||||
# Windows release only
|
||||
win32:CONFIG(release, debug|release) {
|
||||
|
||||
data_copy.commands += -@$(MKDIR) $$targetPath(\"$$PLUGIN_DIR\") $$addNewline()
|
||||
|
||||
# resources and sample configuration
|
||||
PLUGIN_RESOURCES = \
|
||||
cc_off.tga \
|
||||
cc_off_hover.tga \
|
||||
cc_on.tga \
|
||||
cc_on_hover.tga \
|
||||
cc_plugin.ini \
|
||||
plugin.txt
|
||||
for(res, PLUGIN_RESOURCES) {
|
||||
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$RES_DIR/$$res\") $$targetPath(\"$$PLUGIN_DIR/$$res\") $$addNewline()
|
||||
}
|
||||
|
||||
# Qt DLLs
|
||||
QT_DLLS = \
|
||||
libgcc_s_dw2-1.dll \
|
||||
mingwm10.dll \
|
||||
QtCore4.dll \
|
||||
QtNetwork4.dll
|
||||
for(dll, QT_DLLS) {
|
||||
data_copy.commands += $(COPY_FILE) $$targetPath(\"$$[QT_INSTALL_BINS]/$$dll\") $$targetPath(\"$$SIM_DIR/$$dll\") $$addNewline()
|
||||
}
|
||||
|
||||
data_copy.target = FORCE
|
||||
QMAKE_EXTRA_TARGETS += data_copy
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
include(../../../../../openpilotgcs.pri)
|
||||
|
||||
QT += core gui network
|
||||
|
||||
TARGET = udptest
|
||||
TEMPLATE = app
|
||||
TARGET = udp_test
|
||||
DESTDIR = $$GCS_APP_PATH
|
||||
|
||||
HEADERS += \
|
||||
udptestwidget.h
|
||||
|
Loading…
Reference in New Issue
Block a user