suckl 2
This commit is contained in:
parent
57da656da5
commit
a06b940892
1 changed files with 12 additions and 6 deletions
18
meson.build
18
meson.build
|
@ -5,7 +5,7 @@ project(
|
||||||
default_options: [
|
default_options: [
|
||||||
'default_library=static',
|
'default_library=static',
|
||||||
'warning_level=everything',
|
'warning_level=everything',
|
||||||
'buildtype=release',
|
'buildtype=debugoptimized',
|
||||||
'cpp_args=-fvisibility=hidden',
|
'cpp_args=-fvisibility=hidden',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
@ -128,17 +128,23 @@ endif
|
||||||
|
|
||||||
deps += ftxui_dep
|
deps += ftxui_dep
|
||||||
|
|
||||||
reflectcpp_proj = cmake.subproject('reflectcpp')
|
cmake_opts = cmake.subproject_options()
|
||||||
reflectcpp_dep = reflectcpp_proj.dependency('reflectcpp')
|
|
||||||
|
cmake_opts.add_cmake_defines({
|
||||||
|
'CMAKE_CXX_FLAGS': '-Wno-everything',
|
||||||
|
})
|
||||||
|
|
||||||
|
cmake_opts.append_compile_args('cpp', '-Wno-everything')
|
||||||
|
|
||||||
|
reflectcpp_proj = cmake.subproject('reflectcpp', options: cmake_opts)
|
||||||
|
reflectcpp_dep = reflectcpp_proj.dependency('reflectcpp', include_type: 'system')
|
||||||
deps += reflectcpp_dep
|
deps += reflectcpp_dep
|
||||||
|
|
||||||
objc_args = []
|
objc_args = []
|
||||||
link_args = []
|
link_args = ['-static-libgcc', '-static-libstdc++', '-static']
|
||||||
|
|
||||||
if host_machine.system() == 'darwin'
|
if host_machine.system() == 'darwin'
|
||||||
objc_args += ['-fobjc-arc']
|
objc_args += ['-fobjc-arc']
|
||||||
elif host_machine.system() == 'linux'
|
|
||||||
link_args += ['-static-libgcc', '-static-libstdc++']
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
|
|
Loading…
Add table
Reference in a new issue