-
Notifications
You must be signed in to change notification settings - Fork 5
/
meson.build
60 lines (52 loc) · 1.58 KB
/
meson.build
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
project(
'NWNX4',
['cpp', 'c'],
default_options : [
# 'default_library=static',
'cpp_std=c++20',
'bindir=.',
'libdir=.',
'datadir=.',
],
)
# Global compiler arguments
cppcompiler = meson.get_compiler('cpp')
add_project_arguments('/DWIN32', '/D_WINDOWS', '/D_USRDLL', '/DTEST_EXPORTS', '/D_UNICODE', '/DUNICODE', language: ['cpp', 'c'])
if get_option('buildtype') == 'release'
add_project_arguments('/DNDEBUG', language: ['cpp', 'c'])
add_global_link_arguments('/DEBUG', language: ['cpp', 'c'])
else
add_project_arguments('/D_DEBUG', language: ['cpp', 'c'])
endif
# Include & lib paths
nwnx4_repo_path = meson.global_source_root()
include_dirs = include_directories([
'lib/NWN2/include',
'vcpkg_installed/x86-windows-static-md/include'
])
lib_dirs = [
nwnx4_repo_path + '/lib/NWN2'
]
if get_option('buildtype') == 'release'
lib_dirs += nwnx4_repo_path + '/vcpkg_installed/x86-windows-static-md/lib'
else
lib_dirs += nwnx4_repo_path + '/vcpkg_installed/x86-windows-static-md/debug/lib'
endif
# Target list
subdir('src')
subdir('src/hook')
subdir('src/controller')
subdir('src/gui')
nwscript_includes = []
subdir('src/plugins/xp_funcs')
subdir('src/plugins/xp_mysql')
subdir('src/plugins/xp_pickpocket')
subdir('src/plugins/xp_profiler')
subdir('src/plugins/xp_sqlite')
subdir('src/plugins/xp_time')
subdir('src/plugins/xp_bugfix')
subdir('src/plugins/xp_fastboot')
subdir('src/plugins/xp_objectattributes')
subdir('src/plugins/xp_srvadmin')
subdir('src/plugins/xp_example_cplugin')
install_data('README.md', install_dir: '.')