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')
|
2020-02-26 12:44:37 -05:00
|
|
|
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
|
|
|
|
2019-08-20 13:22:07 -04:00
|
|
|
if get_option('no_preload_scripts') == true
|
2019-12-14 13:31:48 -05:00
|
|
|
add_project_arguments('-DNO_PRELOAD_SCRIPTS', language: ['cpp','objc','objcpp'])
|
2019-08-20 13:22:07 -04:00
|
|
|
endif
|
|
|
|
|
2019-12-14 13:31:48 -05:00
|
|
|
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',
|
2019-12-31 13:42:44 -05:00
|
|
|
'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
|
|
|
|
|
2019-12-31 13:42:44 -05:00
|
|
|
if miniffi == true
|
|
|
|
binding_source += files('miniffi-binding.cpp')
|
|
|
|
endif
|
|
|
|
|
2019-12-17 06:22:01 -05:00
|
|
|
global_sources += binding_source
|