Mercurial > minori
annotate dep/animone/Makefile.am @ 266:1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
apparently I broke these, and even now the x11 code *still* doesn't want
to work correctly (at least on FreeBSD). half of the PID response codes
are just 0 or the PID for the X server itself... wtf?
maybe dwm just doesn't support the XRes extension, or I'm just stupid.
i don't know.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Thu, 11 Apr 2024 22:05:41 -0400 |
parents | 862d0d8619f6 |
children | ab7ff259b4ca |
rev | line source |
---|---|
258 | 1 lib_LTLIBRARIES = libanimone.la |
2 | |
3 include_HEADERS = \ | |
4 include/animone.h | |
5 | |
6 animiadir = $(includedir)/animone | |
7 nobase_animia_HEADERS = \ | |
8 include/animone/media.h \ | |
9 include/animone/player.h \ | |
10 include/animone/types.h | |
11 | |
12 noinst_HEADERS = \ | |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
13 include/animone/fd/bsd.h \ |
258 | 14 include/animone/fd/proc.h \ |
15 include/animone/fd/win32.h \ | |
16 include/animone/fd/xnu.h \ | |
17 include/animone/util/osx.h \ | |
18 include/animone/util/win32.h \ | |
19 include/animone/win/quartz.h \ | |
20 include/animone/win/win32.h \ | |
21 include/animone/win/x11.h \ | |
22 include/animone/fd.h \ | |
23 include/animone/strategies.h \ | |
24 include/animone/util.h \ | |
25 include/animone/win.h | |
26 | |
27 if BUILD_WIN | |
28 files_win = src/fd/win32.cc src/win/win32.cc src/util/win32.cc | |
29 libs_win = -lole32 -luuid | |
30 endif | |
31 | |
32 if BUILD_OSX | |
33 files_osx = src/fd/xnu.cc src/win/quartz.cc src/util/osx.cc | |
34 libs_osx = -lobjc | |
35 ldflags_osx = -framework Foundation -framework CoreGraphics -framework ApplicationServices | |
36 endif | |
37 | |
38 if BUILD_LINUX | |
39 files_linux = src/fd/proc.cc | |
40 endif | |
41 | |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
42 # BSD stuff |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
43 if BUILD_BSD |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
44 |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
45 files_bsd = src/fd/bsd.cc |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
46 |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
47 endif |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
48 |
258 | 49 if BUILD_LIBUTIL |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
50 |
258 | 51 libs_libutil = -lutil |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
52 |
258 | 53 endif |
54 | |
55 if BUILD_LIBKVM | |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
56 |
258 | 57 libs_libkvm = -lkvm |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
58 |
258 | 59 endif |
60 | |
61 if BUILD_XCB | |
62 files_x11 = src/win/x11.cc | |
63 cflags_x11 = $(XCB_CFLAGS) | |
64 libs_x11 = $(XCB_LIBS) | |
65 endif | |
66 | |
67 EXTRA_DIST = \ | |
68 $(top_srcdir)/data/players.anisthesia | |
69 | |
70 libanimone_la_SOURCES = \ | |
71 src/animone.cc \ | |
72 src/fd.cc \ | |
73 src/player.cc \ | |
74 src/strategist.cc \ | |
75 src/util.cc \ | |
76 src/win.cc \ | |
77 $(files_win) \ | |
78 $(files_osx) \ | |
79 $(files_linux) \ | |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
80 $(files_bsd) \ |
258 | 81 $(files_x11) \ |
82 $(files_wayland) | |
83 | |
84 libanimone_la_CPPFLAGS = -I$(top_srcdir)/include $(DEFS) | |
85 | |
86 libanimone_la_CXXFLAGS = -std=c++17 $(cflags_osx) $(cflags_x11) $(cflags_wayland) | |
87 libanimone_la_LDFLAGS = -version-info 0:0:0 $(ldflags_osx) | |
88 | |
89 libanimone_la_LIBADD = $(libs_win) $(libs_wayland) $(libs_x11) $(libs_osx) $(libs_libutil) $(libs_libkvm) | |
90 | |
91 ACLOCAL_AMFLAGS = -I m4 |