diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2016-11-17 17:36:02 +0100 |
---|---|---|
committer | Jakub Steiner <jimmac@gmail.com> | 2016-12-05 18:55:57 +0100 |
commit | fa1a4b9181111c3e4d0111ee87f8b4288a1f1ecb (patch) | |
tree | a0b293efe28c144d914b118e5d7964a2c0af957d /Makefile.am | |
parent | 4bd1d84ba07ccbfd6046c7194eb489b6a7ae1bfd (diff) | |
download | adwaita-icon-theme-fa1a4b9181111c3e4d0111ee87f8b4288a1f1ecb.tar.gz |
windows: Add Windows cursors and install them instead of X cursors on Windows
The new cursors where created using
./renderpngs.py -r -s -t -o -m 32 -a -c -i -n 4 adwaita.svg
./pngs/make-w32.sh
Remove the --enable-w32-cursors switch and instead only install
Windows cursors on Windows and X cursors everywhere else.
This makes cursors work in the gtk3-demo "Cursors" demo and
when dragging things.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 857853e65..9f39d7cb2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,7 +5,15 @@ SUBDIRS = src build ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} cursordir = $(datadir)/icons/Adwaita/cursors -cursor_DATA = $(wildcard $(srcdir)/Adwaita/cursors/*) + +# Install .cur/.ani on Windows and X cursors everywhere else +win_cursors = $(wildcard $(srcdir)/Adwaita/cursors/*.cur) $(wildcard $(srcdir)/Adwaita/cursors/*.ani) +if PLATFORM_WIN32 +cursor_DATA = $(win_cursors) +else +cursor_DATA = $(filter-out $(win_cursors), $(wildcard $(srcdir)/Adwaita/cursors/*)) +endif + if ENABLE_L_XL_VARIANTS cursorldir = $(datadir)/icons/Adwaita-Large/cursors cursorl_DATA = $(wildcard $(srcdir)/Adwaita-Large/cursors/*) @@ -108,7 +116,7 @@ install-data-local: install-data-hook: cd $(DESTDIR)$(cursordir) && \ - if test "x$(enable_w32_cursors)" = "xyes"; \ + if test "x$(platform_win32)" = "xyes"; \ then \ cur=.cur && \ ani=.ani; \ |