1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
6 lib_LTLIBRARIES = libmoonshot/libmoonshot.la
8 bin_PROGRAMS = src/moonshot
15 -DLOCALEDIR=\""$(localedir)"\" \
16 -I$(top_srcdir)/libmoonshot
23 libmoonshot_libmoonshot_la_CPPFLAGS = \
24 $(libmoonshot_CFLAGS) \
27 libmoonshot_libmoonshot_la_SOURCES = libmoonshot/libmoonshot-common.c
29 libmoonshot_libmoonshot_la_LIBADD = $(libmoonshot_LIBS)
31 include_HEADERS = libmoonshot/libmoonshot.h
32 noinst_HEADERS = libmoonshot/libmoonshot-common.h
34 src_moonshot_SOURCES = \
35 src/moonshot-id.vala \
36 src/moonshot-add-dialog.vala \
37 src/moonshot-idcard-widget.vala \
38 src/moonshot-custom-vbox.vala \
39 src/moonshot-identities-manager.vala \
40 src/moonshot-identity-request.vala \
41 src/moonshot-server.vala \
42 src/moonshot-window.vala \
43 src/moonshot-password-dialog.vala \
44 src/moonshot-utils.vala
46 src_moonshot_LDADD = \
49 src_moonshot_CPPFLAGS = \
57 libmoonshot_libmoonshot_la_LDFLAGS = -no-undefined
59 src_moonshot_CFLAGS = -mwindows
60 #src_moonshot_webp_CFLAGS = -mwindows
62 AM_CPPFLAGS += -DOS_WIN32
63 AM_VALAFLAGS += --define=OS_WIN32
65 noinst_DATA = libmoonshot/libmoonshot.lib
67 libmoonshot/libmoonshot.lib: libmoonshot/libmoonshot.def
68 "${MSVC_LIB}" -def:$< -out:$@ -machine:x86
74 bin_PROGRAMS += src/moonshot-webp
76 src_moonshot_webp_SOURCES = src/moonshot-webp-parser.vala src/moonshot-id.vala
77 src_moonshot_webp_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
78 src_moonshot_webp_LDADD = $(moonshot_LIBS)
80 ## Installing mime type data
81 mime_DATA = webprovisioning/moonshot.xml
82 mimedir = $(datadir)/mime/packages
85 dotdesktop_DATA = moonshot.desktop moonshot-webp.desktop
86 dotdesktopdir = $(datadir)/applications
97 BUILT_SOURCES = libmoonshot/moonshot-msrpc.h \
98 libmoonshot/moonshot-msrpc_s.c \
99 libmoonshot/moonshot-msrpc_c.c
101 DISTCLEANFILES = ${BUILT_SOURCES}
103 libmoonshot/moonshot-msrpc.h: libmoonshot/moonshot-msrpc.idl libmoonshot/moonshot-msrpc.acf
104 ${AM_V_GEN} ${MIDL_WRAPPER} -o libmoonshot -m "${MIDL}" $^
106 libmoonshot/moonshot-msrpc_s.c: libmoonshot/moonshot-msrpc.h
107 libmoonshot/moonshot-msrpc_c.c: libmoonshot/moonshot-msrpc.h
109 libmoonshot_libmoonshot_la_SOURCES += \
110 libmoonshot/libmoonshot-msrpc.c
112 src_moonshot_SOURCES += \
113 src/moonshot-msrpc.vapi
115 nodist_src_moonshot_SOURCES = \
116 libmoonshot/moonshot-msrpc_s.c
118 nodist_libmoonshot_libmoonshot_la_SOURCES = \
119 libmoonshot/moonshot-msrpc_c.c
126 dbusservicedir = $(datadir)/dbus-1/services
127 dbusservice_in_files = org.janet.Moonshot.service.in
128 dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
130 # Rule to make the service file with bindir expanded
131 $(dbusservice_DATA): $(dbusservice_in_files) Makefile
132 @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
138 libmoonshot_libmoonshot_la_SOURCES += libmoonshot/libmoonshot-dbus.c
140 CLEANFILES = $(dbusservice_DATA)
141 EXTRA_DIST = $(dbusservice_in_files)
150 examples_client_SOURCES = examples/client.c
151 examples_client_CPPFLAGS = $(libmoonshot_CFLAGS) $(AM_CPPFLAGS)
152 examples_client_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la
154 tests_basic_SOURCES = tests/basic.c
155 tests_basic_CPPFLAGS = $(moonshot_CFLAGS) $(AM_CPPFLAGS)
156 tests_basic_LDADD = ${top_builddir}/libmoonshot/libmoonshot.la $(moonshot_LIBS)
160 "${UPDATE_MIME_DATABASE}" $(datadir)/mime
161 "${UPDATE_DESKTOP_DATABASE}" $(datadir)/applications
166 ## A couple of Windows-specific targets:
168 ## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
169 ## in c:/build prefix; and ImageMagick installed in c:/tools/ImageMagick. This
170 ## pulls in the icons required by moonshot and converts svg's to png's (we have
171 ## no svg support built in to Windows Gtk+ right now).
175 cp c:/build/share/icons/gnome/48x48/status/avatar-default.png share/icons
176 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
177 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
180 ## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
181 ## installed in its default path. Note that this requires at least .NET
182 ## runtime with service packs 1 and 2. The installer picks up files from
183 ## the build prefix and mingw dir; you must change these if you have them
184 ## in different locations I'm afraid.
186 installer: moonshot.msi
188 moonshot.msi: windows/app.wxs windows/config.wxi $(bin_PROGRAMS)
190 "${WIX_LIGHT}" -b c:/build -b c:/tools/mingw -o moonshot.msi app.wixobj