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 gdk-2.0 --pkg gtk+-2.0 --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
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 ## Installing mime type data
85 mimedir = $(datadir)/mime/packages
86 mime_DATA = webprovisioning/moonshot.xml
89 dotdesktopdir = $(datadir)/applications
90 dotdesktop_DATA = moonshot.desktop moonshot-webp.desktop
102 BUILT_SOURCES = libmoonshot/moonshot-msrpc.h \
103 libmoonshot/moonshot-msrpc_s.c \
104 libmoonshot/moonshot-msrpc_c.c
106 DISTCLEANFILES = ${BUILT_SOURCES}
108 libmoonshot/moonshot-msrpc.h: libmoonshot/moonshot-msrpc.idl libmoonshot/moonshot-msrpc.acf
109 ${AM_V_GEN} ${MIDL_WRAPPER} -o libmoonshot -m "${MIDL}" $^
111 libmoonshot/moonshot-msrpc_s.c: libmoonshot/moonshot-msrpc.h
112 libmoonshot/moonshot-msrpc_c.c: libmoonshot/moonshot-msrpc.h
114 libmoonshot_libmoonshot_la_SOURCES += \
115 libmoonshot/libmoonshot-msrpc.c
117 src_moonshot_SOURCES += \
118 src/moonshot-msrpc.vapi
120 nodist_src_moonshot_SOURCES = \
121 libmoonshot/moonshot-msrpc_s.c
123 nodist_libmoonshot_libmoonshot_la_SOURCES = \
124 libmoonshot/moonshot-msrpc_c.c
131 dbusservicedir = $(datadir)/dbus-1/services
132 dbusservice_in_files = org.janet.Moonshot.service.in
133 dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
135 # Rule to make the service file with bindir expanded
136 $(dbusservice_DATA): $(dbusservice_in_files) Makefile
137 @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
139 libmoonshot_libmoonshot_la_SOURCES += libmoonshot/libmoonshot-dbus.c
141 CLEANFILES = $(dbusservice_DATA)
146 --define=IPC_DBUS_GLIB \
156 EXTRA_DIST = webprovisioning/moonshot.xml $(dbusservice_in_files) \
161 examples/service-selection \
164 examples_service_selection_SOURCES = examples/service-selection.c
165 examples_service_selection_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
166 examples_service_selection_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
168 examples_client_SOURCES = examples/client.c
169 examples_client_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
170 examples_client_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la
172 tests_basic_SOURCES = tests/basic.c
173 tests_basic_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
174 tests_basic_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
178 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
179 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
181 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
182 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
187 ## A couple of Windows-specific targets:
189 ## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
190 ## in the install prefix; and ImageMagick installed in c:/tools/ImageMagick. This
191 ## pulls in the icons required by moonshot and converts svg's to png's (we have
192 ## no svg support built in to Windows Gtk+ right now).
196 cp ${prefix}/share/icons/gnome/48x48/status/avatar-default.png share/icons
197 "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
198 "${IMAGEMAGICK_CONVERT}" -background none ${prefix}/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
201 ## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
202 ## installed in its default path. Note that this requires at least .NET
203 ## runtime with service packs 1 and 2. The installer picks up files from
204 ## the build prefix and mingw dir; you must change these if you have them
205 ## in different locations I'm afraid.
207 installer: moonshot.msi
209 moonshot.msi: windows/app.wxs windows/config.wxi $(bin_PROGRAMS)
211 "${WIX_LIGHT}" -b ${prefix} -b ${prefix}/mingw -o moonshot.msi app.wixobj