Skip to content

Commit 6b75817

Browse files
committed
xrEngine: enable some checking on linux
1 parent 9cbcdb2 commit 6b75817

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/xrEngine/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ set_target_properties(${PROJECT_NAME} PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "
3535
cotire(${PROJECT_NAME})
3636

3737
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
38-
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath luabind xrAPI xrSound xrScriptEngine ${LUA_LIBRARIES} ${THEORA_LIBRARY} ${OGG_LIBRARIES} xrCDB xrPhysics ${FREEIMAGE_LIBRARY} openal ${LOCKFILE_LIBRARIES} ${SDL_LIBRARIES})
38+
target_link_libraries(${PROJECT_NAME} xrCore xrMiscMath luabind xrAPI xrSound xrScriptEngine xrNetServer ${LUA_LIBRARIES} ${THEORA_LIBRARY} ${OGG_LIBRARIES} xrCDB xrPhysics ${FREEIMAGE_LIBRARY} openal ${LOCKFILE_LIBRARIES} ${SDL_LIBRARIES})
3939
xr_install(${PROJECT_NAME})
4040

src/xrEngine/main.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,8 @@ struct PathIncludePred
6666
{
6767
if (!ignored)
6868
return true;
69-
#if !defined(LINUX)
70-
return allow_to_include_path(*ignored, path); //TODO port xrNetServer to Linux
71-
#else
72-
return false; // Noidea what happenning
73-
#endif
69+
70+
return allow_to_include_path(*ignored, path);
7471
}
7572
};
7673
}
@@ -85,14 +82,12 @@ ENGINE_API void InitSettings()
8582
pSettings = new CInifile(fname, TRUE);
8683
CHECK_OR_EXIT(pSettings->section_count(),
8784
make_string("Cannot find file %s.\nReinstalling application may fix this problem.", fname));
88-
#if !defined(LINUX)
8985
xr_auth_strings_t ignoredPaths, checkedPaths;
9086
fill_auth_check_params(ignoredPaths, checkedPaths); //TODO port xrNetServer to Linux
9187
PathIncludePred includePred(&ignoredPaths);
9288
CInifile::allow_include_func_t includeFilter;
9389
includeFilter.bind(&includePred, &PathIncludePred::IsIncluded);
9490
pSettingsAuth = new CInifile(fname, TRUE, TRUE, FALSE, 0, includeFilter);
95-
#endif
9691
FS.update_path(fname, "$game_config$", "game.ltx");
9792
pGameIni = new CInifile(fname, TRUE);
9893
CHECK_OR_EXIT(pGameIni->section_count(),

src/xrNetServer/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ list(REMOVE_ITEM ${PROJECT_NAME}__SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/./NET_Ser
1818
list(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./NET_Client.h")
1919
list(REMOVE_ITEM ${PROJECT_NAME}__INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/./NET_Server.h")
2020

21-
add_definitions(-DXRGAME_EXPORTS -D_USRDLL)
21+
add_definitions(-DXR_NETSERVER_EXPORTS -D_USRDLL)
2222
add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})
2323

2424
set_target_properties(${PROJECT_NAME} PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "stdafx.h")

0 commit comments

Comments
 (0)