forked from wghost/UPKUtils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
80 lines (65 loc) · 1.74 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
project('UPKUtils',
[ 'cpp', 'c' ],
default_options : [ 'cpp_std=c++14' ],
version : '1.6',
meson_version : '>=0.49')
common_src = [
'CustomTFC.cpp',
'LzoUtils.cpp',
'minilzo.c',
'UFlags.cpp',
'UObject.cpp',
'UObjectFactory.cpp',
'UPKInfo.cpp',
'UPKUtils.cpp',
'UToken.cpp',
'UTokenFactory.cpp',
]
libcommon = static_library('common', common_src)
# required by some of the binaries
wx_dep = dependency('wxwidgets',
version : '>=3.0.0',
required : true,
modules : ['std', 'stc'])
if wx_dep.found()
executable('DecompressLZO',
['DecompressLZO.cpp'],
link_with: libcommon,
dependencies : wx_dep)
executable('DeserializeAll',
['DeserializeAll.cpp'],
link_with: libcommon,
dependencies : wx_dep)
executable('ExportTexturesToDDS',
['ExportTexturesToDDS.cpp', 'dds.cpp'],
link_with: libcommon,
dependencies : wx_dep)
executable('ImportTexturesFromDDS',
['ImportTexturesFromDDS.cpp', 'dds.cpp'],
link_with: libcommon,
dependencies : wx_dep)
endif
executable('CompareUPK',
['CompareUPK.cpp', 'UPKInfo.cpp', 'UFlags.cpp'])
executable('ExtractNameLists',
['ExtractNameLists.cpp'],
link_with: libcommon)
executable('FindObjectByOffset',
['FindObjectByOffset.cpp'],
link_with: libcommon)
executable('FindObjectEntry',
['FindObjectEntry.cpp'],
link_with: libcommon)
executable('HexToPseudoCode',
['HexToPseudoCode.cpp'],
link_with: libcommon)
executable('MoveExpandFunction',
['MoveExpandFunction.cpp'],
link_with: libcommon)
executable('ParseTfc',
['ParseTfc.cpp', 'dds.cpp'],
link_with: libcommon)
executable('PatchUPK',
['PatchUPK.cpp', 'ModParser.cpp', 'ModScript.cpp'],
link_with: libcommon)
executable('UENativeTablesReader', ['UENativeTablesReader.cpp'])