mkxp-z/binding/meson.build

59 lines
1.5 KiB
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')
binding_dependencies = []
if ver.version_compare('>1.8') == true
2019-07-31 08:47:44 -04:00
binding_dependencies += dependency('ruby-' + ver)
2019-07-30 02:13:36 -04:00
else
lib = get_option('ruby_lib')
2019-07-31 10:53:46 -04:00
binding_dependencies += compiler.find_library(lib)
2019-07-31 08:47:44 -04:00
if host_system == 'windows'
if lib.endswith('-static')
2019-07-31 10:53:46 -04:00
binding_dependencies += compiler.find_library('wsock32')
endif
2019-07-31 08:47:44 -04:00
else
2019-07-31 10:53:46 -04:00
binding_dependencies += compiler.find_library('dl')
endif
2019-07-30 02:13:36 -04:00
add_project_arguments('-DOLD_RUBY', language: 'cpp')
endif
2019-07-29 07:56:45 -04:00
2019-07-31 15:33:02 -04:00
if get_option('fix_essentials') == true
add_project_arguments('-DUSE_ESSENTIALS_FIXES', language: 'cpp')
endif
2019-07-29 07:56:45 -04:00
binding_headers = files(
'binding-util.h',
'binding-types.h',
'serializable-binding.h',
'disposable-binding.h',
'sceneelement-binding.h',
'viewportelement-binding.h',
'flashable-binding.h',
)
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
)]
if ver.version_compare('<=1.8') == true
binding_source += files('minidl-binding.cpp')
endif
2019-07-31 07:04:13 -04:00
bindings = [binding_headers, binding_source]