mkxp-z/binding/meson.build

41 lines
1,018 B
Meson
Raw Normal View History

2019-07-29 07:56:45 -04:00
2019-07-30 02:13:36 -04:00
ver = get_option('mri_version')
2019-12-17 06:22:01 -05:00
if ver.version_compare('>1.8') == false
add_project_arguments('-DOLD_RUBY', language: ['cpp','objc','objcpp'])
2019-07-30 02:13:36 -04:00
endif
2019-12-17 06:22:01 -05:00
global_dependencies += dependency('ruby-' + ver)
2019-07-29 07:56:45 -04:00
if get_option('no_preload_scripts') == true
add_project_arguments('-DNO_PRELOAD_SCRIPTS', language: ['cpp','objc','objcpp'])
endif
global_include_dirs += include_directories('.')
2019-07-29 07:56:45 -04:00
2019-07-31 08:47:44 -04:00
binding_source = [files(
2019-07-29 07:56:45 -04:00
'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',
2019-09-14 03:03:41 -04:00
'miniffi-binding.cpp'
2019-07-31 08:47:44 -04:00
)]
2019-09-04 13:07:38 -04:00
if discord == true
binding_source += files('discord-binding.cpp')
endif
2019-12-17 06:22:01 -05:00
global_sources += binding_source