2018-05-15 02:27:25 +02:00
|
|
|
|
2019-02-08 19:59:36 +01:00
|
|
|
util_deps = []
|
|
|
|
|
2018-05-15 02:27:25 +02:00
|
|
|
util_src = files(
|
|
|
|
'assert.c',
|
|
|
|
'crap.c',
|
|
|
|
'env.c',
|
2019-08-25 01:28:46 +02:00
|
|
|
'fbmgr.c',
|
2018-07-04 10:36:16 +02:00
|
|
|
'fbpair.c',
|
2019-08-25 01:28:46 +02:00
|
|
|
'fbutil.c',
|
2018-05-15 02:27:25 +02:00
|
|
|
'geometry.c',
|
|
|
|
'graphics.c',
|
|
|
|
'io.c',
|
|
|
|
'kvparser.c',
|
|
|
|
'miscmath.c',
|
|
|
|
'pngcruft.c',
|
2018-06-29 23:36:51 +02:00
|
|
|
'rectpack.c',
|
2024-06-16 21:50:48 +02:00
|
|
|
'sort_r.c',
|
2020-08-15 13:51:12 +02:00
|
|
|
'strbuf.c',
|
2018-05-15 02:27:25 +02:00
|
|
|
'stringops.c',
|
|
|
|
)
|
|
|
|
|
2019-01-25 01:02:56 +01:00
|
|
|
if is_developer_build
|
2018-05-15 02:27:25 +02:00
|
|
|
util_src += files('debug.c')
|
|
|
|
endif
|
|
|
|
|
2022-12-28 23:15:55 +01:00
|
|
|
if dep_crypto.found()
|
2019-02-08 19:59:36 +01:00
|
|
|
util_src += files('sha256_openssl.c')
|
|
|
|
else
|
2019-03-12 00:56:30 +01:00
|
|
|
util_src += files('sha256.c')
|
2019-02-08 19:59:36 +01:00
|
|
|
endif
|
|
|
|
|
2018-05-15 02:27:25 +02:00
|
|
|
if host_machine.system() == 'windows'
|
2018-05-28 10:10:41 +02:00
|
|
|
# NOTE: Even if we ever build this with something like Midipix, we'd
|
|
|
|
# probably still want to use the winapi implementation of this here.
|
|
|
|
util_src += files('platform_win32.c')
|
|
|
|
else
|
|
|
|
# No have_posix check, it might just work.
|
|
|
|
util_src += files('platform_posix.c')
|
2018-05-15 02:27:25 +02:00
|
|
|
endif
|
2020-11-19 00:12:51 +01:00
|
|
|
|
|
|
|
if dep_gamemode.found()
|
|
|
|
util_src += files('gamemode.c')
|
|
|
|
else
|
|
|
|
util_src += files('gamemode_stub.c')
|
|
|
|
endif
|