-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathmeson.build
More file actions
40 lines (39 loc) · 1.15 KB
/
meson.build
File metadata and controls
40 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
sources += files(
#'AchievementMan.cpp',
'ActivityMan.cpp',
'AudioMan.cpp',
'CameraMan.cpp',
'ConsoleMan.cpp',
'FrameMan.cpp',
#'LuaMan.cpp',
'GLResourceMan.cpp',
'MenuMan.cpp',
'MetaMan.cpp',
'MovableMan.cpp',
'MusicMan.cpp',
#'NetworkClient.cpp',
#'NetworkServer.cpp',
'PerformanceMan.cpp',
'PostProcessMan.cpp',
'PresetMan.cpp',
'PrimitiveMan.cpp',
'SceneMan.cpp',
'SettingsMan.cpp',
'ThreadMan.cpp',
'TimerMan.cpp',
'UInputMan.cpp',
'WindowMan.cpp'
)
luaman_cpp_args = preprocessor_flags
defaults_override = []
if compiler.get_argument_syntax() == 'gcc'
luaman_cpp_args += ['-fpermissive']
elif compiler.get_argument_syntax() == 'msvc'
luaman_cpp_args += ['-D_HAS_ITERATOR_DEBUGGING=0', '-D_HAS_AUTO_PTR_ETC=1', '-permissive', '-bigobj']
defaults_override = ['cpp_std=v'+get_option('cpp_std')] # override standard to use vc++, removing permissive- flag
message(defaults_override)
else
error('Unsupported compiler')
endif
luaman = static_library('LuaMan', 'LuaMan.cpp', dependencies:deps + luabind_dep, include_directories: [source_inc_dirs, external_inc_dirs], cpp_args: luaman_cpp_args, cpp_pch:pch, override_options: defaults_override)
source_libs += luaman