view dep/animone/Makefile.am @ 342:adb79bdde329

dep/animone: fix tons of issues for example, the window ID stuff was just... completely wrong. since we're supporting multiple different window systems, it *has* to be a union rather than just a single integer type. HWND is also not a DWORD, it's a pointer(!), so now it's stored as a std::uintptr_t. (this probably breaks things)
author Paper <paper@paper.us.eu.org>
date Thu, 20 Jun 2024 03:03:05 -0400
parents 74e2365326c6
children
line wrap: on
line source

lib_LTLIBRARIES = libanimone.la

include_HEADERS = \
	include/animone.h

animiadir = $(includedir)/animone
nobase_animia_HEADERS = \
	include/animone/media.h \
	include/animone/player.h \
	include/animone/types.h

noinst_HEADERS = \
	include/animone/a11y/win32.h \
	include/animone/fd/freebsd.h \
	include/animone/fd/openbsd.h \
	include/animone/fd/netbsd.h \
	include/animone/fd/proc.h \
	include/animone/fd/win32.h \
	include/animone/fd/xnu.h \
	include/animone/util/win32.h \
	include/animone/win/quartz.h \
	include/animone/win/win32.h \
	include/animone/win/x11.h \
	include/animone/a11y.h \
	include/animone/fd.h \
	include/animone/strategies.h \
	include/animone/util.h \
	include/animone/win.h

if BUILD_WIN
files_win = src/a11y/win32.cc src/fd/win32.cc src/win/win32.cc src/util/win32.cc
libs_win = -lole32 -loleaut32 -luuid
endif

if BUILD_OSX
files_osx = src/fd/xnu.cc src/win/quartz.cc
libs_osx = -lobjc
ldflags_osx = -framework Foundation -framework CoreGraphics -framework ApplicationServices
endif

if BUILD_LINUX
files_linux = src/fd/proc.cc
endif

if BUILD_FREEBSD

files_freebsd = src/fd/freebsd.cc
libs_freebsd = -lutil

endif

if BUILD_OPENBSD

files_openbsd = src/fd/openbsd.cc
libs_openbsd = -lkvm

endif

if BUILD_XCB
files_x11 = src/win/x11.cc
cflags_x11 = $(XCB_CFLAGS)
libs_x11 = $(XCB_LIBS)
endif

EXTRA_DIST = \
	$(top_srcdir)/data/players.anisthesia

libanimone_la_SOURCES = \
	src/animone.cc \
	src/a11y.cc \
	src/fd.cc \
	src/player.cc \
	src/strategist.cc \
	src/util.cc \
	src/win.cc \
	$(files_win) \
	$(files_osx) \
	$(files_linux) \
	$(files_freebsd) \
	$(files_openbsd) \
	$(files_x11)

libanimone_la_CPPFLAGS = -I$(top_srcdir)/include $(DEFS)

libanimone_la_CXXFLAGS = -std=c++17 $(cflags_osx) $(cflags_x11) $(cflags_wayland)
libanimone_la_LDFLAGS = -no-undefined -version-info 0:0:0 $(ldflags_osx)

libanimone_la_LIBADD = $(libs_win) $(libs_wayland) $(libs_x11) $(libs_osx) $(libs_freebsd) $(libs_openbsd)

ACLOCAL_AMFLAGS = -I m4