2017-01-15 03:07:01 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${BOO_INCLUDE_DIR} ${LIBJPEG_INCLUDE_DIR}
|
2017-01-08 02:52:49 +00:00
|
|
|
${ZLIB_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/DataSpec ${JBUS_INCLUDE_DIR})
|
2015-08-18 22:51:54 +00:00
|
|
|
|
2016-04-24 04:03:30 +00:00
|
|
|
macro(runtime_add_list rel_path a_list)
|
|
|
|
unset(tmp_list)
|
|
|
|
foreach(path IN LISTS ${a_list})
|
|
|
|
list(APPEND tmp_list "${rel_path}/${path}")
|
|
|
|
endforeach(path)
|
|
|
|
set(${a_list} "${tmp_list}" PARENT_SCOPE)
|
|
|
|
endmacro(runtime_add_list)
|
|
|
|
|
2015-08-18 22:51:54 +00:00
|
|
|
add_subdirectory(Audio)
|
|
|
|
add_subdirectory(Character)
|
|
|
|
add_subdirectory(Graphics)
|
2016-04-17 22:38:05 +00:00
|
|
|
add_subdirectory(Collision)
|
2016-04-16 21:49:47 +00:00
|
|
|
add_subdirectory(Camera)
|
2016-04-16 23:48:29 +00:00
|
|
|
add_subdirectory(World)
|
2016-11-22 20:43:16 +00:00
|
|
|
add_subdirectory(Weapon)
|
2016-04-16 23:48:29 +00:00
|
|
|
add_subdirectory(AutoMapper)
|
2015-08-18 22:51:54 +00:00
|
|
|
add_subdirectory(GuiSys)
|
|
|
|
add_subdirectory(Input)
|
|
|
|
add_subdirectory(Particle)
|
|
|
|
|
2015-08-23 06:42:29 +00:00
|
|
|
if(WIN32)
|
|
|
|
list(APPEND PLAT_SRCS CMemoryCardSysWin.cpp)
|
|
|
|
elseif(APPLE)
|
2015-09-02 19:10:11 +00:00
|
|
|
list(APPEND PLAT_SRCS CMemoryCardSysOSX.cpp)
|
2015-08-23 06:42:29 +00:00
|
|
|
else()
|
2016-12-24 06:08:48 +00:00
|
|
|
list(APPEND PLAT_SRCS CMemoryCardSysNix.cpp)
|
2015-08-23 06:42:29 +00:00
|
|
|
endif()
|
|
|
|
|
2017-01-15 03:07:01 +00:00
|
|
|
add_custom_command(OUTPUT TCastTo.hpp TCastTo.cpp DEPENDS MkCastTo.py
|
|
|
|
COMMAND python ARGS ${CMAKE_CURRENT_SOURCE_DIR}/MkCastTo.py
|
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
COMMENT "Generating cast functions")
|
|
|
|
|
2016-04-24 04:03:30 +00:00
|
|
|
add_subdirectory(MP1)
|
|
|
|
add_subdirectory(MP2)
|
|
|
|
add_subdirectory(MP3)
|
|
|
|
|
2017-02-09 09:23:17 +00:00
|
|
|
if(APPLE)
|
|
|
|
set_source_files_properties(MP1/CFrontEndUITouchBarMac.mm
|
2017-02-12 03:17:18 +00:00
|
|
|
MP1/CSaveGameScreenTouchBarMac.mm
|
2017-02-10 09:00:57 +00:00
|
|
|
CGameOptionsTouchBarMac.mm
|
2017-02-09 09:23:17 +00:00
|
|
|
PROPERTIES COMPILE_FLAGS -fobjc-arc)
|
2017-12-29 08:08:12 +00:00
|
|
|
bintoc(startButton.cpp Resources/startButton@2x.png START_BUTTON_2X)
|
2017-12-29 08:21:07 +00:00
|
|
|
list(APPEND PLAT_SRCS startButton.cpp CGameOptionsTouchBarMac.mm)
|
2017-02-09 09:23:17 +00:00
|
|
|
endif()
|
|
|
|
|
2015-08-18 22:51:54 +00:00
|
|
|
add_library(RuntimeCommon
|
2017-08-13 05:26:14 +00:00
|
|
|
RetroTypes.hpp RetroTypes.cpp
|
2016-04-24 04:03:30 +00:00
|
|
|
${CLIENT_SOURCES}
|
|
|
|
${MP1_SOURCES}
|
|
|
|
${AUDIO_SOURCES}
|
|
|
|
${AUTOMAPPER_SOURCES}
|
|
|
|
${CAMERA_SOURCES}
|
|
|
|
${CHARACTER_SOURCES}
|
|
|
|
${COLLISION_SOURCES}
|
|
|
|
${GRAPHICS_SOURCES}
|
|
|
|
${GUISYS_SOURCES}
|
|
|
|
${INPUT_SOURCES}
|
|
|
|
${PARTICLE_SOURCES}
|
|
|
|
${WORLD_SOURCES}
|
2016-11-22 20:43:16 +00:00
|
|
|
${WEAPON_SOURCES}
|
2016-07-27 04:19:32 +00:00
|
|
|
ITweak.hpp
|
2016-09-17 06:40:45 +00:00
|
|
|
IMain.hpp
|
2017-11-19 07:10:54 +00:00
|
|
|
CStopwatch.hpp
|
2017-09-12 15:27:48 +00:00
|
|
|
CGameAllocator.hpp CGameAllocator.cpp
|
2016-09-25 01:58:20 +00:00
|
|
|
CMemoryCardSys.hpp CMemoryCardSys.cpp
|
2016-08-03 23:20:31 +00:00
|
|
|
CScannableObjectInfo.hpp CScannableObjectInfo.cpp
|
2016-06-23 19:40:09 +00:00
|
|
|
CSaveWorld.hpp CSaveWorld.cpp
|
2016-04-12 11:37:07 +00:00
|
|
|
CDependencyGroup.hpp CDependencyGroup.cpp
|
2015-08-18 22:51:54 +00:00
|
|
|
CBasics.hpp CBasicsPC.cpp
|
2015-08-27 00:23:46 +00:00
|
|
|
CIOWin.hpp
|
2015-08-18 22:51:54 +00:00
|
|
|
CIOWinManager.hpp CIOWinManager.cpp
|
|
|
|
CStateManager.hpp CStateManager.cpp
|
|
|
|
CGameState.hpp CGameState.cpp
|
2016-07-24 23:14:58 +00:00
|
|
|
CRelayTracker.hpp CRelayTracker.cpp
|
2015-08-18 22:51:54 +00:00
|
|
|
CPlayerState.hpp CPlayerState.cpp
|
|
|
|
CRandom16.hpp CRandom16.cpp
|
|
|
|
CResFactory.hpp CResFactory.cpp
|
2015-08-23 06:42:29 +00:00
|
|
|
CResLoader.hpp CResLoader.cpp
|
2016-03-07 03:12:32 +00:00
|
|
|
CDvdRequest.hpp
|
|
|
|
CDvdFile.hpp CDvdFile.cpp
|
2015-08-22 01:58:41 +00:00
|
|
|
IObjectStore.hpp
|
2015-08-18 22:51:54 +00:00
|
|
|
CSimplePool.hpp CSimplePool.cpp
|
|
|
|
CGameOptions.hpp CGameOptions.cpp
|
2017-02-10 09:00:57 +00:00
|
|
|
CGameOptionsTouchBar.hpp CGameOptionsTouchBar.cpp
|
2017-06-12 04:23:34 +00:00
|
|
|
CStaticInterference.hpp CStaticInterference.cpp
|
2015-08-18 22:51:54 +00:00
|
|
|
CCRC32.hpp CCRC32.cpp
|
|
|
|
IFactory.hpp
|
2016-04-13 06:07:23 +00:00
|
|
|
IObjFactory.hpp
|
2016-04-16 21:49:47 +00:00
|
|
|
CObjectList.hpp CObjectList.cpp
|
|
|
|
GameObjectLists.hpp GameObjectLists.cpp
|
|
|
|
CSortedLists.hpp CSortedLists.cpp
|
2015-08-20 02:52:07 +00:00
|
|
|
CArchitectureMessage.hpp
|
2018-05-25 06:39:38 +00:00
|
|
|
CArchitectureQueue.hpp
|
2015-08-21 00:06:39 +00:00
|
|
|
IObj.hpp
|
2015-08-22 01:58:41 +00:00
|
|
|
IVParamObj.hpp
|
2015-10-28 04:45:02 +00:00
|
|
|
CTimeProvider.hpp CTimeProvider.cpp
|
2016-09-21 05:41:51 +00:00
|
|
|
CToken.hpp CToken.cpp
|
2015-08-23 06:42:29 +00:00
|
|
|
CFactoryMgr.hpp CFactoryMgr.cpp
|
|
|
|
CPakFile.hpp CPakFile.cpp
|
|
|
|
CStringExtras.hpp
|
2015-08-23 23:58:07 +00:00
|
|
|
IOStreams.hpp IOStreams.cpp
|
2015-08-27 00:23:46 +00:00
|
|
|
CMainFlowBase.hpp CMainFlowBase.cpp
|
|
|
|
CMFGameBase.hpp
|
|
|
|
CInGameTweakManagerBase.hpp
|
|
|
|
CPlayMovieBase.hpp
|
2018-05-25 06:39:38 +00:00
|
|
|
CGameDebug.hpp
|
2016-09-08 02:01:29 +00:00
|
|
|
CGameHintInfo.hpp CGameHintInfo.cpp
|
2017-04-15 06:16:38 +00:00
|
|
|
rstl.hpp
|
2016-04-15 03:02:21 +00:00
|
|
|
GameGlobalObjects.hpp GameGlobalObjects.cpp
|
2017-01-15 03:07:01 +00:00
|
|
|
MkCastTo.py
|
|
|
|
TCastTo.hpp TCastTo.cpp
|
2015-08-23 06:42:29 +00:00
|
|
|
GCNTypes.hpp
|
|
|
|
${PLAT_SRCS})
|
2017-12-12 02:06:19 +00:00
|
|
|
if(COMMAND add_sanitizers)
|
|
|
|
add_sanitizers(RuntimeCommon)
|
|
|
|
endif()
|
2017-12-29 08:08:12 +00:00
|
|
|
if(COMMAND cotire)
|
2017-12-31 02:44:18 +00:00
|
|
|
set_target_properties(RuntimeCommon PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
|
2017-12-29 08:08:12 +00:00
|
|
|
cotire(RuntimeCommon)
|
|
|
|
endif()
|
2017-12-07 04:13:12 +00:00
|
|
|
|
|
|
|
if(WINDOWS_STORE)
|
|
|
|
set_property(TARGET RuntimeCommon PROPERTY VS_WINRT_COMPONENT TRUE)
|
|
|
|
endif()
|