forked from nwn2dev/nwnx4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
59 lines (51 loc) · 1.52 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
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('/GL', 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/funcs')
subdir('src/plugins/mysql')
subdir('src/plugins/pickpocket')
subdir('src/plugins/profiler')
subdir('src/plugins/sqlite')
subdir('src/plugins/time')
subdir('src/plugins/xp_bugfix')
subdir('src/plugins/xp_fastboot')
subdir('src/plugins/xp_objectattributes')
subdir('src/plugins/xp_srvadmin')
install_data('README.md', install_dir: '.')