2022-01-05 11:07:29 +01:00
|
|
|
project(
|
|
|
|
'segatools',
|
|
|
|
'c',
|
|
|
|
version: '0.1.0',
|
|
|
|
default_options: [
|
|
|
|
'werror=true',
|
|
|
|
],
|
|
|
|
)
|
2018-10-08 04:01:00 +02:00
|
|
|
|
|
|
|
add_project_arguments(
|
|
|
|
'-DCOBJMACROS',
|
2019-05-05 01:13:43 +02:00
|
|
|
'-DDIRECTINPUT_VERSION=0x0800',
|
2018-11-24 00:24:41 +01:00
|
|
|
'-DWIN32_LEAN_AND_MEAN',
|
2019-03-03 23:56:24 +01:00
|
|
|
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7',
|
2019-12-22 21:42:04 +01:00
|
|
|
'-DMINGW_HAS_SECURE_API=1',
|
2023-03-19 18:29:08 +01:00
|
|
|
'-Wno-unused',
|
2024-05-12 19:36:08 +02:00
|
|
|
# '-ggdb', # Add debug information
|
2018-10-08 04:01:00 +02:00
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
|
2023-12-25 15:55:43 +01:00
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
|
|
|
|
if cc.get_id() != 'msvc'
|
2018-11-24 00:24:41 +01:00
|
|
|
add_project_arguments(
|
|
|
|
'-ffunction-sections',
|
|
|
|
'-fdata-sections',
|
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
|
|
|
|
add_project_link_arguments(
|
2021-06-16 22:33:27 +02:00
|
|
|
'-Wl,--enable-stdcall-fixup',
|
2018-11-24 00:24:41 +01:00
|
|
|
'-Wl,--exclude-all-symbols',
|
|
|
|
'-Wl,--gc-sections',
|
|
|
|
'-static-libgcc',
|
2024-05-12 19:36:08 +02:00
|
|
|
# '-ggdb', # Add debug information
|
|
|
|
'-lcrypt32', # Bcrypt needed for prashook
|
|
|
|
# '-Wl,-s', # Strip debug symbols
|
2018-11-24 00:24:41 +01:00
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
endif
|
2018-10-08 04:01:00 +02:00
|
|
|
|
2019-12-22 22:38:37 +01:00
|
|
|
shlwapi_lib = cc.find_library('shlwapi')
|
2019-05-09 20:28:30 +02:00
|
|
|
dinput8_lib = cc.find_library('dinput8')
|
|
|
|
dxguid_lib = cc.find_library('dxguid')
|
2019-03-04 02:02:35 +01:00
|
|
|
xinput_lib = cc.find_library('xinput')
|
2024-04-15 21:30:28 +02:00
|
|
|
pathcch_lib = cc.find_library('pathcch')
|
2019-03-04 02:02:35 +01:00
|
|
|
|
2018-10-08 04:01:00 +02:00
|
|
|
inc = include_directories('.')
|
|
|
|
capnhook = subproject('capnhook')
|
2018-11-07 22:37:23 +01:00
|
|
|
|
2019-03-04 23:22:38 +01:00
|
|
|
subdir('amex')
|
2019-10-19 21:48:29 +02:00
|
|
|
subdir('iccard')
|
2018-11-08 20:43:07 +01:00
|
|
|
subdir('board')
|
2019-05-14 17:15:20 +02:00
|
|
|
subdir('hooklib')
|
2018-11-08 20:17:06 +01:00
|
|
|
subdir('jvs')
|
2019-03-04 23:22:38 +01:00
|
|
|
subdir('platform')
|
2018-11-07 22:37:23 +01:00
|
|
|
subdir('util')
|
2018-11-08 22:02:03 +01:00
|
|
|
|
2021-11-03 18:14:24 +01:00
|
|
|
subdir('gfxhook')
|
2024-04-15 21:30:28 +02:00
|
|
|
subdir('unityhook')
|
2021-11-03 18:14:24 +01:00
|
|
|
|
2019-02-26 03:56:45 +01:00
|
|
|
subdir('aimeio')
|
2019-05-03 04:12:06 +02:00
|
|
|
subdir('chuniio')
|
2019-05-03 20:47:09 +02:00
|
|
|
subdir('divaio')
|
2022-12-11 04:01:52 +01:00
|
|
|
subdir('carolio')
|
2019-05-04 02:36:23 +02:00
|
|
|
subdir('idzio')
|
2023-04-23 16:13:51 +02:00
|
|
|
subdir('idacio')
|
2023-07-14 00:52:50 +02:00
|
|
|
subdir('swdcio')
|
2019-08-31 00:49:55 +02:00
|
|
|
subdir('mu3io')
|
2023-07-14 01:00:28 +02:00
|
|
|
subdir('mai2io')
|
2023-07-14 00:59:10 +02:00
|
|
|
subdir('cmio')
|
2021-12-21 06:02:17 +01:00
|
|
|
subdir('mercuryio')
|
2022-12-11 23:01:51 +01:00
|
|
|
subdir('cxbio')
|
2023-11-11 22:47:47 +01:00
|
|
|
subdir('fgoio')
|
2019-05-03 04:12:06 +02:00
|
|
|
|
2018-11-08 22:04:50 +01:00
|
|
|
subdir('chunihook')
|
2019-03-16 16:57:17 +01:00
|
|
|
subdir('divahook')
|
2022-12-11 04:01:52 +01:00
|
|
|
subdir('carolhook')
|
2019-03-05 20:34:43 +01:00
|
|
|
subdir('idzhook')
|
2023-04-23 16:13:51 +02:00
|
|
|
subdir('idachook')
|
2023-07-14 00:52:50 +02:00
|
|
|
subdir('swdchook')
|
2018-11-08 22:02:03 +01:00
|
|
|
subdir('minihook')
|
2023-07-14 00:58:02 +02:00
|
|
|
subdir('chusanhook')
|
2019-08-31 01:06:32 +02:00
|
|
|
subdir('mu3hook')
|
2023-07-14 01:00:28 +02:00
|
|
|
subdir('mai2hook')
|
2023-07-14 00:59:10 +02:00
|
|
|
subdir('cmhook')
|
2021-12-21 06:02:17 +01:00
|
|
|
subdir('mercuryhook')
|
2022-12-11 23:01:51 +01:00
|
|
|
subdir('cxbhook')
|
2023-11-11 22:47:47 +01:00
|
|
|
subdir('fgohook')
|