blob: 12d646c53a498460e3751dfc29e1ac01f0e1a30d (
plain)
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
|
NULL =
LDADD =
MAINTAINERCLEANFILES =
bin_PROGRAMS =
builderxmldir = $(pkgdatadir)/ui
builderxml_DATA = \
virt-viewer.xml \
virt-viewer-about.xml \
virt-viewer-auth.xml \
virt-viewer-guest-details.xml \
virt-viewer-vm-connection.xml \
virt-viewer-preferences.xml \
remote-viewer-connect.xml \
$(NULL)
EXTRA_DIST = \
$(builderxml_DATA) \
virt-viewer-enums.c.etemplate \
virt-viewer-enums.h.etemplate \
gbinding.c \
gbinding.h \
$(NULL)
ENUMS_FILES = \
virt-viewer-display.h \
$(NULL)
BUILT_SOURCES = \
virt-viewer-enums.h \
virt-viewer-enums.c \
$(NULL)
$(BUILT_SOURCES): %: %.etemplate $(ENUMS_FILES)
$(AM_V_GEN)$(GLIB_MKENUMS) --template $^ | \
sed -e 's/VIRT_TYPE_VIEWER/VIRT_VIEWER_TYPE/' \
-e 's,#include "$(srcdir)/,#include ",' > $@
COMMON_SOURCES = \
$(BUILT_SOURCES) \
virt-glib-compat.h \
virt-glib-compat.c \
virt-gtk-compat.h \
virt-viewer-util.h virt-viewer-util.c \
virt-viewer-auth.h virt-viewer-auth.c \
virt-viewer-app.h virt-viewer-app.c \
virt-viewer-file.h virt-viewer-file.c \
virt-viewer-session.h virt-viewer-session.c \
virt-viewer-display.h virt-viewer-display.c \
virt-viewer-notebook.h virt-viewer-notebook.c \
virt-viewer-window.h virt-viewer-window.c \
virt-viewer-vm-connection.h virt-viewer-vm-connection.c \
view/autoDrawer.c \
view/autoDrawer.h \
view/drawer.c \
view/drawer.h \
view/ovBox.c \
view/ovBox.h \
$(NULL)
if HAVE_GTK_VNC
COMMON_SOURCES += \
virt-viewer-session-vnc.h virt-viewer-session-vnc.c \
virt-viewer-display-vnc.h virt-viewer-display-vnc.c \
$(NULL)
endif
if HAVE_SPICE_GTK
COMMON_SOURCES += \
virt-viewer-session-spice.h virt-viewer-session-spice.c \
virt-viewer-display-spice.h virt-viewer-display-spice.c \
$(NULL)
endif
if HAVE_OVIRT
COMMON_SOURCES += \
ovirt-foreign-menu.h ovirt-foreign-menu.c
endif
check_PROGRAMS = test-version-compare
TESTS = $(check_PROGRAMS)
test_version_compare_SOURCES = \
virt-viewer-util.c \
virt-viewer-util.h \
test-version-compare.c \
$(NULL)
test_version_compare_LDFLAGS = \
$(GLIB2_LIBS) \
$(GTK_LIBS) \
$(LIBXML2_LIBS) \
$(NULL)
test_version_compare_CFLAGS = \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
$(GLIB2_CFLAGS) \
$(GTK_CFLAGS) \
$(LIBXML2_CFLAGS) \
$(WARN_CFLAGS) \
$(NULL)
if HAVE_LIBVIRT
bin_PROGRAMS += virt-viewer
virt_viewer_SOURCES = \
$(COMMON_SOURCES) \
virt-viewer-events.h virt-viewer-events.c \
virt-viewer.h virt-viewer.c \
virt-viewer-main.c \
$(NULL)
virt_viewer_LDFLAGS = \
-lm \
$(GLIB2_LIBS) \
$(GTK_LIBS) \
$(GTK_VNC_LIBS) \
$(LIBXML2_LIBS) \
$(LIBVIRT_LIBS) \
$(OVIRT_LIBS) \
$(SPICE_GTK_LIBS) \
$(NULL)
virt_viewer_CFLAGS = \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
-DG_LOG_DOMAIN=\"virt-viewer\" \
$(GLIB2_CFLAGS) \
$(GTK_CFLAGS) \
$(GTK_VNC_CFLAGS) \
$(LIBXML2_CFLAGS) \
$(LIBVIRT_CFLAGS) \
$(OVIRT_CFLAGS) \
$(SPICE_GTK_CFLAGS) \
$(SPICE_CONTROLLER_CFLAGS) \
$(WARN_CFLAGS) \
$(NULL)
endif
bin_PROGRAMS += remote-viewer
remote_viewer_SOURCES = \
$(COMMON_SOURCES) \
remote-viewer.h remote-viewer.c \
remote-viewer-connect.c \
remote-viewer-connect.h \
remote-viewer-main.c \
$(NULL)
remote_viewer_LDFLAGS = \
-lm \
$(GLIB2_LIBS) \
$(GTK_LIBS) \
$(GTK_VNC_LIBS) \
$(LIBXML2_LIBS) \
$(OVIRT_LIBS) \
$(SPICE_GTK_LIBS) \
$(SPICE_CONTROLLER_LIBS) \
$(NULL)
remote_viewer_CFLAGS = \
-DLOCALE_DIR=\""$(datadir)/locale"\" \
-DG_LOG_DOMAIN=\"remote-viewer\" \
$(GLIB2_CFLAGS) \
$(GTK_CFLAGS) \
$(GTK_VNC_CFLAGS) \
$(LIBXML2_CFLAGS) \
$(OVIRT_CFLAGS) \
$(SPICE_GTK_CFLAGS) \
$(SPICE_CONTROLLER_CFLAGS) \
$(WARN_CFLAGS) \
$(NULL)
if OS_WIN32
remote_viewer_LDFLAGS += -Wl,--subsystem,windows
endif
AM_CPPFLAGS = -DPACKAGE_DATADIR=\""$(pkgdatadir)"\"
VIRT_VIEWER_RES = virt-viewer.rc virt-viewer.manifest
ICONDIR = $(top_builddir)/icons
MANIFESTDIR = $(srcdir)
EXTRA_DIST += $(VIRT_VIEWER_RES)
if OS_WIN32
bin_PROGRAMS += windows-cmdline-wrapper
windows_cmdline_wrapper_SOURCES = windows-cmdline-wrapper.c
windows_cmdline_wrapper_LDFLAGS = -lpsapi
virt-viewer_rc.$(OBJEXT): $(VIRT_VIEWER_RES) $(ICONDIR)/virt-viewer.ico
$(AM_V_GEN)$(WINDRES) \
-DICONDIR='\"$(ICONDIR)\"' \
-DMANIFESTDIR='\"$(MANIFESTDIR)\"' \
-i $< -o $@
LDADD += virt-viewer_rc.$(OBJEXT)
MAINTAINERCLEANFILES += virt-viewer_rc.$(OBJEXT)
bin_PROGRAMS += debug-helper
debug_helper_SOURCES = debug-helper.c
debug_helper_LDFLAGS = $(GLIB2_LIBS) -Wl,--subsystem,windows
debug_helper_CFLAGS = $(GLIB2_CFLAGS)
endif
-include $(top_srcdir)/git.mk
|