1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
6 lib_LTLIBRARIES = libmoonshot/libmoonshot.la
16 -DLOCALEDIR=\""$(localedir)"\" \
17 -I$(top_srcdir)/libmoonshot
24 libmoonshot_libmoonshot_la_CPPFLAGS = \
25 $(libmoonshot_CFLAGS) \
28 libmoonshot_libmoonshot_la_SOURCES = libmoonshot/libmoonshot-common.c
30 libmoonshot_libmoonshot_la_LIBADD = $(libmoonshot_LIBS)
32 include_HEADERS = libmoonshot/libmoonshot.h
33 noinst_HEADERS = libmoonshot/libmoonshot-common.h
35 src_moonshot_SOURCES = \
36 src/moonshot-id.vala \
37 src/moonshot-add-dialog.vala \
38 src/moonshot-idcard-widget.vala \
39 src/moonshot-custom-vbox.vala \
40 src/moonshot-identities-manager.vala \
41 src/moonshot-identity-request.vala \
42 src/moonshot-server.vala \
43 src/moonshot-window.vala \
44 src/moonshot-password-dialog.vala \
45 src/moonshot-utils.vala
47 src_moonshot_webp_SOURCES = \
48 src/moonshot-webp-parser.vala \
51 src_moonshot_VALAFLAGS = --pkg gtk+-2.0 $(AM_VALAFLAGS)
52 src_moonshot_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
53 src_moonshot_LDADD = $(moonshot_LIBS)
55 src_moonshot_webp_VALAFLAGS = --vapidir=$(top_srcdir)/libmoonshot --pkg libmoonshot $(AM_VALAFLAGS)
56 src_moonshot_webp_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
57 src_moonshot_webp_LDADD = $(moonshot_LIBS) ${top_builddir}/libmoonshot/libmoonshot.la
61 libmoonshot_libmoonshot_la_LDFLAGS = -no-undefined
63 src_moonshot_CFLAGS = -mwindows
64 src_moonshot_webp_CFLAGS = -mwindows
66 AM_CPPFLAGS += -DOS_WIN32
67 AM_VALAFLAGS += --define=OS_WIN32
69 noinst_DATA = libmoonshot/libmoonshot.lib
71 libmoonshot/libmoonshot.lib: libmoonshot/libmoonshot.def
72 "${MSVC_LIB}" -def:$< -out:$@ -machine:x86
78 ## Installing mime type data
79 mimedir = $(datadir)/mime/packages
80 mime_DATA = webprovisioning/moonshot.xml
83 dotdesktopdir = $(datadir)/applications
84 dotdesktop_DATA = moonshot.desktop moonshot-webp.desktop
96 BUILT_SOURCES = libmoonshot/moonshot-msrpc.h \
97 libmoonshot/moonshot-msrpc_s.c \
98 libmoonshot/moonshot-msrpc_c.c
100 DISTCLEANFILES = ${BUILT_SOURCES}
102 libmoonshot/moonshot-msrpc.h: libmoonshot/moonshot-msrpc.idl libmoonshot/moonshot-msrpc.acf
103 ${AM_V_GEN} ${MIDL_WRAPPER} -o libmoonshot -m "${MIDL}" $^
105 libmoonshot/moonshot-msrpc_s.c: libmoonshot/moonshot-msrpc.h
106 libmoonshot/moonshot-msrpc_c.c: libmoonshot/moonshot-msrpc.h
108 libmoonshot_libmoonshot_la_SOURCES += \
109 libmoonshot/libmoonshot-msrpc.c
111 src_moonshot_SOURCES += \
112 src/moonshot-msrpc.vapi
114 nodist_src_moonshot_SOURCES = \
115 libmoonshot/moonshot-msrpc_s.c
117 nodist_libmoonshot_libmoonshot_la_SOURCES = \
118 libmoonshot/moonshot-msrpc_c.c
125 dbusservicedir = $(datadir)/dbus-1/services
126 dbusservice_in_files = org.janet.Moonshot.service.in
127 dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
129 # Rule to make the service file with bindir expanded
130 $(dbusservice_DATA): $(dbusservice_in_files) Makefile
131 @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
137 libmoonshot_libmoonshot_la_SOURCES += libmoonshot/libmoonshot-dbus.c
139 CLEANFILES = $(dbusservice_DATA)
142 EXTRA_DIST = webprovisioning/moonshot.xml $(dbusservice_in_files)
148 examples_client_SOURCES = examples/client.c
149 examples_client_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
150 examples_client_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la
152 tests_basic_SOURCES = tests/basic.c
153 tests_basic_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
154 tests_basic_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
158 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
159 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
161 ## "${UPDATE_MIME_DATABASE}" $(datadir)/mime
162 ## "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
167 ## A couple of Windows-specific targets:
169 ## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
170 ## in c:/build prefix; and ImageMagick installed in c:/tools/ImageMagick. This
171 ## pulls in the icons required by moonshot and converts svg's to png's (we have
172 ## no svg support built in to Windows Gtk+ right now).
176 cp c:/build/share/icons/gnome/48x48/status/avatar-default.png share/icons
177 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
178 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
181 ## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
182 ## installed in its default path. Note that this requires at least .NET
183 ## runtime with service packs 1 and 2. The installer picks up files from
184 ## the build prefix and mingw dir; you must change these if you have them
185 ## in different locations I'm afraid.
187 installer: moonshot.msi
189 moonshot.msi: windows/app.wxs windows/config.wxi $(bin_PROGRAMS)
191 "${WIX_LIGHT}" -b c:/build -b c:/tools/mingw -o moonshot.msi app.wixobj