mkxp-z/binding/meson.build

49 lines
1.2 KiB
Meson
Raw Normal View History

2019-07-29 07:56:45 -04:00
2020-02-25 05:35:30 -05:00
if get_option('mri_includes') == ''
ver = get_option('mri_version')
if ver.version_compare('<=1.9')
global_args += '-DLEGACY_RUBY'
2020-02-26 11:05:46 -05:00
endif
2020-02-25 05:35:30 -05:00
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'))
2019-07-30 02:13:36 -04:00
endif
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-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
if miniffi == true
binding_source += files('miniffi-binding.cpp')
endif
2019-12-17 06:22:01 -05:00
global_sources += binding_source