2018-05-15 02:27:25 +02:00
|
|
|
|
|
|
|
util_src = files(
|
|
|
|
'assert.c',
|
|
|
|
'crap.c',
|
|
|
|
'env.c',
|
|
|
|
'geometry.c',
|
|
|
|
'graphics.c',
|
|
|
|
'io.c',
|
|
|
|
'kvparser.c',
|
|
|
|
'miscmath.c',
|
|
|
|
'pngcruft.c',
|
2018-06-29 23:36:51 +02:00
|
|
|
'rectpack.c',
|
2018-05-15 02:27:25 +02:00
|
|
|
'stringops.c',
|
|
|
|
)
|
|
|
|
|
|
|
|
sse42_src += files(
|
|
|
|
'sse42.c',
|
|
|
|
)
|
|
|
|
|
|
|
|
if is_debug_build
|
|
|
|
util_src += files('debug.c')
|
|
|
|
endif
|
|
|
|
|
|
|
|
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
|