forked from Quedale/OnvifDeviceManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
265 lines (227 loc) · 13.2 KB
/
Makefile.am
File metadata and controls
265 lines (227 loc) · 13.2 KB
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
ACLOCAL_AMFLAGS = -I m4
MAKE_PID := $(shell echo $$PPID)
JOB_FLAG := $(filter -j%, $(subst -j ,-j,$(shell ps T | grep "^\s*$(MAKE_PID).*$(MAKE)")))
JOBS := $(subst -j,,$(JOB_FLAG))
TAB := $(NULL)<tab>$(NULL)
icondir = $(datadir)/icons/hicolor
desktopdir = $(datadir)/applications
desktop_DATA = deployment/io.github.quedale.onvifmgr.desktop
EXTRA_DIST = deployment/io.github.quedale.onvifmgr.desktop.in
icon16dir = $(datadir)/icons/hicolor/16x16/apps
icon16_DATA = $(top_srcdir)/images/generated_icons/16x16/onvifmgr.png
icon32dir = $(datadir)/icons/hicolor/32x32/apps
icon32_DATA = $(top_srcdir)/images/generated_icons/32x32/onvifmgr.png
icon64dir = $(datadir)/icons/hicolor/64x64/apps
icon64_DATA = $(top_srcdir)/images/generated_icons/64x64/onvifmgr.png
icon128dir = $(datadir)/icons/hicolor/128x128/apps
icon128_DATA = $(top_srcdir)/images/generated_icons/128x128/onvifmgr.png
icon256dir = $(datadir)/icons/hicolor/256x256/apps
icon256_DATA = $(top_srcdir)/images/generated_icons/256x256/onvifmgr.png
# Extract list of compiled package
# GST_PLGS = $(shell ls $(PKG_GST_PATH) | sed -z 's/\.pc\n/ /g;s/,$$/\n/')
# GST_LIBS = $(shell ls $(PKG_PATH) | sed -z 's/\.pc\n/ /g;s/,$$/\n/')
AUTOMAKE_OPTIONS = foreign subdir-objects
AM_CFLAGS = $(DEBUG_FLAG) -Wall -Wextra -Wpedantic -Wno-unused-parameter $(DEBUG_FLAG) -DONVIFMGR_VERSION_MAJ=$(APP_VERSION_MAJ) -DONVIFMGR_VERSION_MIN=$(APP_VERSION_MIN) -DHAVE_CONFIG_H $(GST_STATIC_FLAG) -DONVIF_APP_ID=$(ONVIF_APP_ID) $(LIB_UDEV_PATH) `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --cflags $(GST_LIBS) $(GST_PLGS) gtk+-3.0 libntlm cutils onvifsoap libssl libcrypto` $(EXT_CFLAGS) -lm
bin_PROGRAMS = onvifmgr
EXTRA_PROGRAMS = gifdemo overlaytest queuedemo csssliderdemo playerdemo cssfilesliderdemo gtksliderdemo omgrdevicedemo gtkstyledimagedemo omgrdialogdemo encryptiondemo
encryptiondemo_SOURCES = $(top_srcdir)/src/demo/encryptiondemo.c \
$(top_srcdir)/src/utils/encryption_utils.c
encryptiondemo_LDFLAGS = `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs cutils libcrypto`
playerdemo_SOURCES = $(top_srcdir)/src/demo/player-demo.c \
$(top_srcdir)/src/alsa/alsa_devices.c \
$(top_srcdir)/src/alsa/alsa_utils.c \
$(top_srcdir)/src/gst/gst_plugin_utils.c \
$(top_srcdir)/src/gst/overlay.c \
$(top_srcdir)/src/gst/gstrtspplayer.c \
$(top_srcdir)/src/gst/src_retriever.c \
$(top_srcdir)/src/gst/backchannel.c
playerdemo_LDFLAGS = $(GST_LINK_TYPE) $(LIB_UDEV_PATH) `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs $(GST_LIBS) $(EXT_PLGS) $(GST_PLGS) gtk+-3.0 cutils` -Wl,-Bdynamic -lm -lstdc++ -z noexecstack
onvifmgr_SOURCES = $(top_srcdir)/src/onvif-mgr.c \
$(top_srcdir)/src/alsa/alsa_devices.c \
$(top_srcdir)/src/alsa/alsa_utils.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_revealer.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_progress_tracker.c \
$(top_srcdir)/src/animations/gtk/gtk_dotted_slider_widget.c \
$(top_srcdir)/src/app/gui_utils.c \
$(top_srcdir)/src/app/omgr_device_row.c \
$(top_srcdir)/src/app/onvif_app_shutdown.c \
$(top_srcdir)/src/app/onvif_app.c \
$(top_srcdir)/src/app/details/onvif_details.c \
$(top_srcdir)/src/app/details/onvif_details_panel.c \
$(top_srcdir)/src/app/details/onvif_info.c \
$(top_srcdir)/src/app/details/onvif_network.c \
$(top_srcdir)/src/app/details/onvif_timedate.c \
$(top_srcdir)/src/app/onvif_nvt.c \
$(top_srcdir)/src/app/onvif_nvt_stream_details.c \
$(top_srcdir)/src/app/task_manager.c \
$(top_srcdir)/src/app/dialog/gtkprofilepanel.c \
$(top_srcdir)/src/app/dialog/omgr_add_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_app_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_credentials_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_encrypted_store.c \
$(top_srcdir)/src/app/dialog/omgr_msg_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_profiles_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_encryoted_store_dialog.c \
$(top_srcdir)/src/app/settings/app_settings_discovery.c \
$(top_srcdir)/src/app/settings/app_settings_stream.c \
$(top_srcdir)/src/app/settings/app_settings.c \
$(top_srcdir)/src/utils/c_ownable_interface.c \
$(top_srcdir)/src/utils/encryption_utils.c \
$(top_srcdir)/src/utils/omgr_serializable_interface.c \
$(top_srcdir)/src/app/gtkbinaryimage.c \
$(top_srcdir)/src/app/gtkstyledimage.c \
$(top_srcdir)/src/gst/gst_plugin_utils.c \
$(top_srcdir)/src/gst/overlay.c \
$(top_srcdir)/src/gst/src_retriever.c \
$(top_srcdir)/src/gst/backchannel.c \
$(top_srcdir)/src/gst/gstrtspplayer.c \
$(top_srcdir)/src/gst/gstrtspstream.c \
$(top_srcdir)/src/queue/event_queue.c \
$(top_srcdir)/src/queue/queue_event.c \
$(top_srcdir)/src/queue/queue_thread.c
onvifmgr_LDFLAGS = $(GST_LINK_TYPE) $(LIB_UDEV_PATH) `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs $(GST_LIBS) $(EXT_PLGS) $(GST_PLGS) gtk+-3.0 libntlm cutils libssl libcrypto onvifsoap` -Wl,-Bdynamic -lm -lstdc++ -z noexecstack
onvifmgr_LDADD = locked-icon.o microphone.o warning.o trash.o tower.o add.o info.o
queuedemo_SOURCES = $(top_srcdir)/src/demo/queue-demo.c $(top_srcdir)/src/queue/event_queue.c $(top_srcdir)/src/queue/queue_event.c $(top_srcdir)/src/queue/queue_thread.c
queuedemo_LDFLAGS = `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs cutils glib-2.0 gobject-2.0`
gifdemo_SOURCES = $(top_srcdir)/src/demo/gtk-gif.c
gifdemo_LDFLAGS = `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs gtk+-3.0` -z noexecstack
gifdemo_LDADD = loading.o
gtkstyledimagedemo_SOURCES = $(top_srcdir)/src/demo/gtkstyledimagedemo.c \
$(top_srcdir)/src/app/gtkstyledimage.c \
$(top_srcdir)/src/app/gtkbinaryimage.c \
$(top_srcdir)/src/app/gui_utils.c
gtkstyledimagedemo_LDFLAGS = `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs gtk+-3.0 cutils` -z noexecstack
gtkstyledimagedemo_LDADD = microphone.o
overlaytest_SOURCES = $(top_srcdir)/src/demo/overlay-demo.c
overlaytest_LDFLAGS = -Wl,-Bstatic `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs $(GST_LIBS) $(GST_PLGS)` -Wl,-Bdynamic
cssfilesliderdemo_SOURCES = $(top_srcdir)/src/animations/dotted_slider.c $(top_srcdir)/src/demo/css/slider/dotted_slider_demo.c
cssfilesliderdemo_LDFLAGS = `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs gtk+-3.0`
csssliderdemo_SOURCES = $(top_srcdir)/src/demo/slider-demo.c \
$(top_srcdir)/src/animations/gtk/css_dotted_slider.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_revealer.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_progress_tracker.c
csssliderdemo_LDFLAGS = `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs gtk+-3.0`
omgrdevicedemo_SOURCES = $(top_srcdir)/src/demo/omgr-device-demo.c \
$(top_srcdir)/src/app/gui_utils.c \
$(top_srcdir)/src/utils/c_ownable_interface.c \
$(top_srcdir)/src/utils/omgr_serializable_interface.c \
$(top_srcdir)/src/app/gtkstyledimage.c \
$(top_srcdir)/src/app/gtkbinaryimage.c \
$(top_srcdir)/src/app/omgr_device_row.c
omgrdevicedemo_LDFLAGS = $(GST_LINK_TYPE) $(LIB_UDEV_PATH) `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs $(GST_LIBS) $(EXT_PLGS) $(GST_PLGS) gtk+-3.0 cutils onvifsoap libntlm` -Wl,-Bdynamic -lm -lstdc++ -z noexecstack
omgrdevicedemo_LDADD = save.o locked-icon.o warning.o
omgrdialogdemo_SOURCES = $(top_srcdir)/src/demo/omgr-dialog-demo.c \
$(top_srcdir)/src/app/gui_utils.c \
$(top_srcdir)/src/utils/c_ownable_interface.c \
$(top_srcdir)/src/utils/omgr_serializable_interface.c \
$(top_srcdir)/src/app/gtkstyledimage.c \
$(top_srcdir)/src/app/gtkbinaryimage.c \
$(top_srcdir)/src/app/omgr_device_row.c \
$(top_srcdir)/src/app/dialog/omgr_credentials_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_add_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_app_dialog.c \
$(top_srcdir)/src/app/dialog/omgr_encryoted_store_dialog.c \
$(top_srcdir)/src/animations/gtk/gtk_dotted_slider_widget.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_revealer.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_progress_tracker.c \
$(top_srcdir)/src/utils/encryption_utils.c \
$(top_srcdir)/src/queue/event_queue.c \
$(top_srcdir)/src/queue/queue_event.c \
$(top_srcdir)/src/queue/queue_thread.c
omgrdialogdemo_LDFLAGS = $(GST_LINK_TYPE) $(LIB_UDEV_PATH) `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs $(GST_LIBS) $(EXT_PLGS) $(GST_PLGS) gtk+-3.0 cutils onvifsoap libntlm` -Wl,-Bdynamic -lm -lstdc++ -z noexecstack
omgrdialogdemo_LDADD = save.o locked-icon.o warning.o
gtksliderdemo_SOURCES = $(top_srcdir)/src/demo/widget-demo.c \
$(top_srcdir)/src/animations/gtk/gtk_dotted_slider_widget.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_revealer.c \
$(top_srcdir)/src/animations/gtk/custom_gtk_progress_tracker.c
gtksliderdemo_LDFLAGS = `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --libs gtk+-3.0 cutils` -Wl,-Bdynamic -lm -lstdc++ -z noexecstack
deb$(EXEEXT): onvifmgr
@echo "Creating debian packge definition..."
@rm -rf onvifmgr_$(APP_VERSION)
@mkdir onvifmgr_$(APP_VERSION)
@mkdir onvifmgr_$(APP_VERSION)/usr
@mkdir onvifmgr_$(APP_VERSION)/usr/local
@mkdir onvifmgr_$(APP_VERSION)/usr/local/bin
@cp "$(abs_builddir)/onvifmgr" onvifmgr_$(APP_VERSION)/usr/local/bin
@mkdir onvifmgr_$(APP_VERSION)/DEBIAN
@echo "Package: onvifmgr" > onvifmgr_$(APP_VERSION)/DEBIAN/control
@echo "Version: 0.0-1" >> onvifmgr_$(APP_VERSION)/DEBIAN/control
@echo "Section: base" >> onvifmgr_$(APP_VERSION)/DEBIAN/control
@echo "Priority: optional" >> onvifmgr_$(APP_VERSION)/DEBIAN/control
@echo "Architecture: i386" >> onvifmgr_$(APP_VERSION)/DEBIAN/control
@echo "Maintainer: Your Name <you@email.com>" >> onvifmgr_$(APP_VERSION)/DEBIAN/control
@echo "Description: Onvif Device Manager for Linux" >> onvifmgr_$(APP_VERSION)/DEBIAN/control
@dpkg-deb --build onvifmgr_$(APP_VERSION)
@echo ""
@echo "*******************************************"
@echo "*"
@echo "* WARNING: This package is tailored for this computer"
@echo "* Distro package dependencies are not yet properly configured"
@echo "*"
@echo "* To install, run 'sudo dpkg -i onvifmgr_$(APP_VERSION).deb'"
@echo "*"
@echo "*******************************************"
clean-local:
@echo "Force clean up actual src directory."
find $(top_srcdir)/src -name "*.o" -type f -delete
find $(abs_builddir) -name "*.desktop" -type f -delete
distclean-local:
@echo "Force clean up actual src directory."
find $(top_srcdir)/src -name "*.Po" -type f -delete
find $(top_srcdir)/src -name ".dirstamp" -type f -delete
find $(top_srcdir)/src -name ".deps" -type d -delete
find $(abs_builddir) -name "*.desktop" -type f -delete
rm -rf $(top_srcdir)/images/generated_icons
uninstall-hook:
rm -f $(desktopdir)/$(ONVIF_APP_ID).desktop
rm -f $(icon16dir)/$(ONVIF_APP_ID).png
rm -f $(icon32dir)/$(ONVIF_APP_ID).png
rm -f $(icon64dir)/$(ONVIF_APP_ID).png
rm -f $(icon128dir)/$(ONVIF_APP_ID).png
rm -f $(icon256dir)/$(ONVIF_APP_ID).png
install-data-hook:
@echo "Rename .desktop file to match AppID : $(ONVIF_APP_ID)"
@cd $(desktopdir); mv io.github.quedale.onvifmgr.desktop $(ONVIF_APP_ID).desktop || echo "Desktop files are identical"
@cd $(icon16dir); mv onvifmgr.png $(ONVIF_APP_ID).png || echo "Icon 16x16 files are identical"
@cd $(icon32dir); mv onvifmgr.png $(ONVIF_APP_ID).png || echo "Icon 32x32 files are identical"
@cd $(icon64dir); mv onvifmgr.png $(ONVIF_APP_ID).png || echo "Icon 64x64 files are identical"
@cd $(icon128dir); mv onvifmgr.png $(ONVIF_APP_ID).png || echo "Icon 128x128 files are identical"
@cd $(icon256dir); mv onvifmgr.png $(ONVIF_APP_ID).png || echo "Icon 256x256 files are identical"
paths$(EXEEXT):
@echo "PKG_FULL_PATH : $(PKG_FULL_PATH)"
@echo ""
@echo "GST_PLGS : $(GST_PLGS)"
@echo ""
@echo "GST_LIBS : $(GST_LIBS)"
printinc$(EXEEXT):
@`gcc -print-prog-name=cc1` -v
pkgpath$(EXEEXT):
@echo "PKG_FULL_PATH : $(PKG_FULL_PATH)"
@echo "CFLAGS : " `PKG_CONFIG_PATH=$(PKG_FULL_PATH) pkg-config --cflags gio-2.0`
loading.o$(EXEEXT):
@echo " CCLD images/loading.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/loading.o loading.gif && cd ..
tower.o$(EXEEXT):
@echo " CCLD images/tower.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/tower.o tower.png && cd ..
microphone.o$(EXEEXT):
@echo " CCLD images/microphone.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/microphone.o microphone.png && cd ..
locked-icon.o$(EXEEXT):
@echo " CCLD images/locked-icon.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/locked-icon.o locked-icon.png && cd ..
warning.o$(EXEEXT):
@echo " CCLD images/warning.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/warning.o warning.png && cd ..
trash.o$(EXEEXT):
@echo " CCLD images/trash.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/trash.o trash.png && cd ..
save.o$(EXEEXT):
@echo " CCLD images/save.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/save.o save.png && cd ..
add.o$(EXEEXT):
@echo " CCLD images/add.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/add.o add.png && cd ..
info.o$(EXEEXT):
@echo " CCLD images/info.o"
@cd $(top_srcdir)/images && ld -r -b binary -o $(abs_builddir)/info.o info.png && cd ..