Mercurial > minori
annotate dep/animone/Makefile.am @ 338:f63dfa309380
dep/animone: separate *BSD into separate files
they are wholly different operating systems with very different
kernels on the inside
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 19 Jun 2024 13:06:10 -0400 |
parents | ab7ff259b4ca |
children | 74e2365326c6 |
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 = \ | |
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
13 include/animone/fd/freebsd.h \ |
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
14 include/animone/fd/openbsd.h \ |
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
15 include/animone/fd/netbsd.h \ |
258 | 16 include/animone/fd/proc.h \ |
17 include/animone/fd/win32.h \ | |
18 include/animone/fd/xnu.h \ | |
19 include/animone/util/win32.h \ | |
20 include/animone/win/quartz.h \ | |
21 include/animone/win/win32.h \ | |
22 include/animone/win/x11.h \ | |
23 include/animone/fd.h \ | |
24 include/animone/strategies.h \ | |
25 include/animone/util.h \ | |
26 include/animone/win.h | |
27 | |
28 if BUILD_WIN | |
29 files_win = src/fd/win32.cc src/win/win32.cc src/util/win32.cc | |
30 libs_win = -lole32 -luuid | |
31 endif | |
32 | |
33 if BUILD_OSX | |
303
ab7ff259b4ca
dep/animone: remove old OS X files from makefile
Paper <paper@paper.us.eu.org>
parents:
266
diff
changeset
|
34 files_osx = src/fd/xnu.cc src/win/quartz.cc |
258 | 35 libs_osx = -lobjc |
36 ldflags_osx = -framework Foundation -framework CoreGraphics -framework ApplicationServices | |
37 endif | |
38 | |
39 if BUILD_LINUX | |
40 files_linux = src/fd/proc.cc | |
41 endif | |
42 | |
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
43 if BUILD_FREEBSD |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
44 |
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
45 files_freebsd = src/fd/freebsd.cc |
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
46 libs_freebsd = -lutil |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
47 |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
48 endif |
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
49 |
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
50 if BUILD_OPENBSD |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
51 |
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
52 files_openbsd = src/fd/openbsd.cc |
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
53 libs_openbsd = -lkvm |
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
54 |
258 | 55 endif |
56 | |
57 if BUILD_XCB | |
58 files_x11 = src/win/x11.cc | |
59 cflags_x11 = $(XCB_CFLAGS) | |
60 libs_x11 = $(XCB_LIBS) | |
61 endif | |
62 | |
63 EXTRA_DIST = \ | |
64 $(top_srcdir)/data/players.anisthesia | |
65 | |
66 libanimone_la_SOURCES = \ | |
67 src/animone.cc \ | |
68 src/fd.cc \ | |
69 src/player.cc \ | |
70 src/strategist.cc \ | |
71 src/util.cc \ | |
72 src/win.cc \ | |
73 $(files_win) \ | |
74 $(files_osx) \ | |
75 $(files_linux) \ | |
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
76 $(files_freebsd) \ |
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
77 $(files_openbsd) \ |
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
303
diff
changeset
|
78 $(files_x11) |
258 | 79 |
80 libanimone_la_CPPFLAGS = -I$(top_srcdir)/include $(DEFS) | |
81 | |
82 libanimone_la_CXXFLAGS = -std=c++17 $(cflags_osx) $(cflags_x11) $(cflags_wayland) | |
83 libanimone_la_LDFLAGS = -version-info 0:0:0 $(ldflags_osx) | |
84 | |
85 libanimone_la_LIBADD = $(libs_win) $(libs_wayland) $(libs_x11) $(libs_osx) $(libs_libutil) $(libs_libkvm) | |
86 | |
87 ACLOCAL_AMFLAGS = -I m4 |