forked from analogdevicesinc/Pixelpulse2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pixelpulse2.pro
119 lines (96 loc) · 2.71 KB
/
pixelpulse2.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
116
117
118
119
TEMPLATE = app
QT += qml quick widgets
QT += network
CONFIG += c++11
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
isEmpty(LIBUSB_LIBRARY) {
LIBUSB_LIBRARY = "C:\libusb\MinGW32\static\libusb-1.0.a"
}
isEmpty(LIBUSB_INCLUDE_PATH) {
LIBUSB_INCLUDE_PATH = "C:\libusb\include\libusb-1.0"
}
isEmpty(LIBSMU_LIBRARY) {
LIBSMU_LIBRARY = "C:/Workspace/libsmu/build-libsmu-Desktop_Qt_5_4_2_MinGW_32bit3-Release/src/libsmu.dll.a"
}
isEmpty(LIBSMU_INCLUDE_PATH) {
LIBSMU_INCLUDE_PATH = "C:\Workspace\libsmu\libsmu\include"
}
QMAKE_CFLAGS_DEBUG += -ggdb
QMAKE_CXXFLAGS_DEBUG += -ggdb
CFLAGS += -v -static -static-libgcc -static-libstdc++ -g
DEFINES += GIT_VERSION='"\\\"$(shell git -C $$PWD describe --always --tags --abbrev)\\\""'
DEFINES += BUILD_DATE='"\\\"$(shell date +%F)\\\""'
SOURCES += main.cpp \
SMU.cpp \
Plot/PhosphorRender.cpp \
Plot/FloatBuffer.cpp \
utils/filedownloader.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in the Qt Creator code model
QML_IMPORT_PATH =
OTHER_FILES += \
qml/main.qml \
qml/Toolbar.qml \
qml/PlotPane.qml \
qml/DeviceManagerPane.qml \
qml/ToolbarStyle.qml \
qml/ContentPane.qml \
qml/XYPlot.qml \
qml/Controller.qml \
qml/SignalRow.qml \
qml/ChannelRow.qml \
qml/OverlayConstant.qml \
qml/TimelineFlickable.qml \
qml/TimelineHeader.qml \
qml/Axes.qml \
qml/OverlayPeriodic.qml \
qml/DragDot.qml \
qml/DeviceRow.qml \
qml/AcquisitionSettingsDialog.qml
HEADERS += \
SMU.h \
Plot/PhosphorRender.h \
Plot/FloatBuffer.h \
utils/fileio.h \
utils/filedownloader.h
win32:debug {
# CONFIG += console
LIBS += -limagehlp -ldbghelp
}
osx {
ICON = icons/pp2.icns
LIBS += -lobjc -framework IOKit -framework CoreFoundation
QT_LOGGING_RULES=qt.network.ssl.warning=false
}
win32 {
RC_ICONS = icons/pp2.ico
INCLUDEPATH += "C:\mingw32\include"
LIBS += $${LIBUSB_LIBRARY}
INCLUDEPATH += $${LIBUSB_INCLUDE_PATH}
LIBS += $${LIBSMU_LIBRARY}
INCLUDEPATH += $${LIBSMU_INCLUDE_PATH}
}
unix {
CONFIG += link_pkgconfig
PKGCONFIG += libsmu
# if we do not have a locally compiled static version of libusb-1.0 installed, use pkg-config
!exists(/usr/local/lib/libusb-1.0.a) {
PKGCONFIG += libusb-1.0
}
# if we do have a locally compiled static version of libusb-1.0 installed, use it
exists(/usr/local/lib/libusb-1.0.a) {
LIBS += /usr/local/lib/libusb-1.0.a
INCLUDEPATH += "/usr/local/include/libusb-1.0"
}
}
unix:!osx {
PKGCONFIG += libudev
INSTALLS+=target
isEmpty(PREFIX) {
PREFIX = /usr
}
BINDIR = $$PREFIX/bin
target.path=$$BINDIR
QMAKE_CFLAGS_DEBUG += -rdynamic
QMAKE_CXXFLAGS_DEBUG += -rdynamic
}