1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
6 lib_LTLIBRARIES = libmoonshot/libmoonshot.la
16 -DLOCALEDIR=\""$(localedir)"\" \
17 -I$(top_srcdir)/libmoonshot \
18 -I$(top_builddir)/libmoonshot
25 libmoonshot_libmoonshot_la_CPPFLAGS = \
26 $(libmoonshot_CFLAGS) \
29 libmoonshot_libmoonshot_la_SOURCES = libmoonshot/libmoonshot-common.c
31 libmoonshot_libmoonshot_la_LIBADD = $(libmoonshot_LIBS)
33 include_HEADERS = libmoonshot/libmoonshot.h
34 noinst_HEADERS = libmoonshot/libmoonshot-common.h
36 src_moonshot_SOURCES = \
37 src/moonshot-identity-manager-app.vala \
38 src/moonshot-identity-management-view.vala \
39 src/moonshot-local-flat-file-store.vala \
40 src/moonshot-idcard-store.vala \
41 src/moonshot-id.vala \
42 src/moonshot-add-dialog.vala \
43 src/moonshot-idcard-widget.vala \
44 src/moonshot-custom-vbox.vala \
45 src/moonshot-identities-manager.vala \
46 src/moonshot-identity-request.vala \
47 src/moonshot-server.vala \
48 src/moonshot-password-dialog.vala \
49 src/moonshot-utils.vala
51 src_moonshot_webp_SOURCES = \
52 src/moonshot-webp-parser.vala \
55 src_moonshot_VALAFLAGS =--pkg gee-1.0 $(AM_VALAFLAGS)
56 src_moonshot_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
57 src_moonshot_LDADD = $(moonshot_LIBS)
59 src_moonshot_webp_VALAFLAGS = --vapidir=$(top_srcdir)/libmoonshot --pkg gdk-2.0 --pkg libmoonshot $(AM_VALAFLAGS)
60 src_moonshot_webp_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
61 src_moonshot_webp_LDADD = $(moonshot_LIBS) ${top_builddir}/libmoonshot/libmoonshot.la
65 libmoonshot_libmoonshot_la_LDFLAGS = -no-undefined
67 src_moonshot_CFLAGS = -mwindows
68 src_moonshot_webp_CFLAGS = -mwindows
70 AM_CPPFLAGS += -DOS_WIN32
71 AM_VALAFLAGS += --define=OS_WIN32 --pkg gdk-2.0 --pkg gtk+-2.0
73 noinst_DATA = libmoonshot/libmoonshot.lib
75 # Build the MSVC lib. The sed hack fixes execution in the case that
76 # the MSVC toolchain isn't in the PATH.
77 libmoonshot/libmoonshot.lib: libmoonshot/libmoonshot.def
78 PATH="$(shell echo "${MSVC_LIB}" | sed -e s,/VC/bin/lib,/Common7/IDE,)":$$PATH "${MSVC_LIB}" -def:$< -out:$@ -machine:x86
84 AM_CPPFLAGS += -DOS_MACOS
85 AM_VALAFLAGS += --define=OS_MACOS --pkg gdk-3.0 --pkg gtk+-3.0
91 AM_VALAFLAGS += --define=OS_MACOS --pkg gdk-2.0 --pkg gtk+-2.0
93 ## Installing mime type data
94 mimedir = $(datadir)/mime/packages
95 mime_DATA = webprovisioning/moonshot.xml
98 dotdesktopdir = $(datadir)/applications
99 dotdesktop_DATA = moonshot.desktop moonshot-webp.desktop
111 BUILT_SOURCES = libmoonshot/moonshot-msrpc.h \
112 libmoonshot/moonshot-msrpc_s.c \
113 libmoonshot/moonshot-msrpc_c.c
115 DISTCLEANFILES = ${BUILT_SOURCES}
117 libmoonshot/moonshot-msrpc.h: libmoonshot/moonshot-msrpc.idl libmoonshot/moonshot-msrpc.acf
118 ${AM_V_GEN} ${MIDL_WRAPPER} -o libmoonshot -m "${MIDL}" $^
120 libmoonshot/moonshot-msrpc_s.c: libmoonshot/moonshot-msrpc.h
121 libmoonshot/moonshot-msrpc_c.c: libmoonshot/moonshot-msrpc.h
123 libmoonshot_libmoonshot_la_SOURCES += \
124 libmoonshot/libmoonshot-msrpc.c
126 src_moonshot_SOURCES += \
127 src/moonshot-msrpc.vapi
129 nodist_src_moonshot_SOURCES = \
130 libmoonshot/moonshot-msrpc_s.c
132 nodist_libmoonshot_libmoonshot_la_SOURCES = \
133 libmoonshot/moonshot-msrpc_c.c
140 dbusservicedir = $(datadir)/dbus-1/services
141 dbusservice_in_files = org.janet.Moonshot.service.in
142 dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
144 # Rule to make the service file with bindir expanded
145 $(dbusservice_DATA): $(dbusservice_in_files) Makefile
146 @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
148 libmoonshot_libmoonshot_la_SOURCES += libmoonshot/libmoonshot-dbus.c
150 CLEANFILES = $(dbusservice_DATA)
155 --define=IPC_DBUS_GLIB \
165 EXTRA_DIST = webprovisioning/moonshot.xml $(dbusservice_in_files) \
170 examples/service-selection \
173 examples_service_selection_SOURCES = examples/service-selection.c
174 examples_service_selection_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
175 examples_service_selection_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
177 examples_client_SOURCES = examples/client.c
178 examples_client_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
179 examples_client_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la
181 tests_basic_SOURCES = tests/basic.c
182 tests_basic_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
183 tests_basic_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
187 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
188 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
190 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
191 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
196 ## A couple of Windows-specific targets:
198 ## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
199 ## in the install prefix; and ImageMagick installed in c:/tools/ImageMagick. This
200 ## pulls in the icons required by moonshot and converts svg's to png's (we have
201 ## no svg support built in to Windows Gtk+ right now).
205 cp ${prefix}/share/icons/gnome/48x48/status/avatar-default.png share/icons
206 "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
207 "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
210 ## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
211 ## installed in its default path. Note that this requires at least .NET
212 ## runtime with service packs 1 and 2. The installer picks up files from
213 ## the build prefix and mingw dir; you must change these if you have them
214 ## in different locations I'm afraid.
216 installer: moonshot.msi
218 moonshot.msi: windows/app.wxs windows/config.wxi $(bin_PROGRAMS)
220 "${WIX_LIGHT}" -b ${prefix} -b ${prefix}/mingw -o moonshot.msi app.wixobj
225 ## Mac-specific targets
231 cp mac/icons/process-stop.png share/icons
232 cp mac/icons/edit-find.png share/icons
233 cp mac/icons/avatar-default.png share/icons
236 ## gtk-app-bundler must be installed
237 ## moonshot-ui.app will be built in moonshot/mac-client-installer/moonshot-ui/
239 gtk-mac-bundler ./mac/moonshot-ui.bundle
241 ## 3: Installer Package
243 installerdir = $(HOME)/moonshot/mac-client-installer