1 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
5 bin_PROGRAMS = src/moonshot
11 -DLOCALEDIR=\""$(localedir)"\" \
18 src_moonshot_SOURCES = \
19 src/moonshot-id.vala \
20 src/moonshot-add-dialog.vala \
21 src/moonshot-idcard-widget.vala \
22 src/moonshot-custom-vbox.vala \
23 src/moonshot-identities-manager.vala \
24 src/moonshot-identity-request.vala \
25 src/moonshot-server.vala \
26 src/moonshot-window.vala \
27 src/moonshot-password-dialog.vala \
28 src/moonshot-utils.vala
30 src_moonshot_LDADD = \
34 src_moonshot_CFLAGS = -mwindows
35 AM_VALAFLAGS += --define=OS_WIN32
46 src_moonshot_SOURCES += \
47 src/moonshot-msrpc.vapi
49 nodist_src_moonshot_SOURCES = \
50 src/moonshot-msrpc_s.c
52 bin_PROGRAMS += src/msrpc-client
54 nodist_src_msrpc_client_SOURCES = \
55 src/msrpc-client.vala \
56 src/moonshot-msrpc.vapi \
57 src/moonshot-msrpc_c.c
59 src_msrpc_client_LDADD = \
62 BUILT_SOURCES = src/moonshot-msrpc.h src/moonshot-msrpc_s.c src/moonshot-msrpc_c.c
64 DISTCLEANFILES = ${BUILT_SOURCES}
66 src/moonshot-msrpc.h: src/moonshot-msrpc.idl src/moonshot-msrpc.acf
67 ${AM_V_GEN} ${MIDL_WRAPPER} -o src -m "${MIDL}" $^
69 src/moonshot-msrpc_s.c: src/moonshot-msrpc.h
76 dbusservicedir = $(datadir)/dbus-1/services
77 dbusservice_in_files = org.janet.Moonshot.service.in
78 dbusservice_DATA = $(dbusservice_in_files:.service.in=.service)
80 # Rule to make the service file with bindir expanded
81 $(dbusservice_DATA): $(dbusservice_in_files) Makefile
82 @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
88 bin_PROGRAMS += src/dbus-client
90 src_dbus_client_SOURCES = \
93 src_dbus_client_LDADD = \
96 CLEANFILES = $(dbusservice_DATA)
97 EXTRA_DIST = $(dbusservice_in_files)
102 bin_PROGRAMS += src/moonshot-webp
104 src_moonshot_webp_SOURCES = src/moonshot-webp-parser.vala src/moonshot-id.vala
105 src_moonshot_webp_LDADD = $(moonshot_LIBS)
120 moonshot_webp_CFLAGS = -mwindows
121 AM_VALAFLAGS += --define=OS_WIN32
126 ## A couple of Windows-specific targets:
128 ## 1. Icons. You must have gnome-icon-theme and gnome-icon-theme-symbolic installed
129 ## in c:/build prefix; and ImageMagick installed in c:/tools/ImageMagick. This
130 ## pulls in the icons required by moonshot and converts svg's to png's (we have
131 ## no svg support built in to Windows Gtk+ right now).
135 cp c:/build/share/icons/gnome/48x48/status/avatar-default.png share/icons
136 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-clear-symbolic.svg -size 13x13 share/icons/edit-clear-symbolic.png
137 "${IMAGEMAGICK_CONVERT}" -background none c:/build/share/icons/gnome/scalable/actions/edit-find-symbolic.svg -size 13x13 share/icons/edit-find-symbolic.png
140 ## 2. Installer. You must have the Windows Installer XML toolkit version 3.5
141 ## installed in its default path. Note that this requires at least .NET
142 ## runtime with service packs 1 and 2. The installer picks up files from
143 ## the build prefix and mingw dir; you must change these if you have them
144 ## in different locations I'm afraid.
146 installer: moonshot.msi
148 moonshot.msi: windows/app.wxs
150 "${WIX_LIGHT}" -b c:/build -b c:/tools/mingw -o moonshot.msi app.wixobj