Merge pull request #5 from bibendovsky/fix/cmake

Update CMake script
develop
Boris Bendovsky 2017-12-10 13:26:14 +02:00 committed by GitHub
commit 3ab9c155f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
33 changed files with 1599 additions and 1528 deletions

View File

@ -1,113 +1,65 @@
cmake_minimum_required(VERSION 3.5.1)
################
# Common stuff #
################
function(ltjs_add_default_options)
if (${ARGC} GREATER 1)
message(FATAL_ERROR "Too many arguments.")
function (ltjs_add_defaults)
if (NOT ((${ARGC} EQUAL 1) OR (${ARGC} EQUAL 2)))
message(FATAL_ERROR "Usage: ltjs_add_defaults <target_name> [<pch_header>]")
endif ()
if (${ARGC})
string(LENGTH ${ARGV0} LENGTH)
if (NOT ${LENGTH})
message(FATAL_ERROR "Empty PCH file name.")
endif ()
endif ()
set_target_properties(
${ARGV0}
PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
# Defines
# =======
add_definitions(-DNOPS2)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-D_FINAL>)
add_compile_options($<$<CONFIG:DEBUG>:-D_DEBUG>)
target_compile_definitions(
${ARGV0}
PRIVATE NOPS2
PRIVATE $<$<NOT:$<CONFIG:DEBUG>>:_FINAL>
PRIVATE $<$<CONFIG:DEBUG>:_DEBUG>
)
if (MSVC)
add_compile_options($<$<CONFIG:DEBUG>:-D_CRT_SECURE_NO_WARNINGS>)
add_compile_options($<$<CONFIG:DEBUG>:-D_ITERATOR_DEBUG_LEVEL=0>)
# Accept deprecated containers for Visual C++ 14
add_definitions(-D_SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS)
target_compile_definitions(
${ARGV0}
PRIVATE $<$<CONFIG:DEBUG>:_CRT_SECURE_NO_WARNINGS>
PRIVATE $<$<CONFIG:DEBUG>:_ITERATOR_DEBUG_LEVEL=0>
PRIVATE _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
)
endif ()
# Compiler flags
# ==============
# Common compiler flags
# ---------------------
if (MSVC)
# Warning Level
add_compile_options(-W4)
# Multi-processor Compilation
add_compile_options(-MP)
# Eliminate Duplicate Strings
add_compile_options(-GF)
# Disable Minimal Rebuild
add_compile_options(-Gm-)
# Disable RTTI
add_compile_options(-GR-)
# Use Precompiled Headers
if (${ARGC})
add_compile_options(-Yu${ARGV0})
else()
add_compile_options(-Y-)
endif ()
# No Enhanced Instructions
# (Prevents overflow of the x87 FPU stack)
add_compile_options(-arch:IA32)
# Suppress "unreferenced formal parameter" warning
add_compile_options(-wd4100)
# Suppress "The POSIX name for this item is deprecated" warning
add_compile_options(-wd4996)
target_compile_options(
${ARGV0}
# Warning Level
PRIVATE -W4
# Multi-processor Compilation
PRIVATE -MP
# No Enhanced Instructions (prevents overflow of the x87 FPU stack)
PRIVATE -arch:IA32
# Suppress "unreferenced formal parameter" warning
PRIVATE -wd4100
# Suppress "The POSIX name for this item is deprecated" warning
PRIVATE -wd4996
# Use Precompiled Headers
PRIVATE $<$<EQUAL:${ARGC},1>:-Y->
PRIVATE $<$<EQUAL:${ARGC},2>:-Yu${ARGV1}>
# Runtime Library (Multi-threaded Debug)
PRIVATE $<$<CONFIG:DEBUG>:-MTd>
)
endif ()
if (NOT MSVC)
add_compile_options("-std=c++11")
add_compile_options("-Wfatal-errors")
if (MINGW)
target_compile_options(
${ARGV0}
# Warning Level
PRIVATE -Wfatal-errors
)
endif ()
# ---------------------
# Debug compile options
# ---------------------
if (MSVC)
# Runtime Library (Multi-threaded Debug)
add_compile_options($<$<CONFIG:DEBUG>:-MTd>)
endif ()
# -----------------------
# Release compile options
# -----------------------
if (MSVC)
# Runtime Library (Multi-threaded)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-MT>)
# Enable Intrinsic Function
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-Oi>)
# In-line Function Expansion (Only __inline)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-Ob1>)
# Favour size or speed (speed)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-Ot>)
# Omit Frame Pointers
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-Oy>)
# Disable Security Check
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-GS->)
endif ()
endfunction(ltjs_add_default_options)
endfunction (ltjs_add_defaults)

View File

@ -1,34 +1,37 @@
project(ltjs)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs VERSION 0.0.1 LANGUAGES CXX)
cmake_minimum_required(VERSION 2.8)
if (NOT WIN32)
message(FATAL_ERROR "WIN32 only")
endif ()
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
set(LTJS_BIN_DIR ${CMAKE_BINARY_DIR}/build/bin)
set(LTJS_GAME_BIN_DIR ${LTJS_BIN_DIR}/game)
set(LTJS_TO2_BIN_DIR ${LTJS_BIN_DIR}/to2)
add_subdirectory(game/clientfxdll)
add_subdirectory(libs/butemgr)
add_subdirectory(game/clientshelldll/clientshellshared)
add_subdirectory(libs/cryptmgr)
add_subdirectory(engine/libs/ltmem)
add_subdirectory(engine/libs/rezmgr)
add_subdirectory(engine/runtime/info/src)
add_subdirectory(engine/runtime/render_a/src/sys/d3d)
add_subdirectory(engine/runtime/sound/src)
add_subdirectory(engine/runtime/info/src)
add_subdirectory(libs/lith)
add_subdirectory(game/libs/ltguimgr)
add_subdirectory(engine/libs/ltmem)
add_subdirectory(libs/mfcstub)
add_subdirectory(game/objectdll/objectshared)
add_subdirectory(libs/regmgr)
add_subdirectory(engine/libs/rezmgr)
add_subdirectory(libs/stdlith)
add_subdirectory(engine/runtime/sound/src/sys/s_dx8)
add_subdirectory(engine/runtime/ui/src)
add_subdirectory(engine/runtime/winbuild/lithtech)
add_subdirectory(engine/runtime/winbuild/ltmsg)
add_subdirectory(engine/runtime/winbuild/server)
add_subdirectory(game/libs/serverdir)
add_subdirectory(game/serverres/to2)
add_subdirectory(engine/runtime/sound/src/sys/s_dx8)
add_subdirectory(game/clientfxdll)
add_subdirectory(game/clientres/to2)
add_subdirectory(game/clientshelldll/clientshellshared)
add_subdirectory(game/clientshelldll/to2)
add_subdirectory(game/libs/ltguimgr)
add_subdirectory(game/libs/serverdir)
add_subdirectory(game/objectdll/objectshared)
add_subdirectory(game/objectdll/to2)
add_subdirectory(game/serverres/to2)
add_subdirectory(libs/butemgr)
add_subdirectory(libs/cryptmgr)
add_subdirectory(libs/lith)
add_subdirectory(libs/mfcstub)
add_subdirectory(libs/regmgr)
add_subdirectory(libs/stdlith)

View File

