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