-
Notifications
You must be signed in to change notification settings - Fork 10
/
liveview.pro
180 lines (156 loc) · 5.54 KB
/
liveview.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#----------------------------------------------------------
#
# - LiveView // FlightView -
#
# https://github.com/nasa-jpl/LiveView
# Copyright 2014-2024 California Institute of Technology.
# Government Sponsorship(s) Acknowledged.
#----------------------------------------------------------
QT += core gui
QT += network svg
greaterThan(QT_MAJOR_VERSION, 4): QT += network widgets printsupport
DEFINES += GIT_CURRENT_SHA1="\\\"$(shell git -C \"$$PWD\" rev-parse HEAD)\\\""
DEFINES += GIT_CURRENT_SHA1_SHORT="\\\"$(shell git -C \"$$PWD\" rev-parse --short HEAD)\\\""
DEFINES += GIT_BRANCH="\\\"$(shell git -C \"$$PWD\" symbolic-ref --short HEAD)\\\""
DEFINES += SRC_DIR="\\\"\'$$PWD\'\\\""
CONFIG+=link_pkgconfig
PKGCONFIG+=gstreamer-1.0 gstreamer-app-1.0 glib-2.0 gobject-2.0
TARGET = liveview
TEMPLATE = app
#CONFIG += console
#CONFIG += warn_on
SOURCES += main.cpp\
consolelog.cpp \
cuda_take/src/take_object.cpp \
cuda_take/src/rtpnextgen.cpp \
filenamegenerator.cpp \
flight_widget.cpp \
flightindicators.cpp \
gpsGUI/zupt.cpp \
gpsmanager.cpp \
initialsetup.cpp \
mainwindow.cpp \
frameview_widget.cpp \
controlsbox.cpp \
frame_worker.cpp \
qcustomplot.cpp \
histogram_widget.cpp \
fft_widget.cpp \
profile_widget.cpp \
pref_window.cpp \
cuda_take/src/safestringset.cpp \
rgbadjustments.cpp \
saveserver.cpp \
playback_widget.cpp \
gpsGUI/qledlabel.cpp \
gpsGUI/gpsnetwork.cpp \
gpsGUI/gpsbinaryreader.cpp \
gpsGUI/gpsbinarylogger.cpp \
waterfall.cpp \
waterfallviewerwindow.cpp
HEADERS += mainwindow.h \
consolelog.h \
cuda_take/include/fileformats.h \
cuda_take/include/rtpnextgen.hpp \
filenamegenerator.h \
flight_widget.h \
flightindicators.h \
frameview_widget.h \
controlsbox.h\
frame_worker.h \
gpsGUI/zupt.h \
gpsmanager.h \
shm_gps.h \
image_type.h \
initialsetup.h \
preferences.h \
qcustomplot.h \
histogram_widget.h \
fft_widget.h \
frame_c_meta.h \
rgbadjustments.h \
rgbline.h \
cuda_take/include/safestringset.h \
settings.h \
profile_widget.h \
pref_window.h \
saveserver.h \
playback_widget.h \
gpsGUI/qledlabel.h \
gpsGUI/gpsnetwork.h \
gpsGUI/gpsbinaryreader.h \
gpsGUI/gpsbinarylogger.h \
startupOptions.h \
waterfall.h \
preferences.h \
waterfallviewerwindow.h
DISTFILES += cuda_take/include/take_object.hpp \
aviris3-logo.png \
cuda_take/include/chroma_translate_filter.hpp \
cuda_take/include/std_dev_filter_device_code.cuh \
cuda_take/include/mean_filter.hpp \
cuda_take/include/frame_c.hpp \
cuda_take/include/fft.hpp \
cuda_take/include/dark_subtraction_filter.hpp \
cuda_take/include/cuda_utils.hpp \
cuda_take/include/constants.h \
cuda_take/include/camera_types.hpp \
cuda_take/include/xiocamera.h \
cuda_take/include/osutils.h \
cuda_take/include/alphanum.hpp \
cuda_take/include/camera_types.h \
cuda_take/include/cameramodel.h \
cuda_take/include/cudalog.h \
cuda_take/include/takeoptions.h \
cuda_take/include/rtpcamera.hpp
DISTFILES += cuda_take/src/take_object.cpp \
cuda_take/src/std_dev_filter_device_code.cu \
cuda_take/src/std_dev_filter.cpp \
cuda_take/src/mean_filter.cpp \
cuda_take/src/main.cpp \
cuda_take/src/fft.cpp \
cuda_take/src/dark_subtraction_filter.cpp \
cuda_take/src/chroma_translate_filter.cpp \
cuda_take/src/xiocamera.cpp \
cuda_take/src/rtpcamera.cpp
# the following two lines are needed for the QFI widgets:
include(qfi.pri)
INCLUDEPATH += gpsGUI
OTHER_FILES += \
aviris-ng-logo.png \
aviris-logo-transparent.png \
icon.png \
liveview.rc
RESOURCES += \
images.qrc
QMAKE_CXXFLAGS += -O2 -std=c++11 -march=native -fopenmp -Wno-class-memaccess -Wno-unused-variable -Wno-unused-function -Wno-unused-parameter -Wno-unused-but-set-variable -Wno-unused-result
QMAKE_LFLAGS += -fopenmp
LIBS += -lgsl -lgslcblas
# Used for build tracking:
DEFINES += HOST=\\\"`hostname`\\\" UNAME=\\\"`whoami`\\\"
# qmake will create this directory automatically:
DESTDIR = ./lv_release
# Copy files into DESTDIR for potential releases:
QMAKE_POST_LINK += cp \"$$PWD/liveview.png\" $$DESTDIR;
QMAKE_POST_LINK += cp \"$$PWD/LiveView.desktop\" $$DESTDIR;
#NOTE! We're now using qcustomplot.cpp, because we're going to be making modifications to QColorMap stuff
# Tell the qcustomplot header that it will be used as library:
# Link with debug version of qcustomplot if compiling in debug mode, else with release library:
#CONFIG(debug, release|debug) {
# win32:QCPLIB = qcustomplotd1
# else: QCPLIB = qcustomplotd
#} else {
# win32:QCPLIB = qcustomplot1
# else: QCPLIB = qcustomplot
#}
#LIBS += -L$$PWD/lib/ -l$$QCPLIB
unix:!macx:!symbian: LIBS += -L$$PWD/cuda_take/ -lcuda_take -lboost_thread -lboost_filesystem -L/usr/local/cuda/lib64 -lcudart -lgomp -lboost_system -ldl -lrt # -lGL -lQtOpenGL
INCLUDEPATH += $$PWD/cuda_take/include\
/opt/EDTpdv /usr/local/cuda/include
DEPENDPATH += $$PWD/cuda_take
unix:!macx:!symbian: PRE_TARGETDEPS += $$PWD/cuda_take/libcuda_take.a
FORMS += \
flightindicators.ui \
initialsetup.ui \
rgbadjustments.ui \
waterfallviewerwindow.ui