-
Notifications
You must be signed in to change notification settings - Fork 23
/
PluginExample.pro
115 lines (93 loc) · 3.32 KB
/
PluginExample.pro
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#----------------- HELP --------------
# Help about RoboDK plugins here:
# https://robodk.com/CreatePlugin
# Clear some space in the General Messages window
message(".")
message(".")
message(".")
message(".")
message(".")
message("Useful tip that helps development: Enter RoboDK as executable and pass the argument -PLUGINSLOAD to start with all available plugins")
# Example to reload all plugins:
# C:/RoboDK/bin/RoboDK.exe "-PLUGINSLOAD"
# Example to load the plugin on the fly:
# C:/RoboDK/bin/RoboDK.exe "-PLUGINLOAD=C:/RoboDK/bin/plugins/pluginexample.dll"
# You can also select Tools-PlugIns and manually load a plugin
#------------------------------------
#----------------- TEMPLATE --------- (Qt Plugin App template)
# Important: Do not change these values (unless you know what you are doing)
TEMPLATE = lib
CONFIG += plugin
#------------------------------------
# Add any Qt libraries you would like to use:
#QT += core gui
QT += widgets
QT += network # Allows using QTcpSocket
# Define your plugin name (name of the DLL file generated)
TARGET = PluginExample
#-----------------------------------------------------
# Define the location to place the plugin library (release and/or debug binaries)
exists( "$$PWD/../../destdir_rdk_plugins.pri" ) {
include("$$PWD/../../destdir_rdk_plugins.pri")
DESTDIR = $$DESTDIR_RDK_PLUGINS
} else {
CONFIG(release, debug|release) {
message("Using release binaries.")
message("Select Projects-Run-Executable and set to C:/RoboDK/bin/RoboDK.exe ")
win32{
#Default path on Windows
DESTDIR = C:/RoboDK/bin/plugins
} else {
macx {
# Default path on MacOS
DESTDIR = ~/RoboDK-Dev/Deploy/RoboDK.app/Contents/MacOS/plugins
} else {
#Default path on Linux
DESTDIR = ~/RoboDK/bin/plugins
}
}
} else {
message("Using debug binaries: Make sure you start the debug version of RoboDK ( C:/RoboDK/bind/ ). ")
message("Select Projects-Run-Executable and set to C:/RoboDK/bind/RoboDK.exe ")
message("(send us an email at info@robodk.com to obtain debug binaries that should go to the bind directory)")
win32{
#Default path on Windows (debug)
DESTDIR = C:/RoboDK/bind/plugins
} else {
macx {
# Default path on MacOS (debug)
DESTDIR = ~/RoboDK-Dev/Deploy/RoboDK.app/Contents/MacOS/plugins
} else {
#Default path on Linux (debug)
DESTDIR = ~/RoboDK/bind/plugins
}
}
}
}
#--------------------------
# Add header and source files (use File->New File or Project and add your files)
# This can be modified manually or automatically by Qt Creator
HEADERS += \
pluginexample.h \
formrobotpilot.h
SOURCES += \
pluginexample.cpp \
formrobotpilot.cpp
FORMS += \
formrobotpilot.ui
RESOURCES += \
resources1.qrc
#--------------------------
# Header and source files required by any RoboDK plugin
# Do not change this section, make sure to have the robodk_interface folder up one folder
HEADERS += \
../robodk_interface/iitem.h \
../robodk_interface/irobodk.h\
../robodk_interface/iapprobodk.h \
../robodk_interface/robodktypes.h \
../robodk_interface/robodktools.h \
SOURCES += \
../robodk_interface/robodktools.cpp \
../robodk_interface/robodktypes.cpp
INCLUDEPATH += ../robodk_interface
#--------------------------