blob: f9d61a2c4a796b5e0eb78ec1c8bd94bbee63427a (
plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
# NorthstarDLL
add_library(NorthstarDLL SHARED
"client/audio.cpp"
"client/audio.h"
"client/chatcommand.cpp"
"client/clientauthhooks.cpp"
"client/clientruihooks.cpp"
"client/clientvideooverrides.cpp"
"client/debugoverlay.cpp"
"client/demofixes.cpp"
"client/diskvmtfixes.cpp"
"client/languagehooks.cpp"
"client/latencyflex.cpp"
"client/localchatwriter.cpp"
"client/localchatwriter.h"
"client/modlocalisation.cpp"
"client/r2client.cpp"
"client/r2client.h"
"client/rejectconnectionfixes.cpp"
"config/profile.cpp"
"config/profile.h"
"core/convar/concommand.cpp"
"core/convar/concommand.h"
"core/convar/convar.cpp"
"core/convar/convar.h"
"core/convar/cvar.cpp"
"core/convar/cvar.h"
"core/filesystem/filesystem.cpp"
"core/filesystem/filesystem.h"
"core/filesystem/rpakfilesystem.cpp"
"core/filesystem/rpakfilesystem.h"
"core/math/bitbuf.h"
"core/math/bits.cpp"
"core/math/bits.h"
"core/math/color.cpp"
"core/math/color.h"
"core/math/vector.h"
"core/hooks.cpp"
"core/hooks.h"
"core/macros.h"
"core/memalloc.cpp"
"core/memalloc.h"
"core/memory.cpp"
"core/memory.h"
"core/sourceinterface.cpp"
"core/sourceinterface.h"
"core/structs.h"
"core/tier0.cpp"
"core/tier0.h"
"dedicated/dedicated.cpp"
"dedicated/dedicated.h"
"dedicated/dedicatedlogtoclient.cpp"
"dedicated/dedicatedlogtoclient.h"
"dedicated/dedicatedmaterialsystem.cpp"
"engine/host.cpp"
"engine/hoststate.cpp"
"engine/hoststate.h"
"engine/r2engine.cpp"
"engine/r2engine.h"
"engine/runframe.cpp"
"logging/crashhandler.cpp"
"logging/crashhandler.h"
"logging/logging.cpp"
"logging/logging.h"
"logging/loghooks.cpp"
"logging/loghooks.h"
"logging/sourceconsole.cpp"
"logging/sourceconsole.h"
"masterserver/masterserver.cpp"
"masterserver/masterserver.h"
"mods/compiled/kb_act.cpp"
"mods/compiled/modkeyvalues.cpp"
"mods/compiled/modpdef.cpp"
"mods/compiled/modscriptsrson.cpp"
"mods/modmanager.cpp"
"mods/modmanager.h"
"plugins/plugin_abi.h"
"plugins/pluginbackend.cpp"
"plugins/pluginbackend.h"
"plugins/plugins.cpp"
"plugins/plugins.h"
"scripts/client/clientchathooks.cpp"
"scripts/client/cursorposition.cpp"
"scripts/client/scriptbrowserhooks.cpp"
"scripts/client/scriptmainmenupromos.cpp"
"scripts/client/scriptmodmenu.cpp"
"scripts/client/scriptserverbrowser.cpp"
"scripts/client/scriptservertoclientstringcommand.cpp"
"scripts/server/miscserverfixes.cpp"
"scripts/server/miscserverscript.cpp"
"scripts/server/scriptuserinfo.cpp"
"scripts/scriptdatatables.cpp"
"scripts/scripthttprequesthandler.cpp"
"scripts/scripthttprequesthandler.h"
"scripts/scriptjson.cpp"
"scripts/scriptutility.cpp"
"server/auth/bansystem.cpp"
"server/auth/bansystem.h"
"server/auth/serverauthentication.cpp"
"server/auth/serverauthentication.h"
"server/alltalk.cpp"
"server/buildainfile.cpp"
"server/r2server.cpp"
"server/r2server.h"
"server/serverchathooks.cpp"
"server/serverchathooks.h"
"server/servernethooks.cpp"
"server/serverpresence.cpp"
"server/serverpresence.h"
"shared/exploit_fixes/exploitfixes.cpp"
"shared/exploit_fixes/exploitfixes_lzss.cpp"
"shared/exploit_fixes/exploitfixes_utf8parser.cpp"
"shared/exploit_fixes/ns_limits.cpp"
"shared/exploit_fixes/ns_limits.h"
"shared/gamepresence.cpp"
"shared/gamepresence.h"
"shared/keyvalues.cpp"
"shared/keyvalues.h"
"shared/maxplayers.cpp"
"shared/maxplayers.h"
"shared/misccommands.cpp"
"shared/misccommands.h"
"shared/playlist.cpp"
"shared/playlist.h"
"squirrel/squirrel.cpp"
"squirrel/squirrel.h"
"squirrel/squirrelautobind.cpp"
"squirrel/squirrelautobind.h"
"squirrel/squirrelclasstypes.h"
"squirrel/squirreldatatypes.h"
"util/printcommands.cpp"
"util/printcommands.h"
"util/printmaps.cpp"
"util/printmaps.h"
"util/utils.cpp"
"util/utils.h"
"util/version.cpp"
"util/version.h"
"util/wininfo.cpp"
"util/wininfo.h"
"audio_asm.asm"
"dllmain.cpp"
"dllmain.h"
"ns_version.h"
)
target_link_libraries(NorthstarDLL PRIVATE
${CMAKE_SOURCE_DIR}/include/MinHook.x64.lib
${CMAKE_SOURCE_DIR}/include/libcurl/lib/libcurl_a.lib
Ws2_32.lib
Crypt32.lib
Cryptui.lib
dbghelp.lib
Wldap32.lib
Normaliz.lib
Bcrypt.lib
version.lib
)
target_include_directories(NorthstarDLL PRIVATE
${CMAKE_SOURCE_DIR}/NorthstarDLL
${CMAKE_SOURCE_DIR}/include
)
target_precompile_headers(NorthstarDLL PRIVATE pch.h)
target_compile_definitions(NorthstarDLL PRIVATE
UNICODE
_UNICODE
CURL_STATICLIB
)
set_target_properties(NorthstarDLL PROPERTIES
RUNTIME_OUTPUT_DIRECTORY ${NS_BINARY_DIR}
OUTPUT_NAME Northstar
LINK_FLAGS "/MANIFEST:NO /DEBUG"
)
|