2018-11-23 18:16:24 -05:00
|
|
|
project('segatools', 'c', version: '0.1.0')
|
2018-10-07 22:01:00 -04:00
|
|
|
|
|
|
|
add_project_arguments(
|
|
|
|
'-DCOBJMACROS',
|
2019-05-04 19:13:43 -04:00
|
|
|
'-DDIRECTINPUT_VERSION=0x0800',
|
2018-11-23 18:24:41 -05:00
|
|
|
'-DWIN32_LEAN_AND_MEAN',
|
2019-03-03 17:56:24 -05:00
|
|
|
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7',
|
2019-12-22 21:42:04 +01:00
|
|
|
'-DMINGW_HAS_SECURE_API=1',
|
2018-10-07 22:01:00 -04:00
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
|
2018-11-23 18:24:41 -05: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-07 22:01:00 -04:00
|
|
|
|
2019-03-03 20:02:35 -05:00
|
|
|
cc = meson.get_compiler('c')
|
2019-12-22 22:38:37 +01:00
|
|
|
shlwapi_lib = cc.find_library('shlwapi')
|
2019-05-09 14:28:30 -04:00
|
|
|
dinput8_lib = cc.find_library('dinput8')
|
|
|
|
dxguid_lib = cc.find_library('dxguid')
|
2019-03-03 20:02:35 -05:00
|
|
|
xinput_lib = cc.find_library('xinput')
|
|
|
|
|
2018-10-07 22:01:00 -04:00
|
|
|
inc = include_directories('.')
|
|
|
|
capnhook = subproject('capnhook')
|
2018-11-07 16:37:23 -05:00
|
|
|
|
2019-03-04 17:22:38 -05:00
|
|
|
subdir('amex')
|
2019-10-19 15:48:29 -04:00
|
|
|
subdir('iccard')
|
2018-11-08 14:43:07 -05:00
|
|
|
subdir('board')
|
2019-05-14 11:15:20 -04:00
|
|
|
subdir('hooklib')
|
2018-11-08 14:17:06 -05:00
|
|
|
subdir('jvs')
|
2019-03-04 17:22:38 -05:00
|
|
|
subdir('platform')
|
2018-11-07 16:37:23 -05:00
|
|
|
subdir('util')
|
2018-11-08 16:02:03 -05:00
|
|
|
|
2019-02-25 21:56:45 -05:00
|
|
|
subdir('aimeio')
|
2019-05-02 22:12:06 -04:00
|
|
|
subdir('chuniio')
|
2019-05-03 14:47:09 -04:00
|
|
|
subdir('divaio')
|
2019-05-03 20:36:23 -04:00
|
|
|
subdir('idzio')
|
2019-08-30 18:49:55 -04:00
|
|
|
subdir('mu3io')
|
2019-05-02 22:12:06 -04:00
|
|
|
|
2018-11-08 16:04:50 -05:00
|
|
|
subdir('chunihook')
|
2019-03-16 11:57:17 -04:00
|
|
|
subdir('divahook')
|
2019-03-05 14:34:43 -05:00
|
|
|
subdir('idzhook')
|
2018-11-08 16:02:03 -05:00
|
|
|
subdir('minihook')
|
2019-08-30 19:06:32 -04:00
|
|
|
subdir('mu3hook')
|