Mercurial > minori
comparison dep/animia/CMakeLists.txt @ 138:28842a8d0c6b
dep/animia: huge refactor (again...)
but this time, it actually compiles! and it WORKS! (on win32... not sure about
other platforms...)
configuring players is still not supported: at some point I'll prune something
up...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 12 Nov 2023 04:53:19 -0500 |
parents | 69db40272acd |
children | 478f3b366199 |
comparison
equal
deleted
inserted
replaced
137:69db40272acd | 138:28842a8d0c6b |
---|---|
1 cmake_minimum_required(VERSION 3.9) | 1 cmake_minimum_required(VERSION 3.9) |
2 project(animia) | 2 project(animia) |
3 set(SRC_FILES | 3 set(SRC_FILES |
4 # any non-platform-specific files go here | 4 # any non-platform-specific files go here |
5 src/animia.cc | 5 src/animia.cc |
6 src/matroska.cc | |
7 src/player.cc | 6 src/player.cc |
8 src/util.cc | 7 src/util.cc |
8 src/strategist.cc | |
9 ) | 9 ) |
10 if(LINUX) | 10 if(LINUX) |
11 list(APPEND SRC_FILES | 11 list(APPEND SRC_FILES |
12 # linux | 12 # linux |
13 src/linux/fd.cc | 13 src/fd/linux.cc |
14 ) | 14 ) |
15 elseif(UNIX) # this won't run on Linux | 15 elseif(UNIX) # this won't run on Linux |
16 list(APPEND SRC_FILES | 16 list(APPEND SRC_FILES |
17 # bsd | 17 # bsd |
18 src/bsd/fd.cc | 18 src/fd/bsd.cc |
19 ) | 19 ) |
20 elseif(WIN32) | 20 elseif(WIN32) |
21 list(APPEND SRC_FILES | 21 list(APPEND SRC_FILES |
22 # win32 | 22 # win32 |
23 src/platform/win32.cc | 23 src/fd/win32.cc |
24 src/platform/win32/fd.cc | |
25 src/platform/win32/ui_auto.cc | |
26 src/platform/win32/util.cc | |
27 src/platform/win32/win.cc | |
28 ) | 24 ) |
29 endif() | 25 endif() |
30 add_library(animia SHARED ${SRC_FILES}) | 26 add_library(animia SHARED ${SRC_FILES}) |
31 set_target_properties(animia PROPERTIES | 27 set_target_properties(animia PROPERTIES |
32 PUBLIC_HEADER include/animia.h | 28 PUBLIC_HEADER include/animia.h |