1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2025-01-10 15:51:47 +01:00
segatools-dniel97/meson.build

89 lines
1.7 KiB
Meson
Raw Normal View History

project(
'segatools',
'c',
version: '0.1.0',
default_options: [
'werror=true',
],
)
2018-10-07 22:01:00 -04:00
add_project_arguments(
'-DCOBJMACROS',
'-DDIRECTINPUT_VERSION=0x0800',
2018-11-23 18:24:41 -05:00
'-DWIN32_LEAN_AND_MEAN',
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7',
'-DMINGW_HAS_SECURE_API=1',
2023-03-19 13:29:08 -04:00
'-Wno-unused',
2018-10-07 22:01:00 -04:00
language: 'c',
)
cc = meson.get_compiler('c')
if cc.get_id() != 'msvc'
2018-11-23 18:24:41 -05:00
add_project_arguments(
'-ffunction-sections',
'-fdata-sections',
'-flto', # Enable Link-Time Optimization
2018-11-23 18:24:41 -05:00
language: 'c',
)
add_project_link_arguments(
'-Wl,--enable-stdcall-fixup',
2018-11-23 18:24:41 -05:00
'-Wl,--exclude-all-symbols',
'-Wl,--gc-sections',
'-static-libgcc',
'-flto', # Enable Link-Time Optimization
'-Wl,-s', # Strip debug symbols
2018-11-23 18:24:41 -05:00
language: 'c',
)
endif
2018-10-07 22:01:00 -04:00
shlwapi_lib = cc.find_library('shlwapi')
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')
pathcch_lib = cc.find_library('pathcch')
2019-03-03 20:02:35 -05:00
2018-10-07 22:01:00 -04:00
inc = include_directories('.')
capnhook = subproject('capnhook')
2018-11-07 16:37:23 -05:00
subdir('amex')
2019-10-19 15:48:29 -04:00
subdir('iccard')
2018-11-08 14:43:07 -05:00
subdir('board')
subdir('hooklib')
2018-11-08 14:17:06 -05:00
subdir('jvs')
subdir('platform')
2018-11-07 16:37:23 -05:00
subdir('util')
2018-11-08 16:02:03 -05:00
subdir('gfxhook')
subdir('unityhook')
subdir('aimeio')
2019-05-02 22:12:06 -04:00
subdir('chuniio')
2019-05-03 14:47:09 -04:00
subdir('divaio')
2022-12-10 22:01:52 -05:00
subdir('carolio')
2019-05-03 20:36:23 -04: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-30 18:49:55 -04:00
subdir('mu3io')
2023-07-14 01:00:28 +02:00
subdir('mai2io')
subdir('cmio')
2021-12-21 00:02:17 -05:00
subdir('mercuryio')
2022-12-11 17:01:51 -05:00
subdir('cxbio')
subdir('fgoio')
2019-05-02 22:12:06 -04:00
2018-11-08 16:04:50 -05:00
subdir('chunihook')
subdir('divahook')
2022-12-10 22:01:52 -05:00
subdir('carolhook')
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 16:02:03 -05:00
subdir('minihook')
subdir('chusanhook')
2019-08-30 19:06:32 -04:00
subdir('mu3hook')
2023-07-14 01:00:28 +02:00
subdir('mai2hook')
subdir('cmhook')
2021-12-21 00:02:17 -05:00
subdir('mercuryhook')
2022-12-11 17:01:51 -05:00
subdir('cxbhook')
subdir('fgohook')