Skip to content

Commit 5a580b8

Browse files
committed
screw this, you're building luabind from source
1 parent f950faf commit 5a580b8

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

external/sources/luabind-0.7.1/meson.build

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,12 @@ elif cxx.get_argument_syntax() == 'msvc'
2020
cpp_options = ['cpp_std=vc++20']
2121
endif
2222

23-
if not get_option('use_prebuilt_libraries') or host_machine.system() in ['darwin', 'linux']
24-
luabind = static_library('luabind071', luabind_src, dependencies: luabind_dependencies, include_directories:luabind_include, cpp_args:cpp_args+ luabind_args, override_options: ['warning_level=0']+ cpp_options)
25-
else
26-
luabind = []
27-
if get_option('debug')
28-
if get_option('debug_type') == 'release'
29-
deps = cxx.find_library('luabind-debug-release', dirs: meson.current_source_dir()/'_Bin')
30-
else
31-
deps = cxx.find_library('luabind-debug' , dirs: meson.current_source_dir()/'_Bin')
32-
endif
33-
else
34-
deps = cxx.find_library('luabind-release', dirs: meson.current_source_dir()/'_Bin')
35-
endif
23+
if !get_option(debug) or get_option('debug_type') == release
24+
lubaind_args += ['-DLUABIND_NO_ERROR_CHECKING=1']
3625
endif
3726

27+
luabind = static_library('luabind071', luabind_src, dependencies: luabind_dependencies, include_directories:luabind_include, cpp_args:cpp_args+ luabind_args, override_options: ['warning_level=0']+ cpp_options)
28+
3829
luabind_dep = declare_dependency(link_with: luabind, dependencies: deps, include_directories: luabind_include, compile_args: luabind_args)
3930

4031
meson.override_dependency('luabind', luabind_dep)

0 commit comments

Comments
 (0)