mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-29 19:44:49 +02:00
48 lines
1.3 KiB
Meson
48 lines
1.3 KiB
Meson
|
|
if get_option('mri_includes') == ''
|
|
ver = get_option('mri_version')
|
|
if ver.version_compare('<=1.8')
|
|
global_args += '-DMKXPZ_LEGACY_RUBY'
|
|
elif ver.version_compare('>=3.0') and compilers['cpp'].get_id() == 'clang'
|
|
global_args += '-fdeclspec'
|
|
endif
|
|
global_dependencies += dependency('ruby-' + ver)
|
|
else
|
|
global_args += ('-I' + get_option('mri_includes'))
|
|
global_dependencies += compilers['cpp'].find_library(get_option('mri_library'), dirs: get_option('mri_libpath'))
|
|
endif
|
|
|
|
global_include_dirs += include_directories('.')
|
|
|
|
binding_source = [files(
|
|
'binding-mri.cpp',
|
|
'binding-util.cpp',
|
|
'table-binding.cpp',
|
|
'etc-binding.cpp',
|
|
'bitmap-binding.cpp',
|
|
'font-binding.cpp',
|
|
'graphics-binding.cpp',
|
|
'input-binding.cpp',
|
|
'sprite-binding.cpp',
|
|
'viewport-binding.cpp',
|
|
'plane-binding.cpp',
|
|
'window-binding.cpp',
|
|
'tilemap-binding.cpp',
|
|
'audio-binding.cpp',
|
|
'module_rpg.cpp',
|
|
'filesystem-binding.cpp',
|
|
'windowvx-binding.cpp',
|
|
'tilemapvx-binding.cpp',
|
|
'http-binding.cpp'
|
|
)]
|
|
|
|
if steamworks == true
|
|
binding_source += files('cusl-binding.cpp')
|
|
endif
|
|
|
|
if miniffi == true
|
|
binding_source += files('miniffi-binding.cpp')
|
|
binding_source += files('miniffi.cpp')
|
|
endif
|
|
|
|
global_sources += binding_source
|