2023-01-03 05:35:53 +01:00
|
|
|
project(
|
|
|
|
'bananatools',
|
|
|
|
'c',
|
|
|
|
version: '0.1.0',
|
|
|
|
default_options: [
|
|
|
|
'werror=true',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
add_project_arguments(
|
|
|
|
'-DCOBJMACROS',
|
|
|
|
'-DDIRECTINPUT_VERSION=0x0800',
|
|
|
|
'-DWIN32_LEAN_AND_MEAN',
|
|
|
|
'-D_WIN32_WINNT=_WIN32_WINNT_WIN7',
|
|
|
|
'-DMINGW_HAS_SECURE_API=1',
|
|
|
|
'-Wno-unused',
|
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
|
|
|
|
if meson.get_compiler('c').get_id() != 'msvc'
|
|
|
|
add_project_arguments(
|
|
|
|
'-ffunction-sections',
|
|
|
|
'-fdata-sections',
|
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
|
|
|
|
add_project_link_arguments(
|
|
|
|
'-Wl,--enable-stdcall-fixup',
|
|
|
|
'-Wl,--exclude-all-symbols',
|
|
|
|
'-Wl,--gc-sections',
|
|
|
|
'-static-libgcc',
|
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
shlwapi_lib = cc.find_library('shlwapi')
|
|
|
|
dinput8_lib = cc.find_library('dinput8')
|
|
|
|
dxguid_lib = cc.find_library('dxguid')
|
|
|
|
xinput_lib = cc.find_library('xinput')
|
2023-01-07 06:52:08 +01:00
|
|
|
cfgmgr32_lib = cc.find_library('cfgmgr32')
|
2023-01-03 05:35:53 +01:00
|
|
|
|
|
|
|
inc = include_directories('.')
|
|
|
|
capnhook = subproject('capnhook')
|
|
|
|
|
2023-09-18 10:02:23 +02:00
|
|
|
subdir('iccard')
|
2023-01-03 05:35:53 +01:00
|
|
|
subdir('hooklib')
|
|
|
|
subdir('util')
|
2023-09-18 10:02:23 +02:00
|
|
|
subdir('aimeio')
|
2023-01-03 05:35:53 +01:00
|
|
|
subdir('gfxhook')
|
|
|
|
subdir('jvs')
|
|
|
|
subdir('board')
|
|
|
|
subdir('platform')
|
|
|
|
subdir('amcus')
|
|
|
|
|
|
|
|
|
|
|
|
subdir('ferrumio')
|
|
|
|
subdir('taikoio')
|
|
|
|
|
|
|
|
subdir('taikohook')
|
|
|
|
subdir('ferrumhook')
|