@ -1,9 +1,8 @@
set(LTJS_TARGET ltjs_lib_lt_mem)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_lt_mem VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(stdafx.h)
include_directories(
../../../libs/stdlith
../../sdk/inc
@ -13,7 +12,7 @@ include_directories(
)
set(
HDRS
headers
generalheap.h
generalheapgroup.h
lilfixedheap.h
@ -26,7 +25,7 @@ set(
)
set(
SRCS
sources
ltmem.cpp
ltmemdebug.cpp
ltmemheap.cpp
@ -45,7 +44,9 @@ if (MSVC)
endif ()
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_lt_mem STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_lt_mem stdafx.h)

View File

@ -1,16 +1,15 @@
set(LTJS_TARGET ltjs_lib_rez_mgr)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_rez_mgr VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
../../../libs/lith
../../sdk/inc
)
set(
HDRS
headers
rezfile.h
rezhash.h
rezmgr.h
@ -19,7 +18,7 @@ set(
)
set(
SRCS
sources
rezfile.cpp
rezhash.cpp
rezmgr.cpp
@ -27,7 +26,9 @@ set(
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_rez_mgr STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_rez_mgr)

View File

@ -1,9 +1,8 @@
set(LTJS_TARGET ltjs_lib_info)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_info VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
.
../../../sdk/inc
@ -13,20 +12,22 @@ include_directories(
)
set(
HDRS
headers
../../../sdk/inc/libltinfo/iltoutputredir.h
../../../sdk/inc/libltinfo.h
outputredir.h
)
set(
SRCS
sources
outputredir.cpp
sys/win32/outputredir_win32.cpp
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_info STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_info)

View File

@ -85,7 +85,7 @@ void COutputRedir::OutputToASSERT()
#ifndef __MINGW32__
//_assert(m_pPrintBuffer, __FILE__, __LINE__);
_CrtDbgReport(_CRT_ASSERT, NULL, 0, "server.dll", "%s", m_pPrintBuffer);
_CrtDbgReport(_CRT_ASSERT, NULL, 0, "ltjs_server.dll", "%s", m_pPrintBuffer);
#else
ASSERT(!m_pPrintBuffer);
#endif

View File

@ -534,7 +534,7 @@ int RunClientApp(HINSTANCE hInstance) {
status = dsi_Init();
if (status != 0) {
if (status == 1) {
MessageBox(LTNULL, "Unable to load ltmsg.dll.", "Error", MB_OK);
MessageBox(LTNULL, "Unable to load ltjs_ltmsg.dll.", "Error", MB_OK);
dsi_Term();
return -1;
}

View File

@ -114,7 +114,7 @@ LTSysResultString g_StringMap[] = {
// --------------------------------------------------------------- //
static LTBOOL dsi_LoadResourceModule() {
g_hResourceModule = LoadLibrary("ltmsg.dll");
g_hResourceModule = LoadLibrary("ltjs_ltmsg.dll");
#if 0
#ifdef LITHTECH_ESD
@ -297,16 +297,15 @@ LTRESULT dsi_LoadServerObjects(CClassMgr *pClassMgr)
{
char fileName[256];
int status;
char *pDLLName;
pDLLName = "object.lto";
constexpr auto object_file_name = "ltjs_object.dll";
//Copy the object.lto file out of the res so we can run it.
bool bFileCopied = false;
if (GetOrCopyFile( pDLLName, fileName, sizeof(fileName), bFileCopied) != LT_OK)
if (GetOrCopyFile( object_file_name, fileName, sizeof(fileName), bFileCopied) != LT_OK)
{
sm_SetupError(LT_ERRORCOPYINGFILE, pDLLName);
RETURN_ERROR_PARAM(1, LoadServerObjects, LT_ERRORCOPYINGFILE, pDLLName);
sm_SetupError(LT_ERRORCOPYINGFILE, object_file_name);
RETURN_ERROR_PARAM(1, LoadServerObjects, LT_ERRORCOPYINGFILE, object_file_name);
}
//load the object.lto DLL.
@ -315,27 +314,29 @@ LTRESULT dsi_LoadServerObjects(CClassMgr *pClassMgr)
//check for errors.
if (status == CB_CANTFINDMODULE) {
sm_SetupError(LT_INVALIDOBJECTDLL, pDLLName);
RETURN_ERROR_PARAM(1, LoadObjectsInDirectory, LT_INVALIDOBJECTDLL, pDLLName);
sm_SetupError(LT_INVALIDOBJECTDLL, object_file_name);
RETURN_ERROR_PARAM(1, LoadObjectsInDirectory, LT_INVALIDOBJECTDLL, object_file_name);
}
else if (status == CB_NOTCLASSMODULE) {
sm_SetupError(LT_INVALIDOBJECTDLL, pDLLName);
RETURN_ERROR_PARAM(1, LoadObjectsInDirectory, LT_INVALIDOBJECTDLL, pDLLName);
sm_SetupError(LT_INVALIDOBJECTDLL, object_file_name);
RETURN_ERROR_PARAM(1, LoadObjectsInDirectory, LT_INVALIDOBJECTDLL, object_file_name);
}
else if (status == CB_VERSIONMISMATCH) {
sm_SetupError(LT_INVALIDOBJECTDLLVERSION, pDLLName, version, SERVEROBJ_VERSION);
RETURN_ERROR_PARAM(1, LoadObjectsInDirectory, LT_INVALIDOBJECTDLLVERSION, pDLLName);
sm_SetupError(LT_INVALIDOBJECTDLLVERSION, object_file_name, version, SERVEROBJ_VERSION);
RETURN_ERROR_PARAM(1, LoadObjectsInDirectory, LT_INVALIDOBJECTDLLVERSION, object_file_name);
}
// Get sres.dll.
constexpr auto sres_file_name = "ltjs_sres.dll";
bFileCopied = false;
if ((GetOrCopyFile("sres.dll", fileName, sizeof(fileName),bFileCopied) != LT_OK)
if ((GetOrCopyFile(sres_file_name, fileName, sizeof(fileName),bFileCopied) != LT_OK)
|| (bm_BindModule(fileName, bFileCopied, pClassMgr->m_hServerResourceModule) != BIND_NOERROR))
{
cb_UnloadModule( pClassMgr->m_ClassModule );
sm_SetupError(LT_ERRORCOPYINGFILE, "sres.dll");
RETURN_ERROR_PARAM(1, LoadServerObjects, LT_ERRORCOPYINGFILE, "sres.dll");
sm_SetupError(LT_ERRORCOPYINGFILE, sres_file_name);
RETURN_ERROR_PARAM(1, LoadServerObjects, LT_ERRORCOPYINGFILE, sres_file_name);
}
//let the dll know it's instance handle.
@ -512,11 +513,13 @@ LTRESULT dsi_InitClientShellDE()
g_pClientMgr->m_hShellModule = LTNULL;
// Setup the cshell.dll file.
constexpr auto cshell_file_name = "ltjs_cshell.dll";
bool bFileCopied = false;
dResult = GetOrCopyClientFile( "cshell.dll", fileName, sizeof(fileName), bFileCopied );
dResult = GetOrCopyClientFile( cshell_file_name, fileName, sizeof(fileName), bFileCopied );
if (dResult != LT_OK) {
g_pClientMgr->SetupError(LT_ERRORCOPYINGFILE, "cshell.dll");
RETURN_ERROR_PARAM(1, InitClientShellDE, LT_ERRORCOPYINGFILE, "cshell.dll");
g_pClientMgr->SetupError(LT_ERRORCOPYINGFILE, cshell_file_name);
RETURN_ERROR_PARAM(1, InitClientShellDE, LT_ERRORCOPYINGFILE, cshell_file_name);
}
//load the DLL.
@ -524,27 +527,29 @@ LTRESULT dsi_InitClientShellDE()
//check if it loaded correctly.
if (status == BIND_CANTFINDMODULE) {
g_pClientMgr->SetupError(LT_MISSINGSHELLDLL, "cshell.dll");
g_pClientMgr->SetupError(LT_MISSINGSHELLDLL, cshell_file_name);
RETURN_ERROR(1, InitClientShellDE, LT_MISSINGSHELLDLL);
}
//check if we now have the IClientShell interface instantiated.
if (i_client_shell == NULL) {
g_pClientMgr->SetupError(LT_INVALIDSHELLDLL, "cshell.dll");
g_pClientMgr->SetupError(LT_INVALIDSHELLDLL, cshell_file_name);
RETURN_ERROR(1, InitClientShellDE, LT_INVALIDSHELLDLL);
}
//
// Try to setup cres.dll.
//
constexpr auto cres_file_name = "ltjs_cres.dll";
//copy the file out of the res file.
bFileCopied = false;
dResult = GetOrCopyClientFile( "cres.dll", fileName, sizeof(fileName), bFileCopied );
dResult = GetOrCopyClientFile( cres_file_name, fileName, sizeof(fileName), bFileCopied );
if (dResult != LT_OK)
{
g_pClientMgr->SetupError(LT_ERRORCOPYINGFILE, "cres.dll");
RETURN_ERROR_PARAM(1, InitClientShellDE, LT_ERRORCOPYINGFILE, "cres.dll");
g_pClientMgr->SetupError(LT_ERRORCOPYINGFILE, cres_file_name);
RETURN_ERROR_PARAM(1, InitClientShellDE, LT_ERRORCOPYINGFILE, cres_file_name);
}
//load the DLL.
@ -556,8 +561,8 @@ LTRESULT dsi_InitClientShellDE()
bm_UnbindModule(g_pClientMgr->m_hShellModule);
g_pClientMgr->m_hShellModule = LTNULL;
g_pClientMgr->SetupError(LT_INVALIDSHELLDLL, "cres.dll");
RETURN_ERROR_PARAM(1, InitClientShellDE, LT_INVALIDSHELLDLL, "cres.dll");
g_pClientMgr->SetupError(LT_INVALIDSHELLDLL, cres_file_name);
RETURN_ERROR_PARAM(1, InitClientShellDE, LT_INVALIDSHELLDLL, cres_file_name);
}
//let the dll know it's instance handle.

View File

@ -1,56 +1,109 @@
set(LTJS_TARGET ltjs_lib_d3d_render)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_d3d_render VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(precompile.h)
add_definitions(-D__D3DREND)
add_definitions(-D__D3D)
add_definitions(-DMODEL_SUPPORT_ABC)
add_compile_options($<$<CONFIG:DEBUG>:-DD3D_DEBUG_INFO>)
include_directories(
../../../../../../directx/include
../../../../client/src
.
../../../../kernel/mem/src
../../../../shared/src
../../../../kernel/src
../../../../../sdk/inc
../../../../../../directx/include
../../../../../../libs/stdlith
../../../../shared/src/sys/win
../../../../world/src
../../../../../sdk/inc
../../../../../sdk/inc/physics
../../../../client/src
../../../../kernel/io/src
../../../../kernel/mem/src
../../../../kernel/src
../../../../kernel/src/sys/win
../../../../lithtemplate
../../../../model/src
../../../../model/src/sys/d3d
../../../../kernel/src/sys/win
../../../../kernel/io/src
../../../../lithtemplate
../../../../../sdk/inc/physics
../../../../shared/src
../../../../shared/src/sys/win
../../../../world/src
)
set(
HDRS
headers
../../../../../sdk/inc/iclientshell.h
../../../../../sdk/inc/iltbenchmark.h
../../../../../sdk/inc/iltclient.h
../../../../../sdk/inc/iltcommon.h
../../../../../sdk/inc/iltcsbase.h
../../../../../sdk/inc/iltdirectmusic.h
../../../../../sdk/inc/iltdrawprim.h
../../../../../sdk/inc/iltinfo.h
../../../../../sdk/inc/iltmath.h
../../../../../sdk/inc/iltrenderstyles.h
../../../../../sdk/inc/iltsoundmgr.h
../../../../../sdk/inc/iltspritecontrol.h
../../../../../sdk/inc/iltstream.h
../../../../../sdk/inc/ilttexinterface.h
../../../../../sdk/inc/lithtech.h
../../../../../sdk/inc/ltanimtracker.h
../../../../../sdk/inc/ltassert.h
../../../../../sdk/inc/ltbasedefs.h
../../../../../sdk/inc/ltbasetypes.h
../../../../../sdk/inc/ltcodes.h
../../../../../sdk/inc/ltinteger.h
../../../../../sdk/inc/ltlink.h
../../../../../sdk/inc/ltmatrix.h
../../../../../sdk/inc/ltmodule.h
../../../../../sdk/inc/ltplane.h
../../../../../sdk/inc/ltpvalue.h
../../../../../sdk/inc/ltquatbase.h
../../../../../sdk/inc/ltrect.h
../../../../../sdk/inc/ltrenderstyle.h
../../../../../sdk/inc/ltrotation.h
../../../../../sdk/inc/ltvector.h
../../../../client/src/client_formatmgr.h
../../../../kernel/mem/src/de_memory.h
../../../../kernel/src/dsys.h
../../../../kernel/src/sys/win/counter.h
../../../../kernel/src/sys/win/dsys_interface.h
../../../../kernel/src/sys/win/interface_helpers.h
../../../../kernel/src/sys/win/lthread.h
../../../../kernel/src/sys/win/render.h
../../../../kernel/src/syscounter.h
../../../../model/src/animtracker.h
../../../../model/src/ltb.h
../../../../model/src/model.h
../../../../model/src/model_ops.h
../../../../model/src/modelallocations.h
../../../../model/src/transformmaker.h
../../../../shared/src/bdefs.h
../../../../shared/src/colorops.h
../../../../shared/src/conparse.h
../../../../shared/src/debuggeometry.h
../../../../shared/src/dtxmgr.h
../../../../shared/src/gamemath.h
../../../../shared/src/geometry.h
../../../../shared/src/geomroutines.h
../../../../shared/src/lightmap_compress.h
../../../../shared/src/nexus.h
../../../../shared/src/objectmgr.h
../../../../shared/src/pixelformat.h
../../../../shared/src/renderinfostruct.h
../../../../shared/src/renderobject.h
../../../../shared/src/sys/win/d3dddstructs.h
../../../../shared/src/sys/win/renderstruct.h
../../../../shared/src/sysddstructs.h
../../../../shared/src/version_info.h
../../../../world/src/de_mainworld.h
../../../../world/src/de_objects.h
../../../../world/src/de_sprite.h
../../../../world/src/de_world.h
../../../../world/src/fullintersectline.h
../../../../world/src/intersect_line.h
../../../../world/src/light_table.h
../../../../world/src/world_tree.h
../../../../world/src/worldtreehelper.h
../shadows/d3dshadowtexture.h
iaggregateshader.h
modelshadowshader.h
texturescriptdefs.h
texturescriptevaluator.h
texturescriptinstance.h
texturescriptinterpreter.h
texturescriptmgr.h
texturescriptvarmgr.h
3d_ops.h
aabb.h
../../../../model/src/animtracker.h
../../../../shared/src/bdefs.h
../../../../client/src/client_formatmgr.h
clipline.h
../../../../shared/src/colorops.h
common_draw.h
common_init.h
common_stuff.h
../../../../shared/src/conparse.h
../../../../kernel/src/sys/win/counter.h
d3d_convar.h
d3d_defs.h
d3d_device.h
@ -76,16 +129,9 @@ set(
d3d_texture.h
d3d_utils.h
d3d_viewparams.h
../../../../shared/src/sys/win/d3dddstructs.h
d3dmeshrendobj_rigid.h
d3dmeshrendobj_skel.h
d3dmeshrendobj_vertanim.h
../../../../world/src/de_mainworld.h
../../../../kernel/mem/src/de_memory.h
../../../../world/src/de_objects.h
../../../../world/src/de_sprite.h
../../../../world/src/de_world.h
../../../../shared/src/debuggeometry.h
devicelightlist.h
dirtyrect.h
draw_canvas.h
@ -93,79 +139,27 @@ set(
drawobjects.h
drawsky.h
drawworldmodel.h
../../../../kernel/src/dsys.h
../../../../kernel/src/sys/win/dsys_interface.h
../../../../shared/src/dtxmgr.h
fixedpoint.h
../../../../world/src/fullintersectline.h
../../../../shared/src/gamemath.h
../../../../shared/src/geometry.h
../../../../shared/src/geomroutines.h
../../../../../sdk/inc/iclientshell.h
../../../../../sdk/inc/iltbenchmark.h
../../../../../sdk/inc/iltclient.h
../../../../../sdk/inc/iltcommon.h
../../../../../sdk/inc/iltcsbase.h
../../../../../sdk/inc/iltdirectmusic.h
../../../../../sdk/inc/iltdrawprim.h
../../../../../sdk/inc/iltinfo.h
../../../../../sdk/inc/iltmath.h
../../../../../sdk/inc/iltrenderstyles.h
../../../../../sdk/inc/iltsoundmgr.h
../../../../../sdk/inc/iltspritecontrol.h
../../../../../sdk/inc/iltstream.h
../../../../../sdk/inc/ilttexinterface.h
../../../../kernel/src/sys/win/interface_helpers.h
../../../../world/src/intersect_line.h
../../../../world/src/light_table.h
../../../../shared/src/lightmap_compress.h
../../../../../sdk/inc/lithtech.h
../../../../../sdk/inc/ltanimtracker.h
../../../../../sdk/inc/ltassert.h
../../../../model/src/ltb.h
../../../../../sdk/inc/ltbasedefs.h
../../../../../sdk/inc/ltbasetypes.h
../../../../../sdk/inc/ltcodes.h
iaggregateshader.h
lteffectimpl.h
lteffectinclude.h
lteffectshadermgr.h
../../../../kernel/src/sys/win/lthread.h
../../../../../sdk/inc/ltinteger.h
../../../../../sdk/inc/ltlink.h
../../../../../sdk/inc/ltmatrix.h
../../../../../sdk/inc/ltmodule.h
ltpixelshadermgr.h
../../../../../sdk/inc/ltplane.h
../../../../../sdk/inc/ltpvalue.h
../../../../../sdk/inc/ltquatbase.h
../../../../../sdk/inc/ltrect.h
../../../../../sdk/inc/ltrenderstyle.h
../../../../../sdk/inc/ltrotation.h
ltshaderdevicestateimp.h
../../../../../sdk/inc/ltvector.h
ltvertexshadermgr.h
memstats_world.h
../../../../model/src/model.h
../../../../model/src/model_ops.h
../../../../model/src/modelallocations.h
modeldebug.h
../../../../shared/src/nexus.h
modelshadowshader.h
objectgroupmgr.h
../../../../shared/src/objectmgr.h
../../../../shared/src/pixelformat.h
polyclip.h
precompile.h
relevantlightlist.h
../../../../kernel/src/sys/win/render.h
rendererconsolevars.h
rendererframestats.h
../../../../shared/src/renderinfostruct.h
renderlight.h
rendermodelinfolist.h
rendermodelpiecelist.h
../../../../shared/src/renderobject.h
rendershadowlist.h
../../../../shared/src/sys/win/renderstruct.h
renderstylelookuptables.h
renderstylemap.h
rendertarget.h
@ -174,18 +168,19 @@ set(
setupmodel.h
setuptouchinglights.h
simd_utilities.h
../../../../kernel/src/syscounter.h
../../../../shared/src/sysddstructs.h
tagnodes.h
../../../../model/src/transformmaker.h
../../../../shared/src/version_info.h
texturescriptdefs.h
texturescriptevaluator.h
texturescriptinstance.h
texturescriptinterpreter.h
texturescriptmgr.h
texturescriptvarmgr.h
vertexbuffercontroller.h
../../../../world/src/world_tree.h
../../../../world/src/worldtreehelper.h
)
set(
SRCS
sources
../shadows/d3dshadowtexture.cpp
3d_ops.cpp
aabb.cpp
common_draw.cpp
@ -238,6 +233,7 @@ set(
ltvertexshadermgr.cpp
memstats_world.cpp
modeldebug.cpp
modelshadowshader.cpp
objectgroupmgr.cpp
precompile.cpp
relevantlightlist.cpp
@ -255,13 +251,11 @@ set(
setupmodel.cpp
setuptouchinglights.cpp
tagnodes.cpp
vertexbuffercontroller.cpp
../shadows/d3dshadowtexture.cpp
modelshadowshader.cpp
texturescriptinstance.cpp
texturescriptinterpreter.cpp
texturescriptmgr.cpp
texturescriptvarmgr.cpp
vertexbuffercontroller.cpp
)
if (MSVC)
@ -274,7 +268,17 @@ if (MSVC)
endif ()
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_d3d_render STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_d3d_render precompile.h)
target_compile_definitions(
ltjs_lib_d3d_render
PRIVATE __D3DREND
PRIVATE __D3D
PRIVATE MODEL_SUPPORT_ABC
PRIVATE $<$<CONFIG:DEBUG>:D3D_DEBUG_INFO>
)

View File

@ -1,28 +1,31 @@
set(LTJS_TARGET ltjs_lib_ilt_sound)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_ilt_sound VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
# User defines
add_definitions(-DUSE_ABSTRACT_SOUND_INTERFACES)
include_directories(
../../../sdk/inc
)
set(
HDRS
headers
iltsound.h
)
set(
SRCS
sources
iltsound.cpp
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_ilt_sound STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_ilt_sound)
target_compile_definitions(
ltjs_lib_ilt_sound
PRIVATE USE_ABSTRACT_SOUND_INTERFACES
)

View File

@ -148,7 +148,7 @@ DECLARE_SOUND_FACTORY( Win32 )
// the enumerator override
#define SOUND_DRIVER_DLL "SndDrv.dll";
#define SOUND_DRIVER_DLL "ltjs_snddrv.dll";
bool CWin32SoundFactory::FillSoundSystems( char* pcSoundSysNames, uint uiMaxStringLen )
{

View File

@ -1,27 +1,26 @@
set(LTJS_TARGET ltjs_snd_drv)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_snd_drv VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
../../../../../../directx/include
../../../../../sdk/inc
../../../../../../libs/lith
../..
../../../../shared/src/sys/win
../../../../../../directx/include
../../../../../../libs/lith
../../../../../sdk/inc
../../../../kernel/src
../../../../shared/src/sys/win
)
set(
HDRS
headers
eax.h
s_dx8.h
stdafx.h
)
set(
SRCS
sources
../../../../kernel/src/sys/win/counter.cpp
parsewavefile.cpp
s_dx8.cpp
@ -29,34 +28,35 @@ set(
)
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_snd_drv SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_snd_drv)
set_target_properties(
${LTJS_TARGET}
ltjs_snd_drv
PROPERTIES
OUTPUT_NAME snddrv
OUTPUT_NAME ltjs_snddrv
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY ${LTJS_BIN_DIR}
)
if (MSVC)
set_target_properties(
${LTJS_TARGET}
ltjs_snd_drv
PROPERTIES
LINK_FLAGS /SUBSYSTEM:WINDOWS
)
set(
PATH_TO_DX_LIBS
path_to_dx_libs
${CMAKE_SOURCE_DIR}/directx/lib/x86
)
set(
PLIBS
${PATH_TO_DX_LIBS}/dxguid.lib
libs
${path_to_dx_libs}/dxguid.lib
${CMAKE_CURRENT_SOURCE_DIR}/eaxguid.lib
winmm
msacm32
@ -65,7 +65,7 @@ endif ()
if (MINGW)
set(
PLIBS
libs
${CMAKE_CURRENT_SOURCE_DIR}/eaxguid.lib
dxguid
msacm32
@ -74,7 +74,13 @@ if (MINGW)
endif ()
target_link_libraries(
${LTJS_TARGET}
ltjs_snd_drv
ltjs_lib_lt_mem
${PLIBS}
${libs}
)
install(
TARGETS
ltjs_snd_drv
RUNTIME DESTINATION "."
)

View File

@ -1,93 +1,89 @@
set(LTJS_TARGET ltjs_lib_ui)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_ui VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
add_definitions(-D__D3D)
add_definitions(-D__D3DREND)
include_directories(
../../../../libs/stdlith
../../../../libs/lith
../../../libs/rezmgr
../../controlfilemgr
../../crtcompat
../../lithtemplate
.
../../client/src
../../kernel/mem/src
../../kernel/io/src
../../kernel/src
../../kernel/src/sys/win
../../model/src
../../sound/src
../../server/src
../../shared/src/sys/win
../../shared/src
../../world/src
../../../../libs/lith
../../../../libs/stdlith
../../../libs/rezmgr
../../../sdk/inc
../../../sdk/inc/compat
../../kernel/net/src
../../render_b/src
../../mpm/src
../../client/src
../../comm/src
../../controlfilemgr
../../crtcompat
../../kernel/io/src
../../kernel/mem/src
../../kernel/net/src
../../kernel/src
../../kernel/src/sys/win
../../lithtemplate
../../model/src
../../mpm/src
../../render_b/src
../../server/src
../../shared/src
../../shared/src/sys/win
../../sound/src
../../ui/src
../../world/src
)
set(
HDRS
headers
../../../sdk/inc/cui.h
../../../sdk/inc/cuibase.h
../../../sdk/inc/cuibutton.h
../../../sdk/inc/cuicheck.h
../../../sdk/inc/cuidropdownlist.h
../../../sdk/inc/cuifont.h
../../../sdk/inc/cuiformattedpolystring.h
../../../sdk/inc/cuiinterval.h
../../../sdk/inc/cuilist.h
../../../sdk/inc/cuimessage.h
../../../sdk/inc/cuioption.h
../../../sdk/inc/cuipolystring.h
../../../sdk/inc/cuiprogress.h
../../../sdk/inc/cuislider.h
../../../sdk/inc/cuistaticimage.h
../../../sdk/inc/cuistatictext.h
../../../sdk/inc/cuitypes.h
../../../sdk/inc/cuiwidget.h
../../../sdk/inc/cuiwindow.h
../../../sdk/inc/iltfontmanager.h
../../../sdk/inc/iltwidgetmanager.h
cuibase_impl.h
cuibitmapfont.h
../../../sdk/inc/cuibutton.h
cuibutton_impl.h
../../../sdk/inc/cuicheck.h
cuicheck_impl.h
cuidebug.h
../../../sdk/inc/cuidropdownlist.h
cuidropdownlist_impl.h
../../../sdk/inc/cuifont.h
cuifont_impl.h
cuifontmanager.h
../../../sdk/inc/cuiformattedpolystring.h
cuiformattedpolystring_impl.h
../../../sdk/inc/cuiinterval.h
cuiinterval_impl.h
cuilinklist.h
../../../sdk/inc/cuilist.h
cuilist_impl.h
../../../sdk/inc/cuimessage.h
cuimessagequeue.h
../../../sdk/inc/cuioption.h
cuioption_impl.h
../../../sdk/inc/cuipolystring.h
cuipolystring_impl.h
cuipolytex.h
../../../sdk/inc/cuiprogress.h
cuiprogress_impl.h
cuiredblack.h
cuirenderstate.h
../../../sdk/inc/cuislider.h
cuislider_impl.h
../../../sdk/inc/cuistaticimage.h
cuistaticimage_impl.h
../../../sdk/inc/cuistatictext.h
cuistatictext_impl.h
../../../sdk/inc/cuitypes.h
cuivectorfont.h
../../../sdk/inc/cuiwidget.h
cuiwidget_impl.h
cuiwidgetmanager.h
../../../sdk/inc/cuiwindow.h
cuiwindow_impl.h
../../../sdk/inc/iltfontmanager.h
../../../sdk/inc/iltwidgetmanager.h
)
set(
SRCS
sources
cuibase.cpp
cuibase_impl.cpp
cuibitmapfont.cpp
@ -95,7 +91,6 @@ set(
cuibutton_impl.cpp
cuicheck.cpp
cuicheck_impl.cpp
sys/d3d/cuidebug.cpp
cuidropdownlist.cpp
cuidropdownlist_impl.cpp
cuifont_impl.cpp
@ -129,10 +124,19 @@ set(
cuiwidgetmanager.cpp
cuiwindow.cpp
cuiwindow_impl.cpp
sys/d3d/cuidebug.cpp
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_ui STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_ui)
target_compile_definitions(
ltjs_lib_ui
PRIVATE __D3D
PRIVATE __D3DREND
)

View File

@ -1,285 +1,85 @@
set(LTJS_TARGET ltjs_lith_tech)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lith_tech VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(bdefs.h)
add_definitions(-DDE_LOCAL_SERVERBIND)
add_definitions(-DDE_CLIENT_COMPILE)
add_definitions(-DDSNDMGR_NO_MFC)
add_definitions(-DDIRECTENGINE_COMPILE)
add_definitions(-D__D3D)
add_definitions(-D__D3DREND)
add_definitions(-DMODEL_SUPPORT_ABC)
add_compile_options($<$<CONFIG:DEBUG>:-DD3D_DEBUG_INFO>)
include_directories(
../../../../directx/include
../../../../libs/stdlith
../../../../libs/lith
../../../libs/rezmgr
../../controlfilemgr
../../crtcompat
../../lithtemplate
.
../../client/src
../../kernel/mem/src
../../kernel/io/src
../../kernel/src
../../kernel/src/sys/win
../../model/src
../../sound/src
../../server/src
../../shared/src/sys/win
../../shared/src
../../world/src
../../../../directx/include
../../../../libs/lith
../../../../libs/mfcstub
../../../../libs/stdlith
../../../libs/lib_dshow
../../../libs/rezmgr
../../../sdk/inc
../../../sdk/inc/compat
../../kernel/net/src
../../render_b/src
../../mpm/src
../../comm/src
../../ui/src
../../distrobj/src
../../state_mgr/src
../../physics/src
../../render_a/src/sys/d3d
../../../sdk/inc/physics
../../../sdk/inc/state_mgr
../../../../libs/mfcstub
../../../libs/lib_dshow
../../client/src
../../comm/src
../../controlfilemgr
../../crtcompat
../../distrobj/src
../../kernel/io/src
../../kernel/mem/src
../../kernel/net/src
../../kernel/src
../../kernel/src/sys/win
../../lithtemplate
../../model/src
../../mpm/src
../../physics/src
../../render_a/src/sys/d3d
../../render_b/src
../../server/src
../../shared/src
../../shared/src/sys/win
../../sound/src
../../state_mgr/src
../../ui/src
../../world/src
)
set(
HDRS
../../controlfilemgr/controlfilemgr.h
../../../sdk/inc/physics/aabb.h
../../../sdk/inc/physics/aabb_tree.h
../../model/src/animtracker.h
../../kernel/src/sys/win/appresource.h
../../shared/src/bdefs.h
../../kernel/src/sys/win/bindmgr.h
../../kernel/src/sys/win/binkvideomgrimpl.h
../../shared/src/build_options.h
../../shared/src/classbind.h
../../server/src/classmgr.h
../../client/src/client_formatmgr.h
../../client/src/client_graphmgr.h
../../client/src/client_ticks.h
../../client/src/clientde_impl.h
../../client/src/clientexception.h
../../shared/src/clienthack.h
../../client/src/clientmgr.h
../../client/src/clientshell.h
../../render_a/src/sys/d3d/clipline.h
../../client/src/cmoveabstract.h
../../shared/src/collision.h
../../../sdk/inc/physics/collision_data.h
../../../sdk/inc/physics/collision_mgr.h
../../../sdk/inc/physics/collision_object.h
../../shared/src/colorops.h
../../render_a/src/sys/d3d/common_draw.h
../../shared/src/compress.h
../../shared/src/concommand.h
../../shared/src/conparse.h
../../client/src/console.h
../../client/src/consolecommands.h
../../../sdk/inc/physics/coordinate_frame.h
../../kernel/src/sys/win/counter.h
../../client/src/customfontfilemgr.h
../../render_a/src/sys/d3d/d3d_convar.h
../../render_a/src/sys/d3d/d3d_device.h
../../render_a/src/sys/d3d/d3d_draw.h
../../render_a/src/sys/d3d/d3d_renderstatemgr.h
../../render_a/src/sys/d3d/d3d_renderstyle.h
../../render_a/src/sys/d3d/d3d_utils.h
../../shared/src/sys/win/d3dddstructs.h
../../render_b/src/sys/d3d/d3ddrawprim.h
../../render_b/src/sys/d3d/d3dtexinterface.h
../../kernel/io/src/sys/win/de_file.h
../../world/src/de_mainworld.h
../../kernel/mem/src/de_memory.h
../../world/src/de_objects.h
../../world/src/de_sprite.h
../../world/src/de_world.h
../../shared/src/debuggeometry.h
../../client/src/debuggraphmgr.h
../../shared/src/dhashtable.h
../../kernel/src/sys/win/dshowvideomgrimpl.h
../../shared/src/sys/win/dstreamopenqueuemgr.h
../../kernel/src/dsys.h
../../kernel/src/sys/win/dsys_interface.h
../../shared/src/dtxmgr.h
../../kernel/src/sys/win/dutil.h
../../client/src/errorlog.h
../../shared/src/findobj.h
../../shared/src/ftbase.h
../../shared/src/ftclient.h
../../shared/src/ftserv.h
../../world/src/fullintersectline.h
../../server/src/game_serialize.h
../../shared/src/gamemath.h
../../render_b/src/gendrawprim.h
../../shared/src/genericprop_setup.h
../../shared/src/genltstream.h
../../shared/src/geometry.h
../../shared/src/geomroutines.h
../../shared/src/impl_common.h
../../kernel/src/sys/win/input.h
../../kernel/src/sys/win/interface_helpers.h
../../server/src/interlink.h
../../world/src/intersect_line.h
../../world/src/light_table.h
../../shared/src/lightmap_compress.h
../../shared/src/lightmap_planes.h
../../shared/src/lightmapdefs.h
../../client/src/linesystem.h
../../kernel/src/sys/win/load_pcx.h
../../world/src/loadstatus.h
../../kernel/net/src/localdriver.h
../../physics/src/lt_collision_mgr.h
../../model/src/ltb.h
../../shared/src/ltbbox.h
../../client/src/ltbenchmark_impl.h
../../kernel/src/sys/win/ltdirectmusic_impl.h
../../kernel/src/sys/win/ltdirectmusiccontrolfile.h
../../kernel/src/sys/win/ltdirectmusicloader.h
../../kernel/src/sys/win/lthread.h
../../client/src/ltinfo_impl.h
../../shared/src/ltmessage.h
../../client/src/ltmessage_client.h
../../server/src/ltmessage_server.h
../../shared/src/ltmutex.h
../../kernel/src/sys/win/ltrendermgr_impl.h
../../client/src/lttexturestring.h
../../kernel/src/sys/win/ltthread.h
../../shared/src/lttimer.h
../../../sdk/inc/physics/math_phys.h
../../../sdk/inc/physics/matrix.h
../../client/src/memorywatch.h
../../shared/src/misctools.h
../../model/src/model.h
../../model/src/model_ops.h
../../model/src/modelallocations.h
../../shared/src/motion.h
../../shared/src/moveobject.h
../../shared/src/moveplayer.h
../../kernel/src/sys/win/musicdriver.h
../../shared/src/musicmgr.h
../../kernel/net/src/netmgr.h
../../shared/src/nexus.h
../../shared/src/objectmgr.h
../../kernel/net/src/packet.h
../../shared/src/packetdefs.h
../../shared/src/parse_world_info.h
../../client/src/particlesystem.h
../../shared/src/pixelformat.h
../../client/src/polygrid.h
../../client/src/predict.h
../../../sdk/inc/physics/quaternion.h
../../shared/src/ratetracker.h
../../shared/src/refobj.h
../../kernel/src/sys/win/render.h
../../shared/src/renderinfostruct.h
../../shared/src/renderobject.h
../../shared/src/sys/win/renderstruct.h
headers
../../../libs/rezmgr/rezfile.h
../../../libs/rezmgr/rezhash.h
../../../libs/rezmgr/rezmgr.h
../../../libs/rezmgr/reztypes.h
../../../sdk/inc/physics/rigid_body.h
../../server/src/s_client.h
../../server/src/s_concommand.h
../../server/src/s_net.h
../../server/src/s_object.h
../../server/src/server_consolestate.h
../../server/src/server_extradata.h
../../server/src/server_filemgr.h
../../server/src/serverde_impl.h
../../server/src/serverevent.h
../../server/src/serverexception.h
../../server/src/servermgr.h
../../server/src/serverobj.h
../../client/src/setupobject.h
../../server/src/smoveabstract.h
../../kernel/net/src/sys/win/socket.h
../../sound/src/soundbuffer.h
../../sound/src/sounddata.h
../../sound/src/soundinstance.h
../../server/src/soundtrack.h
../../client/src/sprite.h
../../shared/src/stacktrace.h
../../shared/src/staticfifo.h
../../shared/src/stdlterror.h
../../kernel/src/sys/win/streamsim.h
../../kernel/src/sys/win/stringmgr.h
../../shared/src/strtools.h
../../client/src/sysclient.h
../../client/src/sysclientde_impl.h
../../client/src/sysconsole_impl.h
../../kernel/src/syscounter.h
../../shared/src/sysddstructs.h
../../kernel/src/sysdebugging.h
../../render_b/src/sysdrawprim.h
../../kernel/io/src/sysfile.h
../../kernel/src/sysinput.h
../../kernel/src/syslibraryloader.h
../../kernel/src/sysstreamsim.h
../../kernel/src/sys/win/systeminfo.h
../../kernel/src/systhread.h
../../kernel/src/systimer.h
../../kernel/src/sysvideo.h
../../kernel/src/sys/win/text_mgr.h
../../client/src/texturestring.h
../../client/src/texturestringimage.h
../../kernel/src/sys/win/timemgr.h
../../model/src/transformmaker.h
../../../sdk/inc/physics/triangle.h
../../shared/src/varsetter.h
../../../sdk/inc/physics/vector.h
../../shared/src/version_info.h
../../kernel/src/sys/win/version_resource.h
../../kernel/src/sys/win/videomgr.h
../../client/src/volumeeffect.h
../../client/src/watermark.h
../../sound/src/wave.h
../../kernel/src/sys/win/winbind.h
../../client/src/sys/win/winclientde_impl.h
../../client/src/sys/win/winconsole_impl.h
../../shared/src/sys/win/winstdlterror.h
../../shared/src/sys/win/winsync.h
../../world/src/world_tree.h
../../world/src/worldtreehelper.h
../../../sdk/inc/cui.h
../../../sdk/inc/cuifont.h
../../../sdk/inc/cuiformattedpolystring.h
../../../sdk/inc/cuimessage.h
../../../sdk/inc/cuipolystring.h
../../ui/src/cuipolystring_impl.h
../../../sdk/inc/cuitypes.h
../../../sdk/inc/iaggregate.h
../../../sdk/inc/iclientshell.h
../../../sdk/inc/iltbaseclass.h
../../../sdk/inc/iltbenchmark.h
../../../sdk/inc/iltclient.h
../../../sdk/inc/iltcommon.h
../../../sdk/inc/iltcsbase.h
../../../sdk/inc/iltcursor.h
../../../sdk/inc/iltdirectmusic.h
../../../sdk/inc/iltdrawprim.h
../../../sdk/inc/iltfontmanager.h
../../../sdk/inc/iltinfo.h
../../../sdk/inc/iltmemory.h
../../../sdk/inc/iltmessage.h
../../../sdk/inc/iltmodel.h
../../../sdk/inc/iltphysics.h
../../../sdk/inc/iltrefcount.h
../../../sdk/inc/iltrenderstyles.h
../../../sdk/inc/iltserver.h
../../sound/src/iltsound.h
../../../sdk/inc/iltsoundmgr.h
../../../sdk/inc/iltspritecontrol.h
../../../sdk/inc/iltstream.h
../../../sdk/inc/ilttexinterface.h
../../../sdk/inc/ilttexturestring.h
../../../sdk/inc/ilttransform.h
../../../sdk/inc/iltvideomgr.h
../../../sdk/inc/iltwidgetmanager.h
../../../sdk/inc/iservershell.h
../../kernel/src/ithread.h
../../../sdk/inc/lithtech.h
../../../sdk/inc/ltanimtracker.h
../../../sdk/inc/ltassert.h
@ -302,7 +102,206 @@ set(
../../../sdk/inc/ltrotation.h
../../../sdk/inc/ltserverobj.h
../../../sdk/inc/ltvector.h
../../../sdk/inc/physics/aabb.h
../../../sdk/inc/physics/aabb_tree.h
../../../sdk/inc/physics/collision_data.h
../../../sdk/inc/physics/collision_mgr.h
../../../sdk/inc/physics/collision_object.h
../../../sdk/inc/physics/coordinate_frame.h
../../../sdk/inc/physics/math_phys.h
../../../sdk/inc/physics/matrix.h
../../../sdk/inc/physics/quaternion.h
../../../sdk/inc/physics/rigid_body.h
../../../sdk/inc/physics/triangle.h
../../../sdk/inc/physics/vector.h
../../../sdk/inc/server_interface.h
../../client/src/client_filemgr.h
../../client/src/client_formatmgr.h
../../client/src/client_graphmgr.h
../../client/src/client_ticks.h
../../client/src/clientde_impl.h
../../client/src/clientexception.h
../../client/src/clientmgr.h
../../client/src/clientshell.h
../../client/src/cmoveabstract.h
../../client/src/console.h
../../client/src/consolecommands.h
../../client/src/customfontfilemgr.h
../../client/src/debuggraphmgr.h
../../client/src/errorlog.h
../../client/src/linesystem.h
../../client/src/ltbenchmark_impl.h
../../client/src/ltinfo_impl.h
../../client/src/ltmessage_client.h
../../client/src/lttexturestring.h
../../client/src/memorywatch.h
../../client/src/particlesystem.h
../../client/src/polygrid.h
../../client/src/predict.h
../../client/src/setupobject.h
../../client/src/sprite.h
../../client/src/sys/win/winclientde_impl.h
../../client/src/sys/win/winconsole_impl.h
../../client/src/sysclient.h
../../client/src/sysclientde_impl.h
../../client/src/sysconsole_impl.h
../../client/src/texturestring.h
../../client/src/texturestringimage.h
../../client/src/volumeeffect.h
../../client/src/watermark.h
../../controlfilemgr/controlfilemgr.h
../../kernel/io/src/sys/win/de_file.h
../../kernel/io/src/sysfile.h
../../kernel/mem/src/de_memory.h
../../kernel/net/src/localdriver.h
../../kernel/net/src/netmgr.h
../../kernel/net/src/packet.h
../../kernel/net/src/sys/win/socket.h
../../kernel/src/dsys.h
../../kernel/src/icommandlineargs.h
../../kernel/src/ithread.h
../../kernel/src/sys/win/appresource.h
../../kernel/src/sys/win/bindmgr.h
../../kernel/src/sys/win/binkvideomgrimpl.h
../../kernel/src/sys/win/counter.h
../../kernel/src/sys/win/dshowvideomgrimpl.h
../../kernel/src/sys/win/dsys_interface.h
../../kernel/src/sys/win/dutil.h
../../kernel/src/sys/win/input.h
../../kernel/src/sys/win/interface_helpers.h
../../kernel/src/sys/win/load_pcx.h
../../kernel/src/sys/win/ltdirectmusic_impl.h
../../kernel/src/sys/win/ltdirectmusiccontrolfile.h
../../kernel/src/sys/win/ltdirectmusicloader.h
../../kernel/src/sys/win/lthread.h
../../kernel/src/sys/win/ltrendermgr_impl.h
../../kernel/src/sys/win/ltthread.h
../../kernel/src/sys/win/musicdriver.h
../../kernel/src/sys/win/render.h
../../kernel/src/sys/win/streamsim.h
../../kernel/src/sys/win/stringmgr.h
../../kernel/src/sys/win/systeminfo.h
../../kernel/src/sys/win/text_mgr.h
../../kernel/src/sys/win/timemgr.h
../../kernel/src/sys/win/version_resource.h
../../kernel/src/sys/win/videomgr.h
../../kernel/src/sys/win/winbind.h
../../kernel/src/syscounter.h
../../kernel/src/sysdebugging.h
../../kernel/src/sysinput.h
../../kernel/src/syslibraryloader.h
../../kernel/src/sysstreamsim.h
../../kernel/src/systhread.h
../../kernel/src/systimer.h
../../kernel/src/sysvideo.h
../../model/src/animtracker.h
../../model/src/ltb.h
../../model/src/model.h
../../model/src/model_ops.h
../../model/src/modelallocations.h
../../model/src/transformmaker.h
../../physics/src/lt_collision_mgr.h
../../render_a/src/sys/d3d/clipline.h
../../render_a/src/sys/d3d/common_draw.h
../../render_a/src/sys/d3d/d3d_convar.h
../../render_a/src/sys/d3d/d3d_device.h
../../render_a/src/sys/d3d/d3d_draw.h
../../render_a/src/sys/d3d/d3d_renderstatemgr.h
../../render_a/src/sys/d3d/d3d_renderstyle.h
../../render_a/src/sys/d3d/d3d_utils.h
../../render_b/src/gendrawprim.h
../../render_b/src/sys/d3d/d3ddrawprim.h
../../render_b/src/sys/d3d/d3dtexinterface.h
../../render_b/src/sysdrawprim.h
../../server/src/classmgr.h
../../server/src/game_serialize.h
../../server/src/interlink.h
../../server/src/ltmessage_server.h
../../server/src/s_client.h
../../server/src/s_concommand.h
../../server/src/s_net.h
../../server/src/s_object.h
../../server/src/server_consolestate.h
../../server/src/server_extradata.h
../../server/src/server_filemgr.h
../../server/src/serverde_impl.h
../../server/src/serverevent.h
../../server/src/serverexception.h
../../server/src/servermgr.h
../../server/src/serverobj.h
../../server/src/smoveabstract.h
../../server/src/soundtrack.h
../../shared/src/bdefs.h
../../shared/src/build_options.h
../../shared/src/classbind.h
../../shared/src/clienthack.h
../../shared/src/collision.h
../../shared/src/colorops.h
../../shared/src/compress.h
../../shared/src/concommand.h
../../shared/src/conparse.h
../../shared/src/debuggeometry.h
../../shared/src/dhashtable.h
../../shared/src/dtxmgr.h
../../shared/src/findobj.h
../../shared/src/ftbase.h
../../shared/src/ftclient.h
../../shared/src/ftserv.h
../../shared/src/gamemath.h
../../shared/src/genericprop_setup.h
../../shared/src/genltstream.h
../../shared/src/geometry.h
../../shared/src/geomroutines.h
../../shared/src/impl_common.h
../../shared/src/lightmap_compress.h
../../shared/src/lightmap_planes.h
../../shared/src/lightmapdefs.h
../../shared/src/ltbbox.h
../../shared/src/ltmessage.h
../../shared/src/ltmutex.h
../../shared/src/lttimer.h
../../shared/src/misctools.h
../../shared/src/motion.h
../../shared/src/moveobject.h
../../shared/src/moveplayer.h
../../shared/src/musicmgr.h
../../shared/src/nexus.h
../../shared/src/objectmgr.h
../../shared/src/packetdefs.h
../../shared/src/parse_world_info.h
../../shared/src/pixelformat.h
../../shared/src/ratetracker.h
../../shared/src/refobj.h
../../shared/src/renderinfostruct.h
../../shared/src/renderobject.h
../../shared/src/shared_iltcommon.h
../../shared/src/stacktrace.h
../../shared/src/staticfifo.h
../../shared/src/stdlterror.h
../../shared/src/strtools.h
../../shared/src/sys/win/d3dddstructs.h
../../shared/src/sys/win/dstreamopenqueuemgr.h
../../shared/src/sys/win/renderstruct.h
../../shared/src/sys/win/winstdlterror.h
../../shared/src/sys/win/winsync.h
../../shared/src/sysddstructs.h
../../shared/src/varsetter.h
../../shared/src/version_info.h
../../sound/src/iltsound.h
../../sound/src/soundbuffer.h
../../sound/src/sounddata.h
../../sound/src/soundinstance.h
../../sound/src/soundmgr.h
../../sound/src/wave.h
../../ui/src/cuipolystring_impl.h
../../world/src/de_mainworld.h
../../world/src/de_objects.h
../../world/src/de_sprite.h
../../world/src/de_world.h
../../world/src/fullintersectline.h
../../world/src/intersect_line.h
../../world/src/light_table.h
../../world/src/loadstatus.h
../../world/src/world_blind_object_data.h
../../world/src/world_blocker_data.h
../../world/src/world_blocker_math.h
@ -313,39 +312,23 @@ set(
../../world/src/world_server.h
../../world/src/world_server_bsp.h
../../world/src/world_shared_bsp.h
../../kernel/src/icommandlineargs.h
../../client/src/client_filemgr.h
../../../sdk/inc/iltmodel.h
../../../sdk/inc/iltcommon.h
../../shared/src/shared_iltcommon.h
../../../sdk/inc/iltcursor.h
../../../sdk/inc/iltphysics.h
../../../sdk/inc/ilttransform.h
../../../sdk/inc/iltsoundmgr.h
../../sound/src/soundmgr.h
../../../sdk/inc/iltvideomgr.h
../../world/src/world_tree.h
../../world/src/worldtreehelper.h
)
if (MSVC)
set(
LTJS_PSRCS
res/client.rc2
lithtech.rc
)
endif ()
set(
SRCS
../../controlfilemgr/controlfilemgr.cpp
../../model/src/animtracker.cpp
../../shared/src/bdefs.cpp
../../kernel/src/sys/win/bindmgr.cpp
../../kernel/src/sys/win/binkvideomgrimpl.cpp
../../shared/src/classbind.cpp
../../server/src/classmgr.cpp
../../kernel/src/sys/win/client.cpp
sources
../../../sdk/inc/lterror.cpp
../../../sdk/inc/ltmodule.cpp
../../../sdk/inc/ltobjref.cpp
../../../sdk/inc/ltquatbase.cpp
../../client/src/client_filemgr.cpp
../../client/src/client_formatmgr.cpp
../../client/src/client_graphmgr.cpp
../../client/src/client_iltcommon.cpp
../../client/src/client_iltmodel.cpp
../../client/src/client_iltphysics.cpp
../../client/src/client_iltvideomgr.cpp
../../client/src/client_ticks.cpp
../../client/src/clientde_impl.cpp
../../client/src/clientmgr.cpp
@ -353,96 +336,83 @@ set(
../../client/src/cmoveabstract.cpp
../../client/src/cnet.cpp
../../client/src/cobject.cpp
../../shared/src/collision.cpp
../../shared/src/compress.cpp
../../shared/src/concommand.cpp
../../shared/src/conparse.cpp
../../client/src/console.cpp
../../client/src/consolecommands.cpp
../../kernel/src/sys/win/counter.cpp
../../client/src/sys/win/customfontfilemgr.cpp
../../client/src/cutil.cpp
../../model/src/sys/d3d/d3d_model_load.cpp
../../render_b/src/sys/d3d/d3ddrawprim.cpp
../../render_b/src/sys/d3d/d3dtexinterface.cpp
../../kernel/io/src/sys/win/de_file.cpp
../../world/src/de_mainworld.cpp
../../kernel/mem/src/sys/win/de_memory.cpp
../../world/src/de_nodes.cpp
../../world/src/de_objects.cpp
../../shared/src/debuggeometry.cpp
../../kernel/src/debugging.cpp
../../client/src/debuggraphmgr.cpp
../../shared/src/dhashtable.cpp
../../kernel/src/sys/win/dshowvideomgrimpl.cpp
../../shared/src/sys/win/dstreamopenqueuemgr.cpp
../../kernel/src/sys/win/dsys_interface.cpp
../../shared/src/dtxmgr.cpp
../../kernel/src/sys/win/dutil.cpp
../../shared/src/engine_vars.cpp
../../client/src/errorlog.cpp
../../shared/src/findobj.cpp
../../shared/src/ftclient.cpp
../../shared/src/ftserv.cpp
../../world/src/fullintersectline.cpp
../../server/src/game_serialize.cpp
../../shared/src/gamemath.cpp
../../shared/src/genericprop_setup.cpp
../../shared/src/genltstream.cpp
../../shared/src/geometry.cpp
../../shared/src/geomroutines.cpp
../../shared/src/impl_common.cpp
../../client/src/linesystem.cpp
../../client/src/ltbenchmark_impl.cpp
../../client/src/ltinfo_impl.cpp
../../client/src/ltmessage_client.cpp
../../client/src/lttexturestring.cpp
../../client/src/memorywatch.cpp
../../client/src/particlesystem.cpp
../../client/src/polygrid.cpp
../../client/src/predict.cpp
../../client/src/setupobject.cpp
../../client/src/shellnet.cpp
../../client/src/shelltransfer.cpp
../../client/src/shellutil.cpp
../../client/src/sprite.cpp
../../client/src/sys/win/customfontfilemgr.cpp
../../client/src/sys/win/texturestringimage.cpp
../../client/src/sys/win/winclientde_impl.cpp
../../client/src/sys/win/winconsole_impl.cpp
../../client/src/texturestring.cpp
../../client/src/volumeeffect.cpp
../../client/src/watermark.cpp
../../client/src/world_client_bsp.cpp
../../controlfilemgr/controlfilemgr.cpp
../../kernel/io/src/sys/win/de_file.cpp
../../kernel/mem/src/ltmemory.cpp
../../kernel/mem/src/sys/win/de_memory.cpp
../../kernel/net/src/localdriver.cpp
../../kernel/net/src/netmgr.cpp
../../kernel/net/src/packet.cpp
../../kernel/net/src/sys/win/udpdriver.cpp
../../kernel/src/debugging.cpp
../../kernel/src/icommandlineargs.cpp
../../kernel/src/sys/win/bindmgr.cpp
../../kernel/src/sys/win/binkvideomgrimpl.cpp
../../kernel/src/sys/win/client.cpp
../../kernel/src/sys/win/counter.cpp
../../kernel/src/sys/win/dshowvideomgrimpl.cpp
../../kernel/src/sys/win/dsys_interface.cpp
../../kernel/src/sys/win/dutil.cpp
../../kernel/src/sys/win/input.cpp
../../kernel/src/sys/win/inputsim.cpp
../../kernel/src/sys/win/interface_helpers.cpp
../../server/src/interlink.cpp
../../world/src/intersect_line.cpp
../../world/src/intersectsweptsphere.cpp
../../shared/src/leech.cpp
../../world/src/light_table.cpp
../../shared/src/lightmap_compress.cpp
../../shared/src/lightmap_planes.cpp
../../client/src/linesystem.cpp
../../kernel/src/sys/win/load_pcx.cpp
../../kernel/net/src/localdriver.cpp
../../client/src/ltbenchmark_impl.cpp
../../kernel/src/sys/win/lt_cursor_impl.cpp
../../kernel/src/sys/win/ltdirectmusic_impl.cpp
../../kernel/src/sys/win/ltdirectmusiccontrolfile.cpp
../../kernel/src/sys/win/ltdirectmusicloader.cpp
../../../sdk/inc/lterror.cpp
../../kernel/src/sys/win/lthread.cpp
../../client/src/ltinfo_impl.cpp
../../kernel/src/sys/win/ltlibraryloader.cpp
../../kernel/mem/src/ltmemory.cpp
../../shared/src/ltmessage.cpp
../../client/src/ltmessage_client.cpp
../../server/src/ltmessage_server.cpp
../../../sdk/inc/ltmodule.cpp
../../../sdk/inc/ltobjref.cpp
../../../sdk/inc/ltquatbase.cpp
../../kernel/src/sys/win/ltrendermgr_impl.cpp
../../client/src/lttexturestring.cpp
../../kernel/src/sys/win/ltthread.cpp
../../shared/src/lttimer.cpp
../../client/src/memorywatch.cpp
../../kernel/src/sys/win/musicdriver.cpp
../../kernel/src/sys/win/render.cpp
../../kernel/src/sys/win/streamsim.cpp
../../kernel/src/sys/win/stringmgr.cpp
../../kernel/src/sys/win/systeminfo.cpp
../../kernel/src/sys/win/text_mgr.cpp
../../kernel/src/sys/win/timemgr.cpp
../../kernel/src/sys/win/version_resource.cpp
../../kernel/src/sys/win/videomgr.cpp
../../model/src/animtracker.cpp
../../model/src/model.cpp
../../model/src/model_load.cpp
../../model/src/modelallocations.cpp
../../shared/src/motion.cpp
../../shared/src/moveobject.cpp
../../shared/src/moveplayer.cpp
../../kernel/src/sys/win/musicdriver.cpp
../../kernel/net/src/netmgr.cpp
../../shared/src/nexus.cpp
../../shared/src/objectmgr.cpp
../../kernel/net/src/packet.cpp
../../shared/src/parse_world_info.cpp
../../client/src/particlesystem.cpp
../../shared/src/pixelformat.cpp
../../client/src/polygrid.cpp
../../client/src/predict.cpp
../../shared/src/ratetracker.cpp
../../kernel/src/sys/win/render.cpp
../../model/src/sys/d3d/d3d_model_load.cpp
../../model/src/transformmaker.cpp
../../render_b/src/sys/d3d/d3ddrawprim.cpp
../../render_b/src/sys/d3d/d3dtexinterface.cpp
../../server/src/classmgr.cpp
../../server/src/game_serialize.cpp
../../server/src/interlink.cpp
../../server/src/ltmessage_server.cpp
../../server/src/s_client.cpp
../../server/src/s_concommand.cpp
../../server/src/s_intersect.cpp
@ -451,81 +421,102 @@ set(
../../server/src/server_consolestate.cpp
../../server/src/server_extradata.cpp
../../server/src/server_filemgr.cpp
../../server/src/server_iltcommon.cpp
../../server/src/server_iltmodel.cpp
../../server/src/server_iltphysics.cpp
../../server/src/server_iltsoundmgr.cpp
../../server/src/serverde_impl.cpp
../../server/src/serverevent.cpp
../../server/src/servermgr.cpp
../../client/src/setupobject.cpp
../../client/src/shellnet.cpp
../../client/src/shelltransfer.cpp
../../client/src/shellutil.cpp
../../server/src/smoveabstract.cpp
../../sound/src/soundbuffer.cpp
../../sound/src/sounddata.cpp
../../sound/src/soundinstance.cpp
../../server/src/soundtrack.cpp
../../client/src/sprite.cpp
../../server/src/world_server_bsp.cpp
../../shared/src/bdefs.cpp
../../shared/src/classbind.cpp
../../shared/src/collision.cpp
../../shared/src/compress.cpp
../../shared/src/concommand.cpp
../../shared/src/conparse.cpp
../../shared/src/debuggeometry.cpp
../../shared/src/dhashtable.cpp
../../shared/src/dtxmgr.cpp
../../shared/src/engine_vars.cpp
../../shared/src/findobj.cpp
../../shared/src/ftclient.cpp
../../shared/src/ftserv.cpp
../../shared/src/gamemath.cpp
../../shared/src/genericprop_setup.cpp
../../shared/src/genltstream.cpp
../../shared/src/geometry.cpp
../../shared/src/geomroutines.cpp
../../shared/src/impl_common.cpp
../../shared/src/interface_linkage.cpp
../../shared/src/leech.cpp
../../shared/src/lightmap_compress.cpp
../../shared/src/lightmap_planes.cpp
../../shared/src/ltmessage.cpp
../../shared/src/lttimer.cpp
../../shared/src/modellt_impl.cpp
../../shared/src/motion.cpp
../../shared/src/moveobject.cpp
../../shared/src/moveplayer.cpp
../../shared/src/nexus.cpp
../../shared/src/objectmgr.cpp
../../shared/src/parse_world_info.cpp
../../shared/src/pixelformat.cpp
../../shared/src/ratetracker.cpp
../../shared/src/shared_iltcommon.cpp
../../shared/src/shared_iltphysics.cpp
../../shared/src/spritecontrolimpl.cpp
../../shared/src/stacktrace.cpp
../../shared/src/stdlterror.cpp
../../kernel/src/sys/win/streamsim.cpp
../../kernel/src/sys/win/stringmgr.cpp
../../shared/src/strtools.cpp
../../kernel/src/sys/win/systeminfo.cpp
../../kernel/src/sys/win/text_mgr.cpp
../../client/src/texturestring.cpp
../../client/src/sys/win/texturestringimage.cpp
../../kernel/src/sys/win/timemgr.cpp
../../model/src/transformmaker.cpp
../../kernel/net/src/sys/win/udpdriver.cpp
../../shared/src/sys/win/dstreamopenqueuemgr.cpp
../../shared/src/transformlt_impl.cpp
../../shared/src/version_info.cpp
../../kernel/src/sys/win/version_resource.cpp
../../kernel/src/sys/win/videomgr.cpp
../../client/src/volumeeffect.cpp
../../client/src/watermark.cpp
../../sound/src/soundbuffer.cpp
../../sound/src/sounddata.cpp
../../sound/src/soundinstance.cpp
../../sound/src/soundmgr.cpp
../../sound/src/wave.cpp
../../client/src/sys/win/winclientde_impl.cpp
../../client/src/sys/win/winconsole_impl.cpp
../../world/src/world_tree.cpp
../../shared/src/interface_linkage.cpp
../../world/src/de_mainworld.cpp
../../world/src/de_nodes.cpp
../../world/src/de_objects.cpp
../../world/src/fullintersectline.cpp
../../world/src/intersect_line.cpp
../../world/src/intersectsweptsphere.cpp
../../world/src/light_table.cpp
../../world/src/world_blind_object_data.cpp
../../world/src/world_blocker_data.cpp
../../world/src/world_blocker_math.cpp
../../client/src/world_client_bsp.cpp
../../world/src/world_particle_blocker_data.cpp
../../server/src/world_server_bsp.cpp
../../world/src/world_shared_bsp.cpp
../../kernel/src/icommandlineargs.cpp
../../client/src/client_filemgr.cpp
../../client/src/client_iltmodel.cpp
../../shared/src/modellt_impl.cpp
../../server/src/server_iltmodel.cpp
../../client/src/client_iltcommon.cpp
../../server/src/server_iltcommon.cpp
../../shared/src/shared_iltcommon.cpp
../../kernel/src/sys/win/lt_cursor_impl.cpp
../../client/src/client_iltphysics.cpp
../../server/src/server_iltphysics.cpp
../../shared/src/shared_iltphysics.cpp
../../shared/src/transformlt_impl.cpp
../../server/src/server_iltsoundmgr.cpp
../../sound/src/soundmgr.cpp
../../client/src/client_iltvideomgr.cpp
../../world/src/world_tree.cpp
)
if (MSVC)
set(
sources
${sources}
lithtech.rc
res/client.rc2
)
endif ()
if (MSVC)
set_source_files_properties(
../../controlfilemgr/controlfilemgr.cpp
../../kernel/src/sys/win/client.cpp
../../client/src/client_formatmgr.cpp
../../client/src/clientmgr.cpp
../../shared/src/compress.cpp
../../kernel/src/sys/win/counter.cpp
../../../sdk/inc/lterror.cpp
../../../sdk/inc/ltmodule.cpp
../../../sdk/inc/ltobjref.cpp
../../../sdk/inc/ltquatbase.cpp
../../shared/src/interface_linkage.cpp
../../client/src/client_formatmgr.cpp
../../client/src/clientmgr.cpp
../../controlfilemgr/controlfilemgr.cpp
../../kernel/src/icommandlineargs.cpp
../../kernel/src/sys/win/client.cpp
../../kernel/src/sys/win/counter.cpp
../../shared/src/compress.cpp
../../shared/src/interface_linkage.cpp
../../shared/src/modellt_impl.cpp
PROPERTIES
# Precompiled Header (None)
@ -541,47 +532,58 @@ if (MSVC)
endif ()
add_executable(
${LTJS_TARGET}
${HDRS}
${SRCS}
ltjs_lith_tech
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lith_tech bdefs.h)
target_compile_definitions(
ltjs_lith_tech
PRIVATE DE_LOCAL_SERVERBIND
PRIVATE DE_CLIENT_COMPILE
PRIVATE DSNDMGR_NO_MFC
PRIVATE DIRECTENGINE_COMPILE
PRIVATE __D3D
PRIVATE __D3DREND
PRIVATE MODEL_SUPPORT_ABC
PRIVATE $<$<CONFIG:DEBUG>:D3D_DEBUG_INFO>
)
set_target_properties(
${LTJS_TARGET}
ltjs_lith_tech
PROPERTIES
OUTPUT_NAME lithtech
RUNTIME_OUTPUT_DIRECTORY ${LTJS_BIN_DIR}
OUTPUT_NAME ltjs_lithtech
)
if (MSVC)
set_target_properties(
${LTJS_TARGET}
ltjs_lith_tech
PROPERTIES
LINK_FLAGS /SUBSYSTEM:WINDOWS
)
set(
PATH_TO_DX_LIBS
path_to_dx_libs
${CMAKE_SOURCE_DIR}/directx/lib/x86
)
endif ()
if (MSVC)
set(
LIBS
${PATH_TO_DX_LIBS}/ddraw.lib
${PATH_TO_DX_LIBS}/d3dx9.lib
${PATH_TO_DX_LIBS}/d3d9.lib
${PATH_TO_DX_LIBS}/dxguid.lib
${PATH_TO_DX_LIBS}/dinput8.lib
${PATH_TO_DX_LIBS}/dplayx.lib
libs
${path_to_dx_libs}/ddraw.lib
${path_to_dx_libs}/d3dx9.lib
${path_to_dx_libs}/d3d9.lib
${path_to_dx_libs}/dxguid.lib
${path_to_dx_libs}/dinput8.lib
${path_to_dx_libs}/dplayx.lib
winmm
)
endif ()
if (MINGW)
if (NOT MSVC)
set(
LIBS
libs
d3d9
d3dx9
dbghelp
@ -593,7 +595,7 @@ if (MINGW)
endif ()
target_link_libraries(
${LTJS_TARGET}
ltjs_lith_tech
ltjs_lib_d3d_render
ltjs_lib_lt_mem
ltjs_lib_rez_mgr
@ -602,5 +604,11 @@ target_link_libraries(
ltjs_lib_lith
ltjs_lib_ui
ltjs_lib_info
${LIBS}
${libs}
)
install(
TARGETS
ltjs_lith_tech
RUNTIME DESTINATION "."
)

View File

@ -1,30 +1,36 @@
set(LTJS_TARGET ltjs_lt_msg)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lt_msg VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
set(
HDRS
headers
resource.h
)
set(
SRCS
sources
init.cpp
lang/en/ltmsg.rc
)
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_lt_msg SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lt_msg)
set_target_properties(
${LTJS_TARGET}
ltjs_lt_msg
PROPERTIES
OUTPUT_NAME ltmsg
OUTPUT_NAME ltjs_ltmsg
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY ${LTJS_BIN_DIR}
)
install(
TARGETS
ltjs_lt_msg
RUNTIME DESTINATION "."
)

View File

@ -1,116 +1,64 @@
set(LTJS_TARGET ltjs_server)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_server VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(bdefs.h)
add_definitions(-DDE_SERVER_COMPILE)
add_definitions(-DDIRECTENGINE_COMPILE)
add_definitions(-DSTDLITH_ALLOC_OVERRIDE)
add_definitions(-DLT15_COMPAT)
add_definitions(-DNO_PRAGMA_LIBS)
add_definitions(-D__D3D)
add_definitions(-D__D3DREND)
include_directories(
../../../../directx/include
../../server/src
../../physics/src
../../client/src
../../sound/src
../../kernel/src
../../shared/src/sys/win
../../kernel/mem/src
../../kernel/io/src
../../kernel/src/sys/win
../../kernel/net/src
../../../sdk/inc
../../../sdk/inc/compat
../../shared/src
../../model/src
.
../../kernel/net
../../world/src
../../../../directx/include
../../../../libs/lith
../../../../libs/stdlith
../../../libs/rezmgr
../../../../libs/lith
../../lithtemplate
../../../sdk/inc
../../../sdk/inc/compat
../../../sdk/inc/physics
../../../sdk/inc/state_mgr
../../client/src
../../kernel/io/src
../../kernel/mem/src
../../kernel/net
../../kernel/net/src
../../kernel/src
../../kernel/src/sys/win
../../lithtemplate
../../model/src
../../physics/src
../../server/src
../../shared/src
../../shared/src/sys/win
../../sound/src
../../world/src
)
set(
HDRS
../../../sdk/inc/physics/aabb.h
../../../sdk/inc/physics/aabb_tree.h
../../model/src/animtracker.h
../../kernel/src/sys/win/appresource.h
../../shared/src/bdefs.h
../../kernel/src/sys/win/bindmgr.h
../../shared/src/build_options.h
../../shared/src/classbind.h
../../server/src/classmgr.h
../../client/src/client_filemgr.h
../../shared/src/clienthack.h
../../client/src/clientmgr.h
../../client/src/clientshell.h
../../shared/src/collision.h
../../../sdk/inc/physics/collision_data.h
../../../sdk/inc/physics/collision_mgr.h
../../../sdk/inc/physics/collision_object.h
../../shared/src/concommand.h
../../shared/src/conparse.h
../../client/src/console.h
../../../sdk/inc/physics/coordinate_frame.h
../../shared/src/sys/win/d3dddstructs.h
../../world/src/de_mainworld.h
../../kernel/mem/src/de_memory.h
../../world/src/de_objects.h
../../world/src/de_sprite.h
../../world/src/de_world.h
../../shared/src/debuggeometry.h
../../shared/src/dhashtable.h
../../kernel/src/dsys.h
../../shared/src/dtxmgr.h
../../kernel/src/sys/win/dutil.h
../../shared/src/ftbase.h
../../shared/src/ftserv.h
../../world/src/fullintersectline.h
../../server/src/game_serialize.h
../../shared/src/gamemath.h
../../shared/src/genericprop_setup.h
../../shared/src/genltstream.h
../../shared/src/geometry.h
../../shared/src/geomroutines.h
headers
../../../libs/rezmgr/rezfile.h
../../../libs/rezmgr/rezhash.h
../../../libs/rezmgr/rezmgr.h
../../../libs/rezmgr/reztypes.h
../../../sdk/inc/iaggregate.h
../../../sdk/inc/iclientshell.h
../../../sdk/inc/iltbenchmark.h
../../../sdk/inc/iltclient.h
../../../sdk/inc/iltcommon.h
../../../sdk/inc/iltcsbase.h
../../../sdk/inc/iltdirectmusic.h
../../../sdk/inc/iltdrawprim.h
../../../sdk/inc/iltinfo.h
../../../sdk/inc/iltmessage.h
../../../sdk/inc/iltmodel.h
../../../sdk/inc/iltphysics.h
../../../sdk/inc/iltrefcount.h
../../../sdk/inc/iltserver.h
../../sound/src/iltsound.h
../../../sdk/inc/iltsoundmgr.h
../../../sdk/inc/iltspritecontrol.h
../../../sdk/inc/iltstream.h
../../../sdk/inc/ilttexinterface.h
../../shared/src/impl_common.h
../../server/src/interlink.h
../../world/src/intersect_line.h
../../../sdk/inc/ilttransform.h
../../../sdk/inc/iservershell.h
../../kernel/src/ithread.h
../../world/src/light_table.h
../../shared/src/lightmap_planes.h
../../shared/src/listqueue.h
../../../sdk/inc/lithtech.h
../../world/src/loadstatus.h
../../kernel/net/src/localdriver.h
../../../sdk/inc/ltanimtracker.h
../../../sdk/inc/ltassert.h
../../model/src/ltb.h
../../../sdk/inc/ltbasedefs.h
../../../sdk/inc/ltbasetypes.h
../../../sdk/inc/ltcodes.h
@ -118,8 +66,6 @@ set(
../../../sdk/inc/ltinteger.h
../../../sdk/inc/ltlink.h
../../../sdk/inc/ltmatrix.h
../../shared/src/ltmessage.h
../../server/src/ltmessage_server.h
../../../sdk/inc/ltmodule.h
../../../sdk/inc/ltplane.h
../../../sdk/inc/ltpvalue.h
@ -127,36 +73,69 @@ set(
../../../sdk/inc/ltrect.h
../../../sdk/inc/ltrenderstyle.h
../../../sdk/inc/ltserverobj.h
../../shared/src/lttimer.h
../../../sdk/inc/ltvector.h
../../../sdk/inc/physics/aabb.h
../../../sdk/inc/physics/aabb_tree.h
../../../sdk/inc/physics/collision_data.h
../../../sdk/inc/physics/collision_mgr.h
../../../sdk/inc/physics/collision_object.h
../../../sdk/inc/physics/coordinate_frame.h
../../../sdk/inc/physics/math_phys.h
../../../sdk/inc/physics/matrix.h
../../../sdk/inc/physics/quaternion.h
../../../sdk/inc/physics/triangle.h
../../../sdk/inc/physics/vector.h
../../../sdk/inc/server_interface.h
../../client/src/client_filemgr.h
../../client/src/clientmgr.h
../../client/src/clientshell.h
../../client/src/console.h
../../client/src/predict.h
../../client/src/setupobject.h
../../kernel/io/src/sys/win/de_file.h
../../kernel/io/src/sysfile.h
../../kernel/mem/src/de_memory.h
../../kernel/net/src/localdriver.h
../../kernel/net/src/netmgr.h
../../kernel/net/src/sys/linux/linux_ltthread.h
../../kernel/net/src/sys/linux/linux_ltthreadevent.h
../../kernel/net/src/sys/win/udpdriver.h
../../kernel/net/src/sys/win/win32_ltthread.h
../../kernel/net/src/sys/win/win32_ltthreadevent.h
../../kernel/net/src/syssocket.h
../../kernel/net/src/sysudpdriver.h
../../kernel/net/src/sysudpthread.h
../../kernel/src/dsys.h
../../kernel/src/ithread.h
../../kernel/src/sys/win/appresource.h
../../kernel/src/sys/win/bindmgr.h
../../kernel/src/sys/win/counter.h
../../kernel/src/sys/win/dsys_interface.h
../../kernel/src/sys/win/dutil.h
../../kernel/src/sys/win/lthread.h
../../kernel/src/sys/win/ltthread.h
../../kernel/src/sys/win/render.h
../../kernel/src/sys/win/streamsim.h
../../kernel/src/sys/win/stringmgr.h
../../kernel/src/sys/win/timemgr.h
../../kernel/src/sys/win/version_resource.h
../../kernel/src/syscounter.h
../../kernel/src/syslibraryloader.h
../../kernel/src/syslthread.h
../../kernel/src/sysstreamsim.h
../../kernel/src/syssysteminfo.h
../../kernel/src/systhread.h
../../kernel/src/systimer.h
../../model/src/animtracker.h
../../model/src/ltb.h
../../model/src/model.h
../../model/src/model_ops.h
../../model/src/modelallocations.h
../../shared/src/motion.h
../../shared/src/moveobject.h
../../shared/src/moveplayer.h
../../shared/src/musicmgr.h
../../kernel/net/src/netmgr.h
../../shared/src/nexus.h
../../shared/src/objectmgr.h
../../shared/src/packetdefs.h
../../shared/src/parse_world_info.h
../../shared/src/pixelformat.h
../../client/src/predict.h
../../../sdk/inc/physics/quaternion.h
../../shared/src/ratetracker.h
../../shared/src/refobj.h
../../kernel/src/sys/win/render.h
../../shared/src/renderinfostruct.h
../../shared/src/renderobject.h
../../shared/src/sys/win/renderstruct.h
resource.h
../../../libs/rezmgr/rezfile.h
../../../libs/rezmgr/rezhash.h
../../../libs/rezmgr/rezmgr.h
../../../libs/rezmgr/reztypes.h
../../model/src/transformmaker.h
../../server/src/classmgr.h
../../server/src/game_serialize.h
../../server/src/interlink.h
../../server/src/ltmessage_server.h
../../server/src/s_client.h
../../server/src/s_concommand.h
../../server/src/s_net.h
@ -164,127 +143,119 @@ set(
../../server/src/server_consolestate.h
../../server/src/server_extradata.h
../../server/src/server_filemgr.h
../../../sdk/inc/server_interface.h
../../server/src/server_loaderthread.h
../../server/src/serverde_impl.h
../../server/src/serverevent.h
../../server/src/serverexception.h
../../server/src/servermgr.h
../../server/src/serverobj.h
../../client/src/setupobject.h
../../server/src/sloaderthread.h
../../server/src/smoveabstract.h
../../sound/src/soundbuffer.h
../../sound/src/sounddata.h
../../sound/src/soundinstance.h
../../server/src/soundtrack.h
../../shared/src/bdefs.h
../../shared/src/build_options.h
../../shared/src/classbind.h
../../shared/src/clienthack.h
../../shared/src/collision.h
../../shared/src/concommand.h
../../shared/src/conparse.h
../../shared/src/debuggeometry.h
../../shared/src/dhashtable.h
../../shared/src/dtxmgr.h
../../shared/src/ftbase.h
../../shared/src/ftserv.h
../../shared/src/gamemath.h
../../shared/src/genericprop_setup.h
../../shared/src/genltstream.h
../../shared/src/geometry.h
../../shared/src/geomroutines.h
../../shared/src/impl_common.h
../../shared/src/lightmap_planes.h
../../shared/src/listqueue.h
../../shared/src/ltmessage.h
../../shared/src/lttimer.h
../../shared/src/motion.h
../../shared/src/moveobject.h
../../shared/src/moveplayer.h
../../shared/src/musicmgr.h
../../shared/src/nexus.h
../../shared/src/objectmgr.h
../../shared/src/packetdefs.h
../../shared/src/parse_world_info.h
../../shared/src/pixelformat.h
../../shared/src/ratetracker.h
../../shared/src/refobj.h
../../shared/src/renderinfostruct.h
../../shared/src/renderobject.h
../../shared/src/shared_iltcommon.h
../../shared/src/stacktrace.h
../../shared/src/staticfifo.h
../../shared/src/stdlterror.h
../../kernel/src/sys/win/stringmgr.h
../../kernel/src/syscounter.h
../../shared/src/sys/win/d3dddstructs.h
../../shared/src/sys/win/renderstruct.h
../../shared/src/sysddstructs.h
../../kernel/io/src/sysfile.h
../../kernel/src/syslibraryloader.h
../../kernel/src/syslthread.h
../../kernel/net/src/syssocket.h
../../kernel/src/sysstreamsim.h
../../kernel/src/systhread.h
../../kernel/src/systimer.h
../../kernel/net/src/sysudpdriver.h
../../kernel/net/src/sysudpthread.h
../../model/src/transformmaker.h
../../../sdk/inc/physics/triangle.h
../../kernel/net/src/sys/win/udpdriver.h
../../../sdk/inc/physics/vector.h
../../shared/src/version_info.h
../../kernel/src/sys/win/version_resource.h
../../sound/src/iltsound.h
../../sound/src/soundbuffer.h
../../sound/src/sounddata.h
../../sound/src/soundinstance.h
../../sound/src/wave.h
../../world/src/de_mainworld.h
../../world/src/de_objects.h
../../world/src/de_sprite.h
../../world/src/de_world.h
../../world/src/fullintersectline.h
../../world/src/intersect_line.h
../../world/src/light_table.h
../../world/src/loadstatus.h
../../world/src/world_blind_object_data.h
../../world/src/world_blocker_data.h
../../world/src/world_client.h
../../world/src/world_client_bsp.h
../../world/src/world_particle_blocker_data.h
../../world/src/world_tree.h
../../world/src/worldtreehelper.h
../../kernel/src/sys/win/counter.h
../../kernel/io/src/sys/win/de_file.h
../../kernel/src/sys/win/dsys_interface.h
../../kernel/src/sys/win/lthread.h
../../kernel/src/sys/win/ltthread.h
../../kernel/src/sys/win/streamsim.h
../../kernel/src/syssysteminfo.h
../../kernel/src/sys/win/timemgr.h
../../kernel/net/src/sys/win/win32_ltthread.h
../../kernel/net/src/sys/win/win32_ltthreadevent.h
../../kernel/net/src/sys/linux/linux_ltthread.h
../../kernel/net/src/sys/linux/linux_ltthreadevent.h
../../world/src/world_interface.h
../../world/src/world_particle_blocker_data.h
../../world/src/world_server.h
../../world/src/world_server_bsp.h
../../world/src/world_shared_bsp.h
../../../sdk/inc/iltmodel.h
../../../sdk/inc/iltcommon.h
../../shared/src/shared_iltcommon.h
../../../sdk/inc/iltsoundmgr.h
../../../sdk/inc/ilttransform.h
../../../sdk/inc/iltphysics.h
../../world/src/world_tree.h
../../world/src/worldtreehelper.h
resource.h
)
set(
SRCS
../../model/src/animtracker.cpp
../../shared/src/bdefs.cpp
../../kernel/src/sys/win/bindmgr.cpp
../../shared/src/classbind.cpp
../../server/src/classmgr.cpp
../../shared/src/collision.cpp
../../shared/src/compress.cpp
../../shared/src/concommand.cpp
../../shared/src/conparse.cpp
../../model/src/sys/d3d/d3d_model_load.cpp
../../world/src/de_mainworld.cpp
../../world/src/de_nodes.cpp
../../world/src/de_objects.cpp
../../kernel/src/debugging.cpp
../../shared/src/dhashtable.cpp
../../kernel/src/sys/win/dutil.cpp
../../shared/src/engine_vars.cpp
../../shared/src/findobj.cpp
../../shared/src/ftserv.cpp
../../world/src/fullintersectline.cpp
../../server/src/game_serialize.cpp
../../shared/src/gamemath.cpp
../../shared/src/genericprop_setup.cpp
../../shared/src/genltstream.cpp
../../shared/src/geometry.cpp
../../shared/src/geomroutines.cpp
../../shared/src/impl_common.cpp
../../server/src/interlink.cpp
../../world/src/intersect_line.cpp
../../world/src/intersectsweptsphere.cpp
../../shared/src/leech.cpp
../../world/src/light_table.cpp
../../shared/src/lightmap_planes.cpp
../../kernel/net/src/localdriver.cpp
../../shared/src/ltmessage.cpp
../../server/src/ltmessage_server.cpp
sources
../../../sdk/inc/ltmodule.cpp
../../../sdk/inc/ltobjref.cpp
../../../sdk/inc/ltquatbase.cpp
../../shared/src/lttimer.cpp
../../kernel/io/src/sys/win/de_file.cpp
../../kernel/mem/src/sys/win/de_memory.cpp
../../kernel/net/src/localdriver.cpp
../../kernel/net/src/netmgr.cpp
../../kernel/net/src/packet.cpp
../../kernel/net/src/sys/win/udpdriver.cpp
../../kernel/src/debugging.cpp
../../kernel/src/server_interface.cpp
../../kernel/src/sys/win/bindmgr.cpp
../../kernel/src/sys/win/counter.cpp
../../kernel/src/sys/win/dsys_interface.cpp
../../kernel/src/sys/win/dutil.cpp
../../kernel/src/sys/win/lthread.cpp
../../kernel/src/sys/win/ltlibraryloader.cpp
../../kernel/src/sys/win/ltthread.cpp
../../kernel/src/sys/win/streamsim.cpp
../../kernel/src/sys/win/stringmgr.cpp
../../kernel/src/sys/win/systeminfo.cpp
../../kernel/src/sys/win/timemgr.cpp
../../model/src/animtracker.cpp
../../model/src/model.cpp
../../model/src/model_load.cpp
../../model/src/modelallocations.cpp
../../shared/src/motion.cpp
../../shared/src/moveobject.cpp
../../shared/src/moveplayer.cpp
../../kernel/net/src/netmgr.cpp
../../shared/src/nexus.cpp
../../shared/src/objectmgr.cpp
../../kernel/net/src/packet.cpp
../../shared/src/parse_world_info.cpp
../../shared/src/ratetracker.cpp
../../model/src/sys/d3d/d3d_model_load.cpp
../../model/src/transformmaker.cpp
../../server/src/classmgr.cpp
../../server/src/game_serialize.cpp
../../server/src/interlink.cpp
../../server/src/ltmessage_server.cpp
../../server/src/s_client.cpp
../../server/src/s_concommand.cpp
../../server/src/s_intersect.cpp
@ -293,71 +264,91 @@ set(
../../server/src/server_consolestate.cpp
../../server/src/server_extradata.cpp
../../server/src/server_filemgr.cpp
../../kernel/src/server_interface.cpp
../../server/src/server_iltcommon.cpp
../../server/src/server_iltmodel.cpp
../../server/src/server_iltphysics.cpp
../../server/src/server_iltsoundmgr.cpp
../../server/src/server_loaderthread.cpp
../../server/src/serverde_impl.cpp
../../server/src/serverevent.cpp
../../server/src/servermgr.cpp
../../server/src/sloaderthread.cpp
../../server/src/smoveabstract.cpp
../../sound/src/sounddata.cpp
../../server/src/soundtrack.cpp
../../server/src/world_server_bsp.cpp
../../shared/src/bdefs.cpp
../../shared/src/classbind.cpp
../../shared/src/collision.cpp
../../shared/src/compress.cpp
../../shared/src/concommand.cpp
../../shared/src/conparse.cpp
../../shared/src/dhashtable.cpp
../../shared/src/engine_vars.cpp
../../shared/src/findobj.cpp
../../shared/src/ftserv.cpp
../../shared/src/gamemath.cpp
../../shared/src/genericprop_setup.cpp
../../shared/src/genltstream.cpp
../../shared/src/geometry.cpp
../../shared/src/geomroutines.cpp
../../shared/src/impl_common.cpp
../../shared/src/interface_linkage.cpp
../../shared/src/leech.cpp
../../shared/src/lightmap_planes.cpp
../../shared/src/ltmessage.cpp
../../shared/src/lttimer.cpp
../../shared/src/modellt_impl.cpp
../../shared/src/motion.cpp
../../shared/src/moveobject.cpp
../../shared/src/moveplayer.cpp
../../shared/src/nexus.cpp
../../shared/src/objectmgr.cpp
../../shared/src/parse_world_info.cpp
../../shared/src/ratetracker.cpp
../../shared/src/shared_iltcommon.cpp
../../shared/src/shared_iltphysics.cpp
../../shared/src/spritecontrolimpl.cpp
../../shared/src/stacktrace.cpp
../../shared/src/stdlterror.cpp
../../kernel/src/sys/win/stringmgr.cpp
../../shared/src/strtools.cpp
../../model/src/transformmaker.cpp
../../kernel/net/src/sys/win/udpdriver.cpp
../../shared/src/transformlt_impl.cpp
../../sound/src/sounddata.cpp
../../sound/src/wave.cpp
../../world/src/de_mainworld.cpp
../../world/src/de_nodes.cpp
../../world/src/de_objects.cpp
../../world/src/fullintersectline.cpp
../../world/src/intersect_line.cpp
../../world/src/intersectsweptsphere.cpp
../../world/src/light_table.cpp
../../world/src/world_blind_object_data.cpp
../../world/src/world_blocker_data.cpp
../../world/src/world_blocker_math.cpp
../../world/src/world_particle_blocker_data.cpp
../../world/src/world_tree.cpp
../../kernel/src/sys/win/counter.cpp
../../kernel/io/src/sys/win/de_file.cpp
../../kernel/mem/src/sys/win/de_memory.cpp
../../kernel/src/sys/win/dsys_interface.cpp
../../kernel/src/sys/win/lthread.cpp
../../kernel/src/sys/win/ltlibraryloader.cpp
../../kernel/src/sys/win/ltthread.cpp
../../kernel/src/sys/win/streamsim.cpp
../../kernel/src/sys/win/systeminfo.cpp
../../kernel/src/sys/win/timemgr.cpp
../../shared/src/interface_linkage.cpp
../../server/src/world_server_bsp.cpp
../../world/src/world_shared_bsp.cpp
../../shared/src/modellt_impl.cpp
../../server/src/server_iltmodel.cpp
../../server/src/server_iltcommon.cpp
../../shared/src/shared_iltcommon.cpp
../../server/src/server_iltsoundmgr.cpp
../../shared/src/transformlt_impl.cpp
../../server/src/server_iltphysics.cpp
../../shared/src/shared_iltphysics.cpp
../../world/src/world_tree.cpp
)
if (MSVC)
set_source_files_properties(
../../world/src/de_nodes.cpp
../../kernel/src/debugging.cpp
../../kernel/src/sys/win/dutil.cpp
../../../sdk/inc/ltmodule.cpp
../../../sdk/inc/ltobjref.cpp
../../../sdk/inc/ltquatbase.cpp
../../kernel/src/server_interface.cpp
../../sound/src/sounddata.cpp
../../kernel/src/sys/win/stringmgr.cpp
../../sound/src/wave.cpp
../../kernel/src/sys/win/counter.cpp
../../kernel/io/src/sys/win/de_file.cpp
../../kernel/mem/src/sys/win/de_memory.cpp
../../kernel/src/debugging.cpp
../../kernel/src/server_interface.cpp
../../kernel/src/sys/win/counter.cpp
../../kernel/src/sys/win/dsys_interface.cpp
../../kernel/src/sys/win/dutil.cpp
../../kernel/src/sys/win/lthread.cpp
../../kernel/src/sys/win/streamsim.cpp
../../kernel/src/sys/win/stringmgr.cpp
../../kernel/src/sys/win/timemgr.cpp
../../shared/src/interface_linkage.cpp
../../sound/src/sounddata.cpp
../../sound/src/wave.cpp
../../world/src/de_nodes.cpp
PROPERTIES
# Precompiled Header (None)
COMPILE_FLAGS -Y-
@ -371,50 +362,62 @@ if (MSVC)
)
set(
PSRCS
sources
${sources}
server.def
server.rc
)
endif ()
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
${PSRCS}
ltjs_server SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_server bdefs.h)
target_compile_definitions(
ltjs_server
PRIVATE DE_SERVER_COMPILE
PRIVATE DIRECTENGINE_COMPILE
PRIVATE STDLITH_ALLOC_OVERRIDE
PRIVATE LT15_COMPAT
PRIVATE NO_PRAGMA_LIBS
PRIVATE __D3D
PRIVATE __D3DREND
)
set_target_properties(
${LTJS_TARGET}
ltjs_server
PROPERTIES
OUTPUT_NAME server
OUTPUT_NAME ltjs_server
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY ${LTJS_BIN_DIR}
)
if (MSVC)
set_target_properties(
${LTJS_TARGET}
ltjs_server
PROPERTIES
LINK_FLAGS /SUBSYSTEM:WINDOWS
)
set(
PATH_TO_DX_LIBS
path_to_dx_libs
${CMAKE_SOURCE_DIR}/directx/lib/x86
)
set(
LIBS
${PATH_TO_DX_LIBS}/dxguid.lib
${PATH_TO_DX_LIBS}/dplayx.lib
libs
${path_to_dx_libs}/dxguid.lib
${path_to_dx_libs}/dplayx.lib
winmm
)
endif ()
if (MINGW)
if (NOT MSVC)
set(
LIBS
libs
dbghelp
winmm
ws2_32
@ -422,11 +425,17 @@ if (MINGW)
endif ()
target_link_libraries(
${LTJS_TARGET}
ltjs_server
ltjs_lib_rez_mgr
ltjs_lib_lith
ltjs_lib_std_lith
ltjs_lib_lt_mem
ltjs_lib_info
${LIBS}
${libs}
)
install(
TARGETS
ltjs_server
RUNTIME DESTINATION "."
)

View File

@ -1,8 +1,6 @@
; server.def : Declares the module parameters.
LIBRARY "server.DLL"
EXPORTS
CreateServer @1
DeleteServer @2
DeleteServer @2

View File

@ -1,35 +1,32 @@
set(LTJS_TARGET ltjs_game_client_fx)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_game_client_fx VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(stdafx.h)
add_definitions(-DMEMTRACK_CLIENTFX)
include_directories(
../libs/ltguimgr
../shared
../../engine/sdk/inc
../../libs/mfcstub
../../libs/stdlith
../../libs/butemgr
../../libs/cryptmgr
../../libs/lith
../../libs/mfcstub
../../libs/stdlith
../libs/ltguimgr
../shared
)
set(
HDRS
headers
../shared/bankedlist.h
../shared/bankedlist_impl.h
../shared/basefx.h
../shared/debugnew.h
../shared/debugnew_impl.h
bouncychunkfx.h
camjitterfx.h
camwobblefx.h
clientfx.h
createfx.h
cycletimer.h
../shared/debugnew.h
../shared/debugnew_impl.h
dynalightfx.h
fallingstufffx.h
flarespritefx.h
@ -51,7 +48,10 @@ set(
)
set(
SRCS
sources
../../engine/sdk/inc/ltmodule.cpp
../../engine/sdk/inc/ltquatbase.cpp
../shared/debugnew.cpp
basefx.cpp
bouncychunkfx.cpp
camjitterfx.cpp
@ -59,15 +59,12 @@ set(
clientfx.cpp
createfx.cpp
cycletimer.cpp
../shared/debugnew.cpp
dynalightfx.cpp
fallingstufffx.cpp
flarespritefx.cpp
lightningfx.cpp
ltbbouncychunkfx.cpp
ltbmodelfx.cpp
../../engine/sdk/inc/ltmodule.cpp
../../engine/sdk/inc/ltquatbase.cpp
nullfx.cpp
particlesystemfx.cpp
playrandomsoundfx.cpp
@ -97,24 +94,34 @@ if (MSVC)
endif ()
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_game_client_fx SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_game_client_fx stdafx.h)
target_compile_definitions(
ltjs_game_client_fx
PRIVATE MEMTRACK_CLIENTFX)
set_target_properties(
ltjs_game_client_fx
PROPERTIES
OUTPUT_NAME ltjs_clientfx
PREFIX ""
)
if (MSVC)
set_target_properties(
${LTJS_TARGET}
ltjs_game_client_fx
PROPERTIES
LINK_FLAGS /SUBSYSTEM:WINDOWS
)
endif ()
set_target_properties(
${LTJS_TARGET}
PROPERTIES
OUTPUT_NAME clientfx
PREFIX ""
SUFFIX .fxd
RUNTIME_OUTPUT_DIRECTORY ${LTJS_GAME_BIN_DIR}
install(
TARGETS
ltjs_game_client_fx
RUNTIME DESTINATION "./Game"
)

View File

@ -1,9 +1,8 @@
set(LTJS_TARGET ltjs_to2_client_res)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_to2_client_res VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
../shared
../shared/lang/en
@ -11,27 +10,34 @@ include_directories(
)
set(
HDRS
headers
clientres.h
../shared/clientresshared.h
)
set(
SRCS
sources
lang/en/clientres.rc
main.cpp
)
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_to2_client_res SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_to2_client_res)
set_target_properties(
${LTJS_TARGET}
ltjs_to2_client_res
PROPERTIES
OUTPUT_NAME cres
OUTPUT_NAME ltjs_cres
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY ${LTJS_TO2_BIN_DIR}
)
install(
TARGETS
ltjs_to2_client_res
RUNTIME DESTINATION "./Game"
)

View File

@ -1,37 +1,51 @@
set(LTJS_TARGET ltjs_lib_client_shell)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_client_shell VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(stdafx.h)
add_definitions(-D_CLIENTBUILD)
add_definitions(-DMEMTRACK_CLIENT)
if (MSVC)
add_compile_options(-GR)
endif ()
include_directories(
.
../../clientres/shared
../../shared
../
../../../engine/sdk/inc
../../../libs/stdlith
../../../libs/butemgr
../../../libs/cryptmgr
../../../libs/lith
../../../libs/mfcstub
../../libs/ltguimgr
../../../libs/regmgr
../
../../../libs/stdlith
../../clientres/shared
../../libs/ltguimgr
../../libs/serverdir
../../shared
)
set(
HDRS
activateobjectfx.h
headers
../../../engine/sdk/inc/iltbaseclass.h
../../../engine/sdk/inc/lteulerangles.h
../../../engine/sdk/inc/ltmodule.h
../../shared/activatetypemgr.h
../../shared/activationdata.h
../../shared/clientservershared.h
../../shared/crc32.h
../../shared/impacttype.h
../../shared/keymgr.h
../../shared/missionbutemgr.h
../../shared/profileutils.h
../../shared/radartypemgr.h
../../shared/saveloadmgr.h
../../shared/scmdconsole.h
../../shared/scmdshared.h
../../shared/searchitemmgr.h
../../shared/sharedmission.h
../../shared/sharedscoring.h
../../shared/teammgr.h
../../shared/trackednodecontext.h
../../shared/triggertypemgr.h
../../shared/uberassert.h
../../shared/wavefn.h
../../shared/winutil.h
activateobjectfx.h
baselinesystemfx.h
basemenu.h
baseparticlesystemfx.h
@ -53,7 +67,6 @@ set(
clientinfomgr.h
clientmultiplayermgr.h
clientsaveloadmgr.h
../../shared/clientservershared.h
clientsoundmgr.h
clienttrackednodecontext.h
clienttrackednodemgr.h
@ -65,7 +78,6 @@ set(
clientweaponnone.h
clientweaponutils.h
cmovemgr.h
../../shared/crc32.h
credits.h
cursormgr.h
damagefxmgr.h
@ -106,8 +118,6 @@ set(
hudscores.h
hudsubtitles.h
hudtransmission.h
../../../engine/sdk/inc/iltbaseclass.h
../../shared/impacttype.h
intelitemlist.h
interfacemgr.h
interfaceresmgr.h
@ -115,7 +125,6 @@ set(
interfacetimer.h
ipmgr.h
jumpvolumefx.h
../../shared/keymgr.h
laserbeam.h
lasertriggerfx.h
layoutmgr.h
@ -127,8 +136,6 @@ set(
lightscalemgr.h
linesystemfx.h
loadingscreen.h
../../../engine/sdk/inc/lteulerangles.h
../../../engine/sdk/inc/ltmodule.h
marksfx.h
menuenum.h
menuintel.h
@ -140,7 +147,6 @@ set(
menusystem.h
messagebox.h
minefx.h
../../shared/missionbutemgr.h
missionmgr.h
music.h
muzzleflashfx.h
@ -173,21 +179,16 @@ set(
popupmgr.h
popuptext.h
profilemgr.h
../../shared/profileutils.h
projectilefx.h
pvfxmgr.h
radarobjectfx.h
../../shared/radartypemgr.h
ragdoll.h
ragdollconstraint.h
ragdollnode.h
randomsparksfx.h
resource.h
../../shared/saveloadmgr.h
scatterfx.h
../../shared/scmdconsole.h
scmdconsoledriver_cshell.h
../../shared/scmdshared.h
screencommands.h
screenenum.h
screenmgr.h
@ -196,12 +197,9 @@ set(
screenspritemgr.h
screentintmgr.h
searcher.h
../../shared/searchitemmgr.h
searchlightfx.h
sfxmgr.h
shareddefs.h
../../shared/sharedmission.h
../../shared/sharedscoring.h
shellcasingfx.h
skillcontrol.h
smokefx.h
@ -216,34 +214,78 @@ set(
steamfx.h
systemdependant.h
targetmgr.h
../../shared/teammgr.h
texturefxmgr.h
timedtext.h
tracerfx.h
../../shared/trackednodecontext.h
triggerfx.h
../../shared/triggertypemgr.h
../../shared/uberassert.h
vartrack.h
vehiclemgr.h
visionmodemgr.h
vkdefs.h
volumebrushfx.h
../../shared/wavefn.h
weaponchooser.h
weaponfx.h
weaponstringdefs.h
weatherfx.h
../../shared/winutil.h
)
set(
SRCS
activateobjectfx.cpp
sources
../../../engine/sdk/inc/iltbaseclass.cpp
../../../engine/sdk/inc/lteulerangles.cpp
../../../engine/sdk/inc/ltmodule.cpp
../../../engine/sdk/inc/ltobjref.cpp
../../../engine/sdk/inc/ltquatbase.cpp
../../shared/activatetypemgr.cpp
../../shared/animator.cpp
../../shared/assertmgr.cpp
../../shared/attachbutemgr.cpp
../../shared/butelistreader.cpp
../../shared/clientservershared.cpp
../../shared/commonutilities.cpp
../../shared/crc32.cpp
../../shared/damagetypes.cpp
../../shared/debrismgr.cpp
../../shared/debugline.cpp
../../shared/debugnew.cpp
../../shared/fxbutemgr.cpp
../../shared/fxstructs.cpp
../../shared/gamealloc.cpp
../../shared/gamebutemgr.cpp
../../shared/globalmgr.cpp
../../shared/keymgr.cpp
../../shared/missionbutemgr.cpp
../../shared/modelbutemgr.cpp
../../shared/netdefs.cpp
../../shared/parsedmsg.cpp
../../shared/profileutils.cpp
../../shared/radartypemgr.cpp
../../shared/saveloadmgr.cpp
../../shared/scmdconsole.cpp
../../shared/searchitemmgr.cpp
../../shared/sharedfxstructs.cpp
../../shared/sharedmission.cpp
../../shared/sharedscoring.cpp
../../shared/skillsbutemgr.cpp
../../shared/soundbutemgr.cpp
../../shared/soundfiltermgr.cpp
../../shared/soundmgr.cpp
../../shared/stacktrace.cpp
../../shared/surfacefunctions.cpp
../../shared/surfacemgr.cpp
../../shared/teammgr.cpp
../../shared/templatelist.cpp
../../shared/trackednode.cpp
../../shared/trackednodecontext.cpp
../../shared/trackednodecontrolfn.cpp
../../shared/trackednodemgr.cpp
../../shared/triggertypemgr.cpp
../../shared/uberassert.cpp
../../shared/versionmgr.cpp
../../shared/wavefn.cpp
../../shared/weaponmgr.cpp
../../shared/winutil.cpp
activateobjectfx.cpp
baselinesystemfx.cpp
basemenu.cpp
baseparticlesystemfx.cpp
@ -253,7 +295,6 @@ set(
beamfx.cpp
bodyfx.cpp
bullettrailfx.cpp
../../shared/butelistreader.cpp
cameraoffsetmgr.cpp
chainedfx.cpp
characterfx.cpp
@ -265,7 +306,6 @@ set(
clientinfomgr.cpp
clientmultiplayermgr.cpp
clientsaveloadmgr.cpp
../../shared/clientservershared.cpp
clientsoundmgr.cpp
clienttrackednodecontext.cpp
clienttrackednodemgr.cpp
@ -274,18 +314,12 @@ set(
clientweaponmgr.cpp
clientweaponutils.cpp
cmovemgr.cpp
../../shared/commonutilities.cpp
../../shared/crc32.cpp
credits.cpp
cursormgr.cpp
damagefxmgr.cpp
../../shared/damagetypes.cpp
deathfx.cpp
debrisfx.cpp
../../shared/debrismgr.cpp
../../shared/debugline.cpp
debuglinefx.cpp
../../shared/debugnew.cpp
doomsdaypiecefx.cpp
dynamiclightfx.cpp
dynamicoccludervolumefx.cpp
@ -293,17 +327,12 @@ set(
firefx.cpp
flashlight.cpp
fullscreentint.cpp
../../shared/fxbutemgr.cpp
../../shared/fxstructs.cpp
gadgetdisabler.cpp
gadgettargetfx.cpp
../../shared/gamealloc.cpp
../../shared/gamebutemgr.cpp
gameclientshell.cpp
gamesettings.cpp
gibfx.cpp
globalclientmgr.cpp
../../shared/globalmgr.cpp
headbobmgr.cpp
hitbox.cpp
hudbar.cpp
@ -323,7 +352,6 @@ set(
hudscores.cpp
hudsubtitles.cpp
hudtransmission.cpp
../../../engine/sdk/inc/iltbaseclass.cpp
intelitemlist.cpp
interfacemgr.cpp
interfaceresmgr.cpp
@ -331,7 +359,6 @@ set(
interfacetimer.cpp
ipmgr.cpp
jumpvolumefx.cpp
../../shared/keymgr.cpp
laserbeam.cpp
lasertriggerfx.cpp
layoutmgr.cpp
@ -343,10 +370,6 @@ set(
lightscalemgr.cpp
linesystemfx.cpp
loadingscreen.cpp
../../../engine/sdk/inc/lteulerangles.cpp
../../../engine/sdk/inc/ltmodule.cpp
../../../engine/sdk/inc/ltobjref.cpp
../../../engine/sdk/inc/ltquatbase.cpp
marksfx.cpp
menuintel.cpp
menuinventory.cpp
@ -357,18 +380,14 @@ set(
menusystem.cpp
messagebox.cpp
minefx.cpp
../../shared/missionbutemgr.cpp
missionmgr.cpp
../../shared/modelbutemgr.cpp
music.cpp
muzzleflashfx.cpp
muzzleflashparticlefx.cpp
../../shared/netdefs.cpp
nodecontroller.cpp
nodelinesfx.cpp
objectivecontrol.cpp
objspritefx.cpp
../../shared/parsedmsg.cpp
particleexplosionfx.cpp
particleshowerfx.cpp
particlesystemfx.cpp
@ -390,17 +409,13 @@ set(
popupmgr.cpp
popuptext.cpp
profilemgr.cpp
../../shared/profileutils.cpp
projectilefx.cpp
pvfxmgr.cpp
radarobjectfx.cpp
../../shared/radartypemgr.cpp
ragdoll.cpp
ragdollconstraint.cpp
randomsparksfx.cpp
../../shared/saveloadmgr.cpp
scatterfx.cpp
../../shared/scmdconsole.cpp
scmdconsoledriver_cshell.cpp
screenmgr.cpp
screenpostload.cpp
@ -408,53 +423,30 @@ set(
screenspritemgr.cpp
screentintmgr.cpp
searcher.cpp
../../shared/searchitemmgr.cpp
searchlightfx.cpp
sfxmgr.cpp
../../shared/sharedfxstructs.cpp
../../shared/sharedmission.cpp
../../shared/sharedscoring.cpp
shellcasingfx.cpp
skillcontrol.cpp
../../shared/skillsbutemgr.cpp
smokefx.cpp
snowfx.cpp
../../shared/soundbutemgr.cpp
../../shared/soundfiltermgr.cpp
soundfx.cpp
../../shared/soundmgr.cpp
sparam.cpp
specialfxlist.cpp
sprinklesfx.cpp
../../shared/stacktrace.cpp
stdafx.cpp
steamfx.cpp
../../shared/surfacefunctions.cpp
../../shared/surfacemgr.cpp
targetmgr.cpp
../../shared/teammgr.cpp
../../shared/templatelist.cpp
texturefxmgr.cpp
timedtext.cpp
tracerfx.cpp
../../shared/trackednode.cpp
../../shared/trackednodecontext.cpp
../../shared/trackednodecontrolfn.cpp
../../shared/trackednodemgr.cpp
transitionfxmgr.cpp
triggerfx.cpp
../../shared/triggertypemgr.cpp
../../shared/uberassert.cpp
vehiclemgr.cpp
../../shared/versionmgr.cpp
visionmodemgr.cpp
vkdefs.cpp
../../shared/wavefn.cpp
weaponchooser.cpp
weaponfx.cpp
../../shared/weaponmgr.cpp
weatherfx.cpp
../../shared/winutil.cpp
)
if (MSVC)
@ -478,7 +470,22 @@ if (MSVC)
endif ()
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_client_shell STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_client_shell stdafx.h)
target_compile_definitions(
ltjs_lib_client_shell
PRIVATE _CLIENTBUILD
PRIVATE MEMTRACK_CLIENT)
if (MSVC)
# Enable RTTI
target_compile_options(
ltjs_lib_client_shell
PRIVATE -GR
)
endif ()

View File

@ -230,7 +230,7 @@ bool CClientFXDB::LoadFxDll()
UnloadFxDll();
// Load the library
const char *sName = "ClientFX.fxd";
const char *sName = "ltjs_clientfx.dll";
char sTmp[MAX_PATH + 1];
LTSNPrintF(sTmp, sizeof(sTmp), "Game\\%s", sName);

View File

@ -1,40 +1,36 @@
set(LTJS_TARGET ltjs_to2_client_shell)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_to2_client_shell VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(stdafx.h)
add_definitions(-D_CLIENTBUILD)
add_definitions(-DMEMTRACK_CLIENT)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-D_NOLFBUILD>)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-DNO_PRAGMA_LIBS>)
if (MSVC)
add_compile_options(-GR)
endif ()
include_directories(
../../shared/to2
.
../clientshellshared
../../clientres/shared
../../clientres/to2
../../shared
../../../engine/sdk/inc
../../../libs/stdlith
../../../libs/butemgr
../../../libs/cryptmgr
../../../libs/lith
../../../libs/mfcstub
../../libs/ltguimgr
../../../libs/regmgr
../../libs/wonapi
../../../libs/stdlith
../../clientres/shared
../../clientres/to2
../../libs/ltguimgr
../../libs/serverdir
../../libs/wonapi
../../shared
../../shared/to2
../clientshellshared
)
set(
HDRS
to2clientweaponallocator.h
headers
../../../engine/sdk/inc/iltbaseclass.h
../../../engine/sdk/inc/ltmodule.h
../../../engine/sdk/inc/ltobjref.h
../../libs/serverdir/iserverdir.h
../../shared/ltpoly.h
../../shared/to2/to2missionbutemgr.h
../../shared/to2/to2versionmgr.h
hudair.h
hudammo.h
hudcarrying.h
@ -50,11 +46,6 @@ set(
hudprogressbar.h
hudradio.h
hudrespawn.h
../../../engine/sdk/inc/iltbaseclass.h
../../libs/serverdir/iserverdir.h
../../../engine/sdk/inc/ltmodule.h
../../../engine/sdk/inc/ltobjref.h
../../shared/ltpoly.h
screenaudio.h
screenconfigure.h
screencontrols.h
@ -91,19 +82,24 @@ set(
screensingle.h
screenteam.h
stdafx.h
to2clientweaponallocator.h
to2gameclientshell.h
to2hudmgr.h
to2interfacemgr.h
to2layoutmgr.h
../../shared/to2/to2missionbutemgr.h
to2playermgr.h
to2playerstats.h
to2screenmgr.h
../../shared/to2/to2versionmgr.h
)
set(
SRCS
sources
../../../engine/sdk/inc/iltbaseclass.cpp
../../../engine/sdk/inc/ltmodule.cpp
../../../engine/sdk/inc/ltobjref.cpp
../../../engine/sdk/inc/ltquatbase.cpp
../../shared/to2/to2missionbutemgr.cpp
../../shared/to2/to2versionmgr.cpp
globalsinit.cpp
hudair.cpp
hudammo.cpp
@ -120,10 +116,6 @@ set(
hudprogressbar.cpp
hudradio.cpp
hudrespawn.cpp
../../../engine/sdk/inc/iltbaseclass.cpp
../../../engine/sdk/inc/ltmodule.cpp
../../../engine/sdk/inc/ltobjref.cpp
../../../engine/sdk/inc/ltquatbase.cpp
screenaudio.cpp
screenconfigure.cpp
screencontrols.cpp
@ -165,11 +157,9 @@ set(
to2hudmgr.cpp
to2interfacemgr.cpp
to2layoutmgr.cpp
../../shared/to2/to2missionbutemgr.cpp
to2playermgr.cpp
to2playerstats.cpp
to2screenmgr.cpp
../../shared/to2/to2versionmgr.cpp
)
if (MSVC)
@ -192,41 +182,57 @@ if (MSVC)
endif ()
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_to2_client_shell SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_to2_client_shell stdafx.h)
target_compile_definitions(
ltjs_to2_client_shell
PRIVATE _CLIENTBUILD
PRIVATE MEMTRACK_CLIENT
PRIVATE $<$<NOT:$<CONFIG:DEBUG>>:_NOLFBUILD>
PRIVATE $<$<NOT:$<CONFIG:DEBUG>>:NO_PRAGMA_LIBS>
)
if (MSVC)
target_compile_options(
ltjs_to2_client_shell
PRIVATE -GR
)
endif ()
set_target_properties(
${LTJS_TARGET}
ltjs_to2_client_shell
PROPERTIES
OUTPUT_NAME cshell
OUTPUT_NAME ltjs_cshell
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY ${LTJS_TO2_BIN_DIR}
)
if (MSVC)
set_target_properties(
${LTJS_TARGET}
ltjs_to2_client_shell
PROPERTIES
LINK_FLAGS /SUBSYSTEM:WINDOWS
)
set(
PLIBS
libs
winmm
)
endif ()
if (MINGW)
set(
PLIBS
libs
winmm
)
endif ()
target_link_libraries(
${LTJS_TARGET}
ltjs_to2_client_shell
ltjs_lib_bute_mgr
ltjs_lib_client_shell
ltjs_lib_crypt_mgr
@ -235,5 +241,11 @@ target_link_libraries(
ltjs_lib_mfc_stub
ltjs_lib_std_lith
ltjs_server_dir
${PLIBS}
${libs}
)
install(
TARGETS
ltjs_to2_client_shell
RUNTIME DESTINATION "./Game"
)

View File

@ -1,19 +1,15 @@
set(LTJS_TARGET ltjs_lib_lt_gui_mgr)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_lt_gui_mgr VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
add_definitions(-D_LITHTECH2)
add_definitions(-DLT15_COMPAT)
include_directories(
../../../engine/sdk/inc
../../../engine/sdk/inc/compat
)
set(
HDRS
headers
ltguibutton.h
ltguicolumnctrl.h
ltguicommandhandler.h
@ -33,7 +29,7 @@ set(
)
set(
SRCS
sources
ltguibutton.cpp
ltguicolumnctrl.cpp
ltguicommandhandler.cpp
@ -50,7 +46,15 @@ set(
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_lt_gui_mgr STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_lt_gui_mgr)
target_compile_definitions(
ltjs_lib_lt_gui_mgr
PRIVATE _LITHTECH2
PRIVATE LT15_COMPAT
)

View File

@ -1,64 +1,49 @@
set(LTJS_TARGET ltjs_server_dir)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_server_dir VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
.
../../../engine/sdk/inc
../../libs/wonapi
../../clientres/shared
)
set(
HDRS
#cserverdir_titan.h
headers
iserverdir.h
#iserverdir_titan.h
stdafx.h
#titantest.h
#winsync.h
)
set(
SRCS
sources
cserverdir_titan.cpp
stdafx.cpp
#titantest.cpp
)
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_server_dir SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_server_dir)
if (MSVC)
set_target_properties(
${LTJS_TARGET}
ltjs_server_dir
PROPERTIES
LINK_FLAGS /SUBSYSTEM:WINDOWS
)
endif ()
if (MINGW)
set(
LIBS
ws2_32
)
endif ()
set_target_properties(
${LTJS_TARGET}
ltjs_server_dir
PROPERTIES
OUTPUT_NAME serverdir
OUTPUT_NAME ltjs_serverdir
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY ${LTJS_BIN_DIR}
)
#target_link_libraries(
# ${LTJS_TARGET}
# ltjs_lib_won_api
# ${LIBS}
#)
install(
TARGETS
ltjs_server_dir
RUNTIME DESTINATION "."
)

View File

@ -1,37 +1,129 @@
set(LTJS_TARGET ltjs_lib_object)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_object VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(stdafx.h)
add_definitions(-D_SERVERBUILD)
add_definitions(-D_NO_AI_ASSERT)
add_definitions(-DMEMTRACK_SERVER)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-D_NOLFBUILD>)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-DUSE_INTEL_COMPILER>)
if (MSVC)
add_compile_options(-GR)
endif ()
include_directories(
.
../../shared
../../../engine/sdk/inc
../../../libs/stdlith
../../../libs/butemgr
../../../libs/cryptmgr
../../../libs/lith
../../../libs/mfcstub
../../../libs/regmgr
../../../libs/stdlith
../../libs
../../libs/serverdir
../../shared
)
set(
HDRS
headers
../../../engine/sdk/inc/clientheaders.h
../../../engine/sdk/inc/iaggregate.h
../../../engine/sdk/inc/iclientshell.h
../../../engine/sdk/inc/iltclient.h
../../../engine/sdk/inc/iltcommon.h
../../../engine/sdk/inc/iltcsbase.h
../../../engine/sdk/inc/iltcursor.h
../../../engine/sdk/inc/iltdirectmusic.h
../../../engine/sdk/inc/iltmath.h
../../../engine/sdk/inc/iltmessage.h
../../../engine/sdk/inc/iltmodel.h
../../../engine/sdk/inc/iltphysics.h
../../../engine/sdk/inc/iltserver.h
../../../engine/sdk/inc/iltsoundmgr.h
../../../engine/sdk/inc/iltspritecontrol.h
../../../engine/sdk/inc/iltstream.h
../../../engine/sdk/inc/ilttransform.h
../../../engine/sdk/inc/iltvideomgr.h
../../../engine/sdk/inc/iobjectplugin.h
../../../engine/sdk/inc/iservershell.h
../../../engine/sdk/inc/lithtech.h
../../../engine/sdk/inc/ltanimtracker.h
../../../engine/sdk/inc/ltassert.h
../../../engine/sdk/inc/ltbasedefs.h
../../../engine/sdk/inc/ltbasetypes.h
../../../engine/sdk/inc/ltbeziercurve.h
../../../engine/sdk/inc/ltcodes.h
../../../engine/sdk/inc/ltengineobjects.h
../../../engine/sdk/inc/ltlink.h
../../../engine/sdk/inc/ltmatrix.h
../../../engine/sdk/inc/ltobjref.h
../../../engine/sdk/inc/ltplane.h
../../../engine/sdk/inc/ltpvalue.h
../../../engine/sdk/inc/ltquatbase.h
../../../engine/sdk/inc/ltrect.h
../../../engine/sdk/inc/ltrotation.h
../../../engine/sdk/inc/ltserverobj.h
../../../engine/sdk/inc/ltvector.h
../../../engine/sdk/inc/serverheaders.h
../../shared/activatetypemgr.h
../../shared/activationdata.h
../../shared/animator.h
../../shared/assertmgr.h
../../shared/attachbutemgr.h
../../shared/automessage.h
../../shared/butelistreader.h
../../shared/characteralignment.h
../../shared/cheatdefs.h
../../shared/clientservershared.h
../../shared/commandids.h
../../shared/commonutilities.h
../../shared/containercodes.h
../../shared/crc32.h
../../shared/damagetypes.h
../../shared/damagetypesenum.h
../../shared/debrismgr.h
../../shared/debugline.h
../../shared/debugmgr.h
../../shared/fastheap.h
../../shared/faststack.h
../../shared/fxbutemgr.h
../../shared/fxdefs.h
../../shared/fxflags.h
../../shared/fxstructs.h
../../shared/gadgettargettypes.h
../../shared/gamebutemgr.h
../../shared/gibtypes.h
../../shared/globalmgr.h
../../shared/globals.h
../../shared/hierarchicalbutemgr.h
../../shared/impacttype.h
../../shared/modelbutemgr.h
../../shared/msgids.h
../../shared/netdefs.h
../../shared/parsedmsg.h
../../shared/profileutils.h
../../shared/radartypemgr.h
../../shared/saveloadmgr.h
../../shared/scmdshared.h
../../shared/searchitemmgr.h
../../shared/sfxmsgids.h
../../shared/sharedbasefxstructs.h
../../shared/sharedfxstructs.h
../../shared/sharedmission.h
../../shared/sharedmovement.h
../../shared/sharedscoring.h
../../shared/skillsbutemgr.h
../../shared/soundbutemgr.h
../../shared/soundfiltermgr.h
../../shared/soundmgr.h
../../shared/soundtypes.h
../../shared/surfacefunctions.h
../../shared/surfacemgr.h
../../shared/teammgr.h
../../shared/templatelist.h
../../shared/timer.h
../../shared/trackednode.h
../../shared/trackednodemgr.h
../../shared/triggertypemgr.h
../../shared/uberassert.h
../../shared/versionmgr.h
../../shared/wavefn.h
../../shared/weaponfxtypes.h
../../shared/weaponmgr.h
../../shared/winutil.h
activeworldmodel.h
ai.h
aiassert.h
@ -169,50 +261,33 @@ set(
animationpropgroupenums.h
animationpropstrings.h
animationstd.h
../../shared/animator.h
animatorplayer.h
../../shared/assertmgr.h
../../shared/attachbutemgr.h
attachments.h
../../shared/automessage.h
banipmgr.h
body.h
bodystate.h
bombable.h
breakable.h
../../shared/butelistreader.h
butetools.h
camera.h
cdynarray.h
character.h
../../shared/characteralignment.h
characterhitbox.h
charactermgr.h
../../shared/cheatdefs.h
clientlightfx.h
../../shared/clientservershared.h
clientsfx.h
clientweaponsfx.h
collectiverelationmgr.h
commandbutemgr.h
../../shared/commandids.h
commandmgr.h
commandobject.h
../../shared/commonutilities.h
../../shared/containercodes.h
controller.h
coopmissionmgr.h
../../shared/crc32.h
cvartrack.h
../../shared/damagetypes.h
../../shared/damagetypesenum.h
deathmatchmissionmgr.h
deathscene.h
debrisfuncs.h
../../shared/debrismgr.h
../../shared/debugline.h
debuglinesystem.h
../../shared/debugmgr.h
decisionobject.h
deditcolors.h
destructible.h
@ -229,31 +304,18 @@ set(
eventcounter.h
exittrigger.h
explosion.h
../../shared/fastheap.h
../../shared/faststack.h
fire.h
../../shared/fxbutemgr.h
../../shared/fxdefs.h
../../shared/fxflags.h
../../shared/fxstructs.h
gadgettarget.h
gadgettargetmgr.h
../../shared/gadgettargettypes.h
gamebase.h
gamebaselite.h
../../shared/gamebutemgr.h
gameservershell.h
gamestartpoint.h
gearitems.h
../../shared/gibtypes.h
../../shared/globalmgr.h
../../shared/globals.h
globalservermgr.h
group.h
hhweaponmodel.h
../../shared/hierarchicalbutemgr.h
ihitboxuser.h
../../shared/impacttype.h
intelligence.h
intelmgr.h
inventorybutemgr.h
@ -269,11 +331,8 @@ set(
liteobjectmgr.h
lock.h
mine.h
../../shared/modelbutemgr.h
moditem.h
../../shared/msgids.h
musicmgr.h
../../shared/netdefs.h
nodeline.h
noplayertrigger.h
objectivesprite.h
@ -281,7 +340,6 @@ set(
objectrelationmgr.h
objectremover.h
objecttemplatemgr.h
../../shared/parsedmsg.h
particlesystem.h
pickupitem.h
playerbutes.h
@ -293,14 +351,12 @@ set(
point.h
polygrid.h
powerarmor.h
../../shared/profileutils.h
projectile.h
projectiletypes.h
prop.h
proptype.h
proptypemgr.h
radarobject.h
../../shared/radartypemgr.h
randomspawner.h
relationbutemgr.h
relationchangeobserver.h
@ -308,15 +364,12 @@ set(
rotatingdoor.h
rotatingswitch.h
rotatingworldmodel.h
../../shared/saveloadmgr.h
scalesprite.h
scanner.h
scattervolume.h
scmdserver.h
../../shared/scmdshared.h
screenshake.h
searchable.h
../../shared/searchitemmgr.h
searchlight.h
searchprop.h
securitycamera.h
@ -333,24 +386,13 @@ set(
servertrackednodemgr.h
serverutilities.h
sfxfuncs.h
../../shared/sfxmsgids.h
../../shared/sharedbasefxstructs.h
../../shared/sharedfxstructs.h
../../shared/sharedmission.h
../../shared/sharedmovement.h
../../shared/sharedscoring.h
singleplayermissionmgr.h
skills.h
../../shared/skillsbutemgr.h
slidingdoor.h
slidingswitch.h
slidingworldmodel.h
snowvolume.h
soundbutefx.h
../../shared/soundbutemgr.h
../../shared/soundfiltermgr.h
../../shared/soundmgr.h
../../shared/soundtypes.h
sparam.h
spawner.h
speaker.h
@ -359,81 +401,82 @@ set(
startupcommand.h
stdafx.h
steam.h
../../shared/surfacefunctions.h
../../shared/surfacemgr.h
switch.h
teamdeathmatchmissionmgr.h
../../shared/teammgr.h
teleportpoint.h
../../shared/templatelist.h
texturefx.h
../../shared/timer.h
../../shared/trackednode.h
../../shared/trackednodemgr.h
transitionaggregate.h
transitionarea.h
transitionmgr.h
trigger.h
../../shared/triggertypemgr.h
../../shared/uberassert.h
../../shared/versionmgr.h
volumebrush.h
volumebrushtypes.h
volumeeffect.h
../../shared/wavefn.h
weapon.h
../../shared/weaponfxtypes.h
weaponitems.h
../../shared/weaponmgr.h
weapons.h
../../shared/winutil.h
worldmodel.h
worldmodeldebris.h
worldproperties.h
../../../engine/sdk/inc/clientheaders.h
../../../engine/sdk/inc/iaggregate.h
../../../engine/sdk/inc/iclientshell.h
../../../engine/sdk/inc/iltclient.h
../../../engine/sdk/inc/iltcommon.h
../../../engine/sdk/inc/iltcsbase.h
../../../engine/sdk/inc/iltcursor.h
../../../engine/sdk/inc/iltdirectmusic.h
../../../engine/sdk/inc/iltmath.h
../../../engine/sdk/inc/iltmessage.h
../../../engine/sdk/inc/iltmodel.h
../../../engine/sdk/inc/iltphysics.h
../../../engine/sdk/inc/iltserver.h
../../../engine/sdk/inc/iltsoundmgr.h
../../../engine/sdk/inc/iltspritecontrol.h
../../../engine/sdk/inc/iltstream.h
../../../engine/sdk/inc/ilttransform.h
../../../engine/sdk/inc/iltvideomgr.h
../../../engine/sdk/inc/iobjectplugin.h
../../../engine/sdk/inc/iservershell.h
../../../engine/sdk/inc/lithtech.h
../../../engine/sdk/inc/ltanimtracker.h
../../../engine/sdk/inc/ltassert.h
../../../engine/sdk/inc/ltbasedefs.h
../../../engine/sdk/inc/ltbasetypes.h
../../../engine/sdk/inc/ltbeziercurve.h
../../../engine/sdk/inc/ltcodes.h
../../../engine/sdk/inc/ltengineobjects.h
../../../engine/sdk/inc/ltlink.h
../../../engine/sdk/inc/ltmatrix.h
../../../engine/sdk/inc/ltobjref.h
../../../engine/sdk/inc/ltplane.h
../../../engine/sdk/inc/ltpvalue.h
../../../engine/sdk/inc/ltquatbase.h
../../../engine/sdk/inc/ltrect.h
../../../engine/sdk/inc/ltrotation.h
../../../engine/sdk/inc/ltserverobj.h
../../../engine/sdk/inc/ltvector.h
../../../engine/sdk/inc/serverheaders.h
)
set(
SRCS
sources
../../../engine/sdk/inc/iltbaseclass.cpp
../../../engine/sdk/inc/ltengineobjects.cpp
../../../engine/sdk/inc/ltmodule.cpp
../../../engine/sdk/inc/ltobjref.cpp
../../../engine/sdk/inc/ltquatbase.cpp
../../shared/activatetypemgr.cpp
../../shared/animator.cpp
../../shared/assertmgr.cpp
../../shared/attachbutemgr.cpp
../../shared/butelistreader.cpp
../../shared/characteralignment.cpp
../../shared/clientservershared.cpp
../../shared/commonutilities.cpp
../../shared/crc32.cpp
../../shared/damagetypes.cpp
../../shared/debrismgr.cpp
../../shared/debugline.cpp
../../shared/debugnew.cpp
../../shared/fxbutemgr.cpp
../../shared/fxstructs.cpp
../../shared/gamealloc.cpp
../../shared/gamebutemgr.cpp
../../shared/globalmgr.cpp
../../shared/keymgr.cpp
../../shared/missionbutemgr.cpp
../../shared/modelbutemgr.cpp
../../shared/netdefs.cpp
../../shared/parsedmsg.cpp
../../shared/profileutils.cpp
../../shared/radartypemgr.cpp
../../shared/saveloadmgr.cpp
../../shared/searchitemmgr.cpp
../../shared/sharedfxstructs.cpp
../../shared/sharedmission.cpp
../../shared/sharedmovement.cpp
../../shared/sharedscoring.cpp
../../shared/skillsbutemgr.cpp
../../shared/soundbutemgr.cpp
../../shared/soundfiltermgr.cpp
../../shared/soundmgr.cpp
../../shared/stacktrace.cpp
../../shared/surfacefunctions.cpp
../../shared/surfacemgr.cpp
../../shared/teammgr.cpp
../../shared/templatelist.cpp
../../shared/trackednode.cpp
../../shared/trackednodecontext.cpp
../../shared/trackednodecontrolfn.cpp
../../shared/trackednodemgr.cpp
../../shared/triggertypemgr.cpp
../../shared/uberassert.cpp
../../shared/versionmgr.cpp
../../shared/wavefn.cpp
../../shared/weaponmgr.cpp
../../shared/winutil.cpp
activeworldmodel.cpp
ai.cpp
aiassert.cpp
@ -553,43 +596,31 @@ set(
animationmgr.cpp
animationparse.cpp
animationparser.cpp
../../shared/animator.cpp
animatorplayer.cpp
../../shared/assertmgr.cpp
../../shared/attachbutemgr.cpp
attachments.cpp
banipmgr.cpp
body.cpp
bodystate.cpp
bombable.cpp
breakable.cpp
../../shared/butelistreader.cpp
butetools.cpp
camera.cpp
character.cpp
../../shared/characteralignment.cpp
characterhitbox.cpp
charactermgr.cpp
clientlightfx.cpp
../../shared/clientservershared.cpp
clientsfx.cpp
clientweaponsfx.cpp
collectiverelationmgr.cpp
commandbutemgr.cpp
commandmgr.cpp
commandobject.cpp
../../shared/commonutilities.cpp
controller.cpp
coopmissionmgr.cpp
../../shared/crc32.cpp
../../shared/damagetypes.cpp
deathmatchmissionmgr.cpp
deathscene.cpp
debrisfuncs.cpp
../../shared/debrismgr.cpp
../../shared/debugline.cpp
debuglinesystem.cpp
../../shared/debugnew.cpp
decisionobject.cpp
destructible.cpp
destructiblemodel.cpp
@ -607,22 +638,16 @@ set(
exittrigger.cpp
explosion.cpp
fire.cpp
../../shared/fxbutemgr.cpp
../../shared/fxstructs.cpp
gadgettarget.cpp
gadgettargetmgr.cpp
../../shared/gamealloc.cpp
gamebase.cpp
gamebaselite.cpp
../../shared/gamebutemgr.cpp
gameservershell.cpp
gamestartpoint.cpp
gearitems.cpp
../../shared/globalmgr.cpp
globalservermgr.cpp
group.cpp
hhweaponmodel.cpp
../../../engine/sdk/inc/iltbaseclass.cpp
intelligence.cpp
intelmgr.cpp
inventorybutemgr.cpp
@ -631,30 +656,21 @@ set(
keydata.cpp
keyframer.cpp
keyitem.cpp
../../shared/keymgr.cpp
keypad.cpp
lasertrigger.cpp
lightgroup.cpp
lightning.cpp
liteobjectmgr.cpp
lock.cpp
../../../engine/sdk/inc/ltengineobjects.cpp
../../../engine/sdk/inc/ltmodule.cpp
../../../engine/sdk/inc/ltobjref.cpp
../../../engine/sdk/inc/ltquatbase.cpp
mine.cpp
../../shared/missionbutemgr.cpp
../../shared/modelbutemgr.cpp
moditem.cpp
musicmgr.cpp
../../shared/netdefs.cpp
nodeline.cpp
noplayertrigger.cpp
objectivesprite.cpp
objectrelationmgr.cpp
objectremover.cpp
objecttemplatemgr.cpp
../../shared/parsedmsg.cpp
particlesystem.cpp
pickupitem.cpp
playerlure.cpp
@ -666,28 +682,24 @@ set(
polygrid.cpp
polygridmodifier.cpp
powerarmor.cpp
../../shared/profileutils.cpp
projectile.cpp
projectiletypes.cpp
prop.cpp
proptype.cpp
proptypemgr.cpp
radarobject.cpp
../../shared/radartypemgr.cpp
randomspawner.cpp
relationbutemgr.cpp
relationmgr.cpp
rotatingdoor.cpp
rotatingswitch.cpp
rotatingworldmodel.cpp
../../shared/saveloadmgr.cpp
scalesprite.cpp
scanner.cpp
scattervolume.cpp
scmdserver.cpp
screenshake.cpp
searchable.cpp
../../shared/searchitemmgr.cpp
searchlight.cpp
searchprop.cpp
securitycamera.cpp
@ -703,58 +715,35 @@ set(
servertrackednodemgr.cpp
serverutilities.cpp
sfxfuncs.cpp
../../shared/sharedfxstructs.cpp
../../shared/sharedmission.cpp
../../shared/sharedmovement.cpp
../../shared/sharedscoring.cpp
singleplayermissionmgr.cpp
skills.cpp
../../shared/skillsbutemgr.cpp
slidingdoor.cpp
slidingswitch.cpp
slidingworldmodel.cpp
snowvolume.cpp
soundbutefx.cpp
../../shared/soundbutemgr.cpp
../../shared/soundfiltermgr.cpp
../../shared/soundmgr.cpp
sparam.cpp
spawner.cpp
speaker.cpp
spinningworldmodel.cpp
sprinkles.cpp
../../shared/stacktrace.cpp
startupcommand.cpp
stdafx.cpp
steam.cpp
../../shared/surfacefunctions.cpp
../../shared/surfacemgr.cpp
switch.cpp
teamdeathmatchmissionmgr.cpp
../../shared/teammgr.cpp
teleportpoint.cpp
../../shared/templatelist.cpp
texturefx.cpp
../../shared/trackednode.cpp
../../shared/trackednodecontext.cpp
../../shared/trackednodecontrolfn.cpp
../../shared/trackednodemgr.cpp
transitionaggregate.cpp
transitionarea.cpp
transitionmgr.cpp
trigger.cpp
../../shared/triggertypemgr.cpp
../../shared/uberassert.cpp
../../shared/versionmgr.cpp
volumebrush.cpp
volumebrushtypes.cpp
volumeeffect.cpp
../../shared/wavefn.cpp
weapon.cpp
weaponitems.cpp
../../shared/weaponmgr.cpp
weapons.cpp
../../shared/winutil.cpp
worldmodel.cpp
worldmodeldebris.cpp
worldproperties.cpp
@ -762,13 +751,13 @@ set(
if (MSVC)
set_source_files_properties(
animationlex.cpp
animationparse.cpp
../../../engine/sdk/inc/iltbaseclass.cpp
../../../engine/sdk/inc/ltengineobjects.cpp
../../../engine/sdk/inc/ltmodule.cpp
../../../engine/sdk/inc/ltobjref.cpp
../../../engine/sdk/inc/ltquatbase.cpp
animationlex.cpp
animationparse.cpp
PROPERTIES
# Precompiled Header (None)
COMPILE_FLAGS -Y-
@ -783,7 +772,25 @@ if (MSVC)
endif ()
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_object STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_object stdafx.h)
target_compile_definitions(
ltjs_lib_object
PRIVATE _SERVERBUILD
PRIVATE _NO_AI_ASSERT
PRIVATE MEMTRACK_SERVER
PRIVATE $<$<NOT:$<CONFIG:DEBUG>>:_NOLFBUILD>
PRIVATE $<$<NOT:$<CONFIG:DEBUG>>:USE_INTEL_COMPILER>
)
if (MSVC)
target_compile_options(
ltjs_lib_object
PRIVATE -GR
)
endif ()

View File

@ -1,76 +1,81 @@
set(LTJS_TARGET ltjs_to2_object)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_to2_object VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
add_definitions(-D_SERVERBUILD)
add_definitions(-DMEMTRACK_SERVER)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-D_NOLFBUILD>)
add_compile_options($<$<NOT:$<CONFIG:DEBUG>>:-DUSE_INTEL_COMPILER>)
if (MSVC)
add_compile_options(-GR)
endif ()
include_directories(
.
../objectshared
../../shared
../../../engine/sdk/inc
../../../libs/stdlith
../../../libs/butemgr
../../../libs/cryptmgr
../../../libs/lith
../../../libs/mfcstub
../../../libs/regmgr
../../../libs/stdlith
../../libs
../../shared/to2
../../libs/serverdir
../../shared
../../shared/to2
../objectshared
)
set(
HDRS
stdafx.h
to2gameservershell.h
headers
../../shared/to2/to2missionbutemgr.h
../../shared/to2/to2versionmgr.h
stdafx.h
to2gameservershell.h
)
set(
SRCS
sources
../../shared/to2/to2missionbutemgr.cpp
../../shared/to2/to2versionmgr.cpp
globalsinit.cpp
stdafx.cpp
to2gameservershell.cpp
../../shared/to2/to2missionbutemgr.cpp
../../shared/to2/to2versionmgr.cpp
)
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_to2_object SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_to2_object)
target_compile_definitions(
ltjs_to2_object
PRIVATE _SERVERBUILD
PRIVATE MEMTRACK_SERVER
PRIVATE $<$<NOT:$<CONFIG:DEBUG>>:_NOLFBUILD>
PRIVATE $<$<NOT:$<CONFIG:DEBUG>>:USE_INTEL_COMPILER>
)
if (MSVC)
target_compile_options(
ltjs_to2_object
PRIVATE -GR
)
endif ()
set_target_properties(
${LTJS_TARGET}
ltjs_to2_object
PROPERTIES
OUTPUT_NAME object
OUTPUT_NAME ltjs_object
PREFIX ""
SUFFIX .lto
RUNTIME_OUTPUT_DIRECTORY ${LTJS_TO2_BIN_DIR}
)
if (MSVC)
set_target_properties(
${LTJS_TARGET}
ltjs_to2_object
PROPERTIES
LINK_FLAGS /SUBSYSTEM:WINDOWS
)
endif ()
target_link_libraries(
${LTJS_TARGET}
ltjs_to2_object
ltjs_lib_object
ltjs_lib_bute_mgr
ltjs_lib_std_lith
@ -80,3 +85,9 @@ target_link_libraries(
ltjs_lib_mfc_stub
ltjs_server_dir
)
install(
TARGETS
ltjs_to2_object
RUNTIME DESTINATION "./Game"
)

View File

@ -1,30 +1,40 @@
set(LTJS_TARGET ltjs_to2_server_res)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_to2_server_res VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
../../../engine/sdk/inc
)
set(
HDRS
headers
serverres.h
)
set(
SRCS
sources
main.cpp
serverres.rc
)
add_library(
${LTJS_TARGET} SHARED
${HDRS}
${SRCS}
ltjs_to2_server_res SHARED
${headers}
${sources}
)
ltjs_add_defaults(ltjs_to2_server_res)
set_target_properties(
${LTJS_TARGET}
ltjs_to2_server_res
PROPERTIES
OUTPUT_NAME sres
OUTPUT_NAME ltjs_sres
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY ${LTJS_TO2_BIN_DIR}
)
install(
TARGETS
ltjs_to2_server_res
RUNTIME DESTINATION "./Game"
)

View File

@ -1,21 +1,17 @@
set(LTJS_TARGET ltjs_lib_bute_mgr)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_bute_mgr VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options(stdafx.h)
add_definitions(-D_NOMFC)
add_definitions(-DWINVER=0x500)
include_directories(
../stdlith
../mfcstub
../cryptmgr
../lith
../mfcstub
../stdlith
)
set(
HDRS
headers
arange.h
avector.h
butemgr.h
@ -23,7 +19,7 @@ set(
)
set(
SRCS
sources
arange.cpp
avector.cpp
butemgr.cpp
@ -40,7 +36,27 @@ if (MSVC)
endif ()
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_bute_mgr STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_bute_mgr stdafx.h)
target_compile_definitions(
ltjs_lib_bute_mgr
PRIVATE _NOMFC)
set_target_properties(
ltjs_lib_bute_mgr
PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF
)
if (WIN32)
target_compile_definitions(
ltjs_lib_bute_mgr
PRIVATE WINVER=0x500)
endif ()

View File

@ -1,23 +1,24 @@
set(LTJS_TARGET ltjs_lib_crypt_mgr)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_crypt_mgr VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
set(
HDRS
headers
blowfish.h
cryptmgr.h
)
set(
SRCS
sources
blowfish.cpp
cryptmgr.cpp
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_crypt_mgr STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_crypt_mgr)

View File

@ -1,11 +1,10 @@
set(LTJS_TARGET ltjs_lib_lith)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_lith VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
set(
HDRS
headers
basehash.h
baselist.h
baselistcounter.h
@ -21,7 +20,7 @@ set(
)
set(
SRCS
sources
basehash.cpp
baselist.cpp
baselistcounter.cpp
@ -35,7 +34,9 @@ set(
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_lith STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_lith)

View File

@ -1,15 +1,14 @@
set(LTJS_TARGET ltjs_lib_mfc_stub)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_mfc_stub VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
../stdlith
)
set(
HDRS
headers
mfcs_misc.h
mfcs_point.h
mfcs_rect.h
@ -20,14 +19,16 @@ set(
)
set(
SRCS
sources
mfcs_point.cpp
mfcs_rect.cpp
mfcs_string.cpp
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_mfc_stub STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_mfc_stub)

View File

@ -1,25 +1,26 @@
set(LTJS_TARGET ltjs_lib_reg_mgr)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_reg_mgr VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
../lith
)
set(
HDRS
headers
regmgr.h
)
set(
SRCS
sources
regmgr.cpp
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_reg_mgr STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_reg_mgr)

View File

@ -1,15 +1,14 @@
set(LTJS_TARGET ltjs_lib_std_lith)
cmake_minimum_required(VERSION 3.5.1)
project(ltjs_lib_std_lith VERSION 0.0.1 LANGUAGES CXX)
include(ltjs_common)
ltjs_add_default_options()
include_directories(
../zlib
)
set(
HDRS
headers
abstractio.h
copy_lists.h
dynarray.h
@ -37,7 +36,7 @@ set(
)
set(
SRCS
sources
abstractio.cpp
dynarray.cpp
fileio.cpp
@ -54,7 +53,9 @@ set(
)
add_library(
${LTJS_TARGET} STATIC
${HDRS}
${SRCS}
ltjs_lib_std_lith STATIC
${headers}
${sources}
)
ltjs_add_defaults(ltjs_lib_std_lith)