segatools2/meson.build

55 lines
1.1 KiB
Meson
Raw Normal View History

2018-11-23 23:16:24 +00:00
project('segatools', 'c', version: '0.1.0')
2018-10-08 02:01:00 +00:00
add_project_arguments(
'-DCOBJMACROS',
'-DDIRECTINPUT_VERSION=0x0800',
2018-11-23 23:24:41 +00:00
'-DWIN32_LEAN_AND_MEAN',
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7',
2018-10-08 02:01:00 +00:00
language: 'c',
)
2018-11-23 23:24:41 +00:00
# Use get_argument_syntax() instead once Meson 0.49.0 releases
if meson.get_compiler('c').get_id() != 'msvc'
add_project_arguments(
'-ffunction-sections',
'-fdata-sections',
language: 'c',
)
add_project_link_arguments(
'-Wl,--exclude-all-symbols',
'-Wl,--gc-sections',
'-static-libgcc',
language: 'c',
)
endif
2018-10-08 02:01:00 +00:00
2019-03-04 01:02:35 +00:00
cc = meson.get_compiler('c')
dinput8_lib = cc.find_library('dinput8')
dxguid_lib = cc.find_library('dxguid')
2019-03-04 01:02:35 +00:00
xinput_lib = cc.find_library('xinput')
2018-10-08 02:01:00 +00:00
inc = include_directories('.')
capnhook = subproject('capnhook')
2018-11-07 21:37:23 +00:00
subdir('amex')
2018-11-08 19:43:07 +00:00
subdir('board')
subdir('hooklib')
2018-11-08 19:17:06 +00:00
subdir('jvs')
subdir('platform')
2018-11-07 21:37:23 +00:00
subdir('util')
2018-11-08 21:02:03 +00:00
subdir('aimeio')
2019-05-03 02:12:06 +00:00
subdir('chuniio')
2019-05-03 18:47:09 +00:00
subdir('divaio')
2019-05-04 00:36:23 +00:00
subdir('idzio')
2019-08-30 22:49:55 +00:00
subdir('mu3io')
2019-05-03 02:12:06 +00:00
subdir('cardhook')
2018-11-08 21:04:50 +00:00
subdir('chunihook')
subdir('divahook')
subdir('idzhook')
2018-11-08 21:02:03 +00:00
subdir('minihook')
2019-08-30 23:06:32 +00:00
subdir('mu3hook')
subdir('zinput')