2012-07-01 17:27:41 +03:00
|
|
|
set(client_SRCS
|
2023-02-01 16:42:03 +02:00
|
|
|
StdInc.cpp
|
|
|
|
../CCallback.cpp
|
|
|
|
|
2023-05-08 14:18:34 +02:00
|
|
|
adventureMap/AdventureMapInterface.cpp
|
2023-05-02 15:09:36 +02:00
|
|
|
adventureMap/AdventureMapShortcuts.cpp
|
2023-05-08 14:18:34 +02:00
|
|
|
adventureMap/AdventureMapWidget.cpp
|
|
|
|
adventureMap/AdventureOptions.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
adventureMap/CInGameConsole.cpp
|
|
|
|
adventureMap/CInfoBar.cpp
|
|
|
|
adventureMap/CList.cpp
|
|
|
|
adventureMap/CMinimap.cpp
|
|
|
|
adventureMap/CResDataBar.cpp
|
2023-03-01 17:20:05 +02:00
|
|
|
adventureMap/MapAudioPlayer.cpp
|
2023-08-13 12:06:35 +02:00
|
|
|
adventureMap/TurnTimerWidget.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
|
|
|
|
battle/BattleActionsController.cpp
|
|
|
|
battle/BattleAnimationClasses.cpp
|
|
|
|
battle/BattleEffectsController.cpp
|
|
|
|
battle/BattleFieldController.cpp
|
|
|
|
battle/BattleInterface.cpp
|
|
|
|
battle/BattleInterfaceClasses.cpp
|
|
|
|
battle/BattleObstacleController.cpp
|
|
|
|
battle/BattleProjectileController.cpp
|
|
|
|
battle/BattleRenderer.cpp
|
|
|
|
battle/BattleSiegeController.cpp
|
|
|
|
battle/BattleStacksController.cpp
|
|
|
|
battle/BattleWindow.cpp
|
2023-02-01 20:42:06 +02:00
|
|
|
battle/CreatureAnimation.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
|
2023-05-18 19:32:29 +02:00
|
|
|
eventsSDL/NotificationHandler.cpp
|
|
|
|
eventsSDL/InputHandler.cpp
|
|
|
|
eventsSDL/InputSourceKeyboard.cpp
|
|
|
|
eventsSDL/InputSourceMouse.cpp
|
|
|
|
eventsSDL/InputSourceText.cpp
|
|
|
|
eventsSDL/InputSourceTouch.cpp
|
|
|
|
|
2023-02-01 16:42:03 +02:00
|
|
|
gui/CGuiHandler.cpp
|
|
|
|
gui/CIntObject.cpp
|
|
|
|
gui/CursorHandler.cpp
|
2023-05-18 12:31:26 +02:00
|
|
|
gui/EventDispatcher.cpp
|
|
|
|
gui/EventsReceiver.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
gui/InterfaceObjectConfigurable.cpp
|
2023-05-12 23:15:48 +02:00
|
|
|
gui/FramerateManager.cpp
|
2023-04-27 19:21:06 +02:00
|
|
|
gui/ShortcutHandler.cpp
|
2023-05-16 14:10:26 +02:00
|
|
|
gui/WindowHandler.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
|
|
|
|
lobby/CBonusSelection.cpp
|
|
|
|
lobby/CCampaignInfoScreen.cpp
|
|
|
|
lobby/CLobbyScreen.cpp
|
|
|
|
lobby/CSavingScreen.cpp
|
|
|
|
lobby/CScenarioInfoScreen.cpp
|
|
|
|
lobby/CSelectionBase.cpp
|
2023-11-09 16:41:00 +02:00
|
|
|
lobby/TurnOptionsTab.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
lobby/OptionsTab.cpp
|
2023-11-09 13:45:46 +02:00
|
|
|
lobby/OptionsTabBase.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
lobby/RandomMapTab.cpp
|
|
|
|
lobby/SelectionTab.cpp
|
|
|
|
|
|
|
|
mainmenu/CCampaignScreen.cpp
|
|
|
|
mainmenu/CMainMenu.cpp
|
|
|
|
mainmenu/CPrologEpilogVideo.cpp
|
|
|
|
mainmenu/CreditsScreen.cpp
|
2023-09-22 01:39:35 +02:00
|
|
|
mainmenu/CHighScoreScreen.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
|
2023-03-01 12:31:23 +02:00
|
|
|
mapView/MapRenderer.cpp
|
|
|
|
mapView/MapRendererContext.cpp
|
|
|
|
mapView/MapRendererContextState.cpp
|
|
|
|
mapView/MapView.cpp
|
|
|
|
mapView/MapViewActions.cpp
|
|
|
|
mapView/MapViewCache.cpp
|
|
|
|
mapView/MapViewController.cpp
|
|
|
|
mapView/MapViewModel.cpp
|
|
|
|
mapView/mapHandler.cpp
|
2023-02-20 21:02:28 +02:00
|
|
|
|
2023-02-01 16:42:03 +02:00
|
|
|
render/CAnimation.cpp
|
|
|
|
render/CBitmapHandler.cpp
|
|
|
|
render/CDefFile.cpp
|
|
|
|
render/Canvas.cpp
|
|
|
|
render/ColorFilter.cpp
|
2023-02-02 21:15:13 +02:00
|
|
|
render/Colors.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
render/Graphics.cpp
|
|
|
|
render/IFont.cpp
|
|
|
|
|
|
|
|
renderSDL/CBitmapFont.cpp
|
|
|
|
renderSDL/CBitmapHanFont.cpp
|
|
|
|
renderSDL/CTrueTypeFont.cpp
|
|
|
|
renderSDL/CursorHardware.cpp
|
|
|
|
renderSDL/CursorSoftware.cpp
|
2023-09-04 17:01:44 +02:00
|
|
|
renderSDL/RenderHandler.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
renderSDL/SDLImage.cpp
|
|
|
|
renderSDL/SDLImageLoader.cpp
|
|
|
|
renderSDL/SDLRWwrapper.cpp
|
2023-05-08 12:22:01 +02:00
|
|
|
renderSDL/ScreenHandler.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
renderSDL/SDL_Extensions.cpp
|
|
|
|
|
|
|
|
widgets/Buttons.cpp
|
2023-11-05 02:01:23 +02:00
|
|
|
widgets/CAltar.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
widgets/CArtifactHolder.cpp
|
|
|
|
widgets/CComponent.cpp
|
2023-09-17 17:40:14 +02:00
|
|
|
widgets/CExchangeController.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
widgets/CGarrisonInt.cpp
|
|
|
|
widgets/CreatureCostBox.cpp
|
2023-08-25 12:52:23 +02:00
|
|
|
widgets/ComboBox.cpp
|
2023-11-05 00:53:37 +02:00
|
|
|
widgets/CTradeBase.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
widgets/Images.cpp
|
|
|
|
widgets/MiscWidgets.cpp
|
|
|
|
widgets/ObjectLists.cpp
|
|
|
|
widgets/TextControls.cpp
|
2023-05-30 16:31:45 +02:00
|
|
|
widgets/Scrollable.cpp
|
|
|
|
widgets/Slider.cpp
|
2023-04-23 14:10:35 +02:00
|
|
|
widgets/CArtifactsOfHeroBase.cpp
|
|
|
|
widgets/CArtifactsOfHeroMain.cpp
|
|
|
|
widgets/CArtifactsOfHeroKingdom.cpp
|
|
|
|
widgets/CArtifactsOfHeroAltar.cpp
|
|
|
|
widgets/CArtifactsOfHeroMarket.cpp
|
2023-07-06 21:14:12 +02:00
|
|
|
widgets/CArtifactsOfHeroBackpack.cpp
|
2023-04-23 14:10:35 +02:00
|
|
|
widgets/CWindowWithArtifacts.cpp
|
2023-07-07 00:08:29 +02:00
|
|
|
widgets/RadialMenu.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
|
2023-11-05 02:01:23 +02:00
|
|
|
windows/CAltarWindow.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CCastleInterface.cpp
|
|
|
|
windows/CCreatureWindow.cpp
|
2023-09-17 00:32:10 +02:00
|
|
|
windows/CHeroOverview.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CHeroWindow.cpp
|
|
|
|
windows/CKingdomInterface.cpp
|
2023-09-30 15:05:12 +02:00
|
|
|
windows/CMapOverview.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CMessage.cpp
|
2023-02-20 22:16:50 +02:00
|
|
|
windows/CPuzzleWindow.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CQuestLog.cpp
|
|
|
|
windows/CSpellWindow.cpp
|
|
|
|
windows/CTradeWindow.cpp
|
2023-11-14 22:52:30 +02:00
|
|
|
windows/CTutorialWindow.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CWindowObject.cpp
|
|
|
|
windows/CreaturePurchaseCard.cpp
|
|
|
|
windows/GUIClasses.cpp
|
|
|
|
windows/InfoWindows.cpp
|
|
|
|
windows/QuickRecruitmentWindow.cpp
|
2023-07-06 21:14:12 +02:00
|
|
|
windows/CHeroBackpackWindow.cpp
|
2023-02-12 18:49:41 +02:00
|
|
|
windows/settings/GeneralOptionsTab.cpp
|
2023-02-18 18:58:22 +02:00
|
|
|
windows/settings/OtherOptionsTab.cpp
|
|
|
|
windows/settings/SettingsMainWindow.cpp
|
2023-02-12 18:49:41 +02:00
|
|
|
windows/settings/BattleOptionsTab.cpp
|
|
|
|
windows/settings/AdventureOptionsTab.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
|
|
|
|
CGameInfo.cpp
|
|
|
|
CMT.cpp
|
|
|
|
CMusicHandler.cpp
|
|
|
|
CPlayerInterface.cpp
|
2023-04-17 01:02:31 +02:00
|
|
|
PlayerLocalState.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
CServerHandler.cpp
|
|
|
|
CVideoHandler.cpp
|
|
|
|
Client.cpp
|
|
|
|
ClientCommandManager.cpp
|
2023-09-07 21:37:42 +02:00
|
|
|
HeroMovementController.cpp
|
2023-02-01 16:42:03 +02:00
|
|
|
NetPacksClient.cpp
|
|
|
|
NetPacksLobbyClient.cpp
|
2012-07-01 17:27:41 +03:00
|
|
|
)
|
|
|
|
|
2014-07-15 10:14:49 +03:00
|
|
|
set(client_HEADERS
|
2023-02-01 16:42:03 +02:00
|
|
|
StdInc.h
|
|
|
|
|
2023-05-08 14:18:34 +02:00
|
|
|
adventureMap/AdventureMapInterface.h
|
2023-05-02 15:09:36 +02:00
|
|
|
adventureMap/AdventureMapShortcuts.h
|
2023-05-08 14:18:34 +02:00
|
|
|
adventureMap/AdventureMapWidget.h
|
2023-05-05 14:48:43 +02:00
|
|
|
adventureMap/AdventureState.h
|
2023-05-08 14:18:34 +02:00
|
|
|
adventureMap/AdventureOptions.h
|
2023-02-01 16:42:03 +02:00
|
|
|
adventureMap/CInGameConsole.h
|
|
|
|
adventureMap/CInfoBar.h
|
|
|
|
adventureMap/CList.h
|
|
|
|
adventureMap/CMinimap.h
|
|
|
|
adventureMap/CResDataBar.h
|
2023-03-01 17:20:05 +02:00
|
|
|
adventureMap/MapAudioPlayer.h
|
2023-08-13 12:06:35 +02:00
|
|
|
adventureMap/TurnTimerWidget.h
|
2023-02-01 16:42:03 +02:00
|
|
|
|
|
|
|
battle/BattleActionsController.h
|
|
|
|
battle/BattleAnimationClasses.h
|
|
|
|
battle/BattleConstants.h
|
|
|
|
battle/BattleEffectsController.h
|
|
|
|
battle/BattleFieldController.h
|
|
|
|
battle/BattleInterface.h
|
|
|
|
battle/BattleInterfaceClasses.h
|
|
|
|
battle/BattleObstacleController.h
|
|
|
|
battle/BattleProjectileController.h
|
|
|
|
battle/BattleRenderer.h
|
|
|
|
battle/BattleSiegeController.h
|
|
|
|
battle/BattleStacksController.h
|
|
|
|
battle/BattleWindow.h
|
|
|
|
battle/CreatureAnimation.h
|
|
|
|
|
2023-05-18 19:32:29 +02:00
|
|
|
eventsSDL/NotificationHandler.h
|
|
|
|
eventsSDL/InputHandler.h
|
|
|
|
eventsSDL/InputSourceKeyboard.h
|
|
|
|
eventsSDL/InputSourceMouse.h
|
|
|
|
eventsSDL/InputSourceText.h
|
|
|
|
eventsSDL/InputSourceTouch.h
|
|
|
|
|
2023-02-01 16:42:03 +02:00
|
|
|
gui/CGuiHandler.h
|
|
|
|
gui/CIntObject.h
|
|
|
|
gui/CursorHandler.h
|
2023-05-18 12:31:26 +02:00
|
|
|
gui/EventDispatcher.h
|
|
|
|
gui/EventsReceiver.h
|
2023-02-01 16:42:03 +02:00
|
|
|
gui/InterfaceObjectConfigurable.h
|
2023-05-12 23:15:48 +02:00
|
|
|
gui/FramerateManager.h
|
2023-02-02 16:22:19 +02:00
|
|
|
gui/MouseButton.h
|
2023-04-27 19:21:06 +02:00
|
|
|
gui/Shortcut.h
|
|
|
|
gui/ShortcutHandler.h
|
2023-02-01 16:42:03 +02:00
|
|
|
gui/TextAlignment.h
|
2023-05-16 14:10:26 +02:00
|
|
|
gui/WindowHandler.h
|
2023-02-01 16:42:03 +02:00
|
|
|
|
|
|
|
lobby/CBonusSelection.h
|
|
|
|
lobby/CCampaignInfoScreen.h
|
|
|
|
lobby/CLobbyScreen.h
|
|
|
|
lobby/CSavingScreen.h
|
|
|
|
lobby/CScenarioInfoScreen.h
|
|
|
|
lobby/CSelectionBase.h
|
2023-11-09 16:41:00 +02:00
|
|
|
lobby/TurnOptionsTab.h
|
2023-02-01 16:42:03 +02:00
|
|
|
lobby/OptionsTab.h
|
2023-11-09 13:45:46 +02:00
|
|
|
lobby/OptionsTabBase.h
|
2023-02-01 16:42:03 +02:00
|
|
|
lobby/RandomMapTab.h
|
|
|
|
lobby/SelectionTab.h
|
|
|
|
|
|
|
|
mainmenu/CCampaignScreen.h
|
|
|
|
mainmenu/CMainMenu.h
|
|
|
|
mainmenu/CPrologEpilogVideo.h
|
|
|
|
mainmenu/CreditsScreen.h
|
2023-09-22 01:39:35 +02:00
|
|
|
mainmenu/CHighScoreScreen.h
|
2023-02-01 16:42:03 +02:00
|
|
|
|
2023-03-01 12:31:23 +02:00
|
|
|
mapView/IMapRendererContext.h
|
|
|
|
mapView/IMapRendererObserver.h
|
|
|
|
mapView/MapRenderer.h
|
|
|
|
mapView/MapRendererContext.h
|
|
|
|
mapView/MapRendererContextState.h
|
|
|
|
mapView/MapView.h
|
|
|
|
mapView/MapViewActions.h
|
|
|
|
mapView/MapViewCache.h
|
|
|
|
mapView/MapViewController.h
|
|
|
|
mapView/MapViewModel.h
|
|
|
|
mapView/mapHandler.h
|
2023-02-20 21:02:28 +02:00
|
|
|
|
2023-02-01 16:42:03 +02:00
|
|
|
render/CAnimation.h
|
|
|
|
render/CBitmapHandler.h
|
|
|
|
render/CDefFile.h
|
|
|
|
render/Canvas.h
|
|
|
|
render/ColorFilter.h
|
2023-02-02 21:15:13 +02:00
|
|
|
render/Colors.h
|
2023-07-31 18:50:55 +02:00
|
|
|
render/EFont.h
|
2023-02-01 16:42:03 +02:00
|
|
|
render/Graphics.h
|
|
|
|
render/ICursor.h
|
|
|
|
render/IFont.h
|
|
|
|
render/IImage.h
|
2023-02-01 20:42:06 +02:00
|
|
|
render/IImageLoader.h
|
2023-09-04 17:01:44 +02:00
|
|
|
render/IRenderHandler.h
|
2023-05-08 12:22:01 +02:00
|
|
|
render/IScreenHandler.h
|
2023-02-01 16:42:03 +02:00
|
|
|
|
|
|
|
renderSDL/CBitmapFont.h
|
|
|
|
renderSDL/CBitmapHanFont.h
|
|
|
|
renderSDL/CTrueTypeFont.h
|
|
|
|
renderSDL/CursorHardware.h
|
|
|
|
renderSDL/CursorSoftware.h
|
2023-09-04 17:01:44 +02:00
|
|
|
renderSDL/RenderHandler.h
|
2023-02-01 16:42:03 +02:00
|
|
|
renderSDL/SDLImage.h
|
|
|
|
renderSDL/SDLImageLoader.h
|
|
|
|
renderSDL/SDLRWwrapper.h
|
2023-05-08 12:22:01 +02:00
|
|
|
renderSDL/ScreenHandler.h
|
2023-02-01 16:42:03 +02:00
|
|
|
renderSDL/SDL_Extensions.h
|
|
|
|
renderSDL/SDL_PixelAccess.h
|
|
|
|
|
|
|
|
widgets/Buttons.h
|
2023-11-05 02:01:23 +02:00
|
|
|
widgets/CAltar.h
|
2023-02-01 16:42:03 +02:00
|
|
|
widgets/CArtifactHolder.h
|
|
|
|
widgets/CComponent.h
|
2023-09-17 17:40:14 +02:00
|
|
|
widgets/CExchangeController.h
|
2023-02-01 16:42:03 +02:00
|
|
|
widgets/CGarrisonInt.h
|
|
|
|
widgets/CreatureCostBox.h
|
2023-08-25 12:52:23 +02:00
|
|
|
widgets/ComboBox.h
|
2023-11-05 00:53:37 +02:00
|
|
|
widgets/CTradeBase.h
|
2023-02-01 16:42:03 +02:00
|
|
|
widgets/Images.h
|
|
|
|
widgets/MiscWidgets.h
|
|
|
|
widgets/ObjectLists.h
|
|
|
|
widgets/TextControls.h
|
2023-05-30 16:31:45 +02:00
|
|
|
widgets/Scrollable.h
|
|
|
|
widgets/Slider.h
|
2023-04-23 14:10:35 +02:00
|
|
|
widgets/CArtifactsOfHeroBase.h
|
|
|
|
widgets/CArtifactsOfHeroMain.h
|
|
|
|
widgets/CArtifactsOfHeroKingdom.h
|
|
|
|
widgets/CArtifactsOfHeroAltar.h
|
|
|
|
widgets/CArtifactsOfHeroMarket.h
|
2023-07-06 21:14:12 +02:00
|
|
|
widgets/CArtifactsOfHeroBackpack.h
|
2023-04-23 14:10:35 +02:00
|
|
|
widgets/CWindowWithArtifacts.h
|
2023-07-07 00:08:29 +02:00
|
|
|
widgets/RadialMenu.h
|
2023-02-01 16:42:03 +02:00
|
|
|
|
2023-11-05 02:01:23 +02:00
|
|
|
windows/CAltarWindow.h
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CCastleInterface.h
|
|
|
|
windows/CCreatureWindow.h
|
2023-09-17 00:32:10 +02:00
|
|
|
windows/CHeroOverview.h
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CHeroWindow.h
|
|
|
|
windows/CKingdomInterface.h
|
|
|
|
windows/CMessage.h
|
2023-09-30 15:05:12 +02:00
|
|
|
windows/CMapOverview.h
|
2023-02-20 22:16:50 +02:00
|
|
|
windows/CPuzzleWindow.h
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CQuestLog.h
|
|
|
|
windows/CSpellWindow.h
|
|
|
|
windows/CTradeWindow.h
|
2023-11-14 22:52:30 +02:00
|
|
|
windows/CTutorialWindow.h
|
2023-02-01 16:42:03 +02:00
|
|
|
windows/CWindowObject.h
|
|
|
|
windows/CreaturePurchaseCard.h
|
|
|
|
windows/GUIClasses.h
|
|
|
|
windows/InfoWindows.h
|
|
|
|
windows/QuickRecruitmentWindow.h
|
2023-07-06 21:14:12 +02:00
|
|
|
windows/CHeroBackpackWindow.h
|
2023-02-12 18:49:41 +02:00
|
|
|
windows/settings/GeneralOptionsTab.h
|
2023-02-18 18:58:22 +02:00
|
|
|
windows/settings/OtherOptionsTab.h
|
|
|
|
windows/settings/SettingsMainWindow.h
|
2023-02-12 18:49:41 +02:00
|
|
|
windows/settings/BattleOptionsTab.h
|
|
|
|
windows/settings/AdventureOptionsTab.h
|
2023-02-01 16:42:03 +02:00
|
|
|
|
|
|
|
CGameInfo.h
|
|
|
|
CMT.h
|
|
|
|
CMusicHandler.h
|
|
|
|
CPlayerInterface.h
|
2023-04-17 01:02:31 +02:00
|
|
|
PlayerLocalState.h
|
2023-02-01 16:42:03 +02:00
|
|
|
CServerHandler.h
|
|
|
|
CVideoHandler.h
|
|
|
|
Client.h
|
|
|
|
ClientCommandManager.h
|
2023-02-12 09:23:39 +02:00
|
|
|
ClientNetPackVisitors.h
|
2023-09-07 21:37:42 +02:00
|
|
|
HeroMovementController.h
|
2023-02-12 09:23:39 +02:00
|
|
|
LobbyClientNetPackVisitors.h
|
2023-02-01 16:42:03 +02:00
|
|
|
resource.h
|
2014-07-15 10:14:49 +03:00
|
|
|
)
|
|
|
|
|
2021-03-21 16:30:34 +02:00
|
|
|
if(APPLE_IOS)
|
|
|
|
set(client_SRCS ${client_SRCS}
|
|
|
|
CFocusableHelper.cpp
|
2022-09-29 11:47:31 +02:00
|
|
|
ios/GameChatKeyboardHandler.m
|
2022-08-05 13:32:29 +02:00
|
|
|
ios/main.m
|
|
|
|
ios/startSDL.mm
|
2022-08-16 11:54:44 +02:00
|
|
|
ios/utils.mm
|
2021-03-21 16:30:34 +02:00
|
|
|
)
|
|
|
|
set(client_HEADERS ${client_HEADERS}
|
|
|
|
CFocusableHelper.h
|
2022-09-29 11:47:31 +02:00
|
|
|
ios/GameChatKeyboardHandler.h
|
2022-08-05 13:32:29 +02:00
|
|
|
ios/startSDL.h
|
2022-08-16 11:54:44 +02:00
|
|
|
ios/utils.h
|
2021-03-21 16:30:34 +02:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2017-08-15 20:17:00 +02:00
|
|
|
assign_source_group(${client_SRCS} ${client_HEADERS} VCMI_client.rc)
|
|
|
|
|
2023-02-25 09:15:09 +02:00
|
|
|
if(ANDROID)
|
|
|
|
add_library(vcmiclient SHARED ${client_SRCS} ${client_HEADERS})
|
|
|
|
else()
|
|
|
|
add_executable(vcmiclient ${client_SRCS} ${client_HEADERS})
|
2017-05-25 19:57:20 +02:00
|
|
|
endif()
|
|
|
|
|
2023-02-26 09:39:36 +02:00
|
|
|
add_dependencies(vcmiclient vcmiserver)
|
|
|
|
if(NOT ENABLE_STATIC_AI_LIBS)
|
|
|
|
add_dependencies(vcmiclient
|
|
|
|
BattleAI
|
2023-02-28 12:08:58 +02:00
|
|
|
EmptyAI
|
2023-02-26 09:39:36 +02:00
|
|
|
StupidAI
|
|
|
|
VCAI
|
|
|
|
)
|
|
|
|
if(ENABLE_NULLKILLER_AI)
|
|
|
|
add_dependencies(vcmiclient Nullkiller)
|
|
|
|
endif()
|
2022-12-13 03:55:54 +02:00
|
|
|
endif()
|
2022-08-15 13:38:03 +02:00
|
|
|
if(APPLE_IOS)
|
|
|
|
if(ENABLE_ERM)
|
|
|
|
add_dependencies(vcmiclient vcmiERM)
|
|
|
|
endif()
|
|
|
|
if(ENABLE_LUA)
|
|
|
|
add_dependencies(vcmiclient vcmiLua)
|
|
|
|
endif()
|
|
|
|
endif()
|
2012-07-01 17:27:41 +03:00
|
|
|
|
2014-07-10 01:06:37 +03:00
|
|
|
if(WIN32)
|
2023-02-22 11:47:06 +02:00
|
|
|
target_sources(vcmiclient PRIVATE "VCMI_client.rc")
|
2017-08-15 20:17:00 +02:00
|
|
|
set_target_properties(vcmiclient
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME "VCMI_client"
|
|
|
|
PROJECT_LABEL "VCMI_client"
|
|
|
|
)
|
2017-10-31 08:28:35 +02:00
|
|
|
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT vcmiclient)
|
2017-08-16 15:29:18 +02:00
|
|
|
if(NOT ENABLE_DEBUG_CONSOLE)
|
2023-02-22 11:47:06 +02:00
|
|
|
set_target_properties(vcmiclient PROPERTIES WIN32_EXECUTABLE)
|
2022-05-26 07:55:20 +02:00
|
|
|
target_link_libraries(vcmiclient SDL2::SDL2main)
|
2017-08-16 15:29:18 +02:00
|
|
|
endif()
|
2022-08-03 10:49:30 +02:00
|
|
|
target_compile_definitions(vcmiclient PRIVATE WINDOWS_IGNORE_PACKING_MISMATCH)
|
2022-09-25 13:09:09 +02:00
|
|
|
|
2023-05-18 19:32:29 +02:00
|
|
|
# TODO: very hacky, find proper solution to copy AI dlls into bin dir
|
2022-09-25 13:09:09 +02:00
|
|
|
if(MSVC)
|
|
|
|
add_custom_command(TARGET vcmiclient POST_BUILD
|
|
|
|
WORKING_DIRECTORY "$<TARGET_FILE_DIR:vcmiclient>"
|
2022-10-04 20:30:18 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy AI/fuzzylite.dll fuzzylite.dll
|
2023-01-15 23:55:24 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy AI/tbb12.dll tbb12.dll
|
2022-09-25 13:09:09 +02:00
|
|
|
)
|
|
|
|
endif()
|
2021-03-01 10:38:21 +02:00
|
|
|
elseif(APPLE_IOS)
|
|
|
|
target_link_libraries(vcmiclient PRIVATE
|
2022-08-15 15:29:11 +02:00
|
|
|
iOS_utils
|
|
|
|
|
2022-08-15 09:43:06 +02:00
|
|
|
# FFmpeg
|
|
|
|
bz2
|
|
|
|
iconv
|
|
|
|
z
|
2022-06-27 12:01:23 +02:00
|
|
|
"-framework AudioToolbox"
|
|
|
|
"-framework AVFoundation"
|
|
|
|
"-framework CoreMedia"
|
|
|
|
"-framework VideoToolbox"
|
2021-03-02 02:56:54 +02:00
|
|
|
)
|
2021-03-04 17:10:42 +02:00
|
|
|
|
2021-03-12 12:31:05 +02:00
|
|
|
set_target_properties(vcmiclient PROPERTIES
|
2021-03-13 22:23:20 +02:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_LIST_DIR}/ios/Info.plist"
|
2021-11-26 14:49:02 +02:00
|
|
|
XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks"
|
2021-12-02 14:02:34 +02:00
|
|
|
XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "$(CODE_SIGNING_ALLOWED_FOR_APPS)"
|
2021-03-13 15:53:31 +02:00
|
|
|
XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME AppIcon
|
2021-03-12 12:31:05 +02:00
|
|
|
)
|
2021-03-10 09:57:07 +02:00
|
|
|
|
2022-08-15 13:55:39 +02:00
|
|
|
foreach(XCODE_RESOURCE LaunchScreen.storyboard Images.xcassets Settings.bundle vcmi_logo.png)
|
2022-08-07 07:58:04 +02:00
|
|
|
set(XCODE_RESOURCE_PATH ios/${XCODE_RESOURCE})
|
|
|
|
target_sources(vcmiclient PRIVATE ${XCODE_RESOURCE_PATH})
|
|
|
|
set_source_files_properties(${XCODE_RESOURCE_PATH} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
|
|
|
|
|
|
|
# workaround to prevent CMAKE_SKIP_PRECOMPILE_HEADERS being added as compile flag
|
2023-01-24 19:18:09 +02:00
|
|
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.22.0" AND CMAKE_VERSION VERSION_LESS "3.25.0")
|
2022-08-07 07:58:04 +02:00
|
|
|
set_source_files_properties(${XCODE_RESOURCE_PATH} PROPERTIES LANGUAGE CXX)
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2021-03-13 15:53:31 +02:00
|
|
|
|
2022-08-07 07:58:04 +02:00
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-e,_client_main")
|
2014-07-10 01:06:37 +03:00
|
|
|
endif()
|
|
|
|
|
2022-12-06 00:00:56 +02:00
|
|
|
if(ENABLE_SINGLE_APP_BUILD)
|
2022-07-27 11:23:37 +02:00
|
|
|
target_link_libraries(vcmiclient PRIVATE vcmiserver)
|
2022-08-03 09:49:04 +02:00
|
|
|
if(ENABLE_LAUNCHER)
|
|
|
|
target_link_libraries(vcmiclient PRIVATE vcmilauncher)
|
|
|
|
endif()
|
2022-07-27 11:23:37 +02:00
|
|
|
endif()
|
2019-03-20 21:58:15 +02:00
|
|
|
target_link_libraries(vcmiclient PRIVATE
|
2022-07-27 11:23:37 +02:00
|
|
|
${VCMI_LIB_TARGET} SDL2::SDL2 SDL2::Image SDL2::Mixer SDL2::TTF
|
2017-08-15 20:18:02 +02:00
|
|
|
)
|
2019-01-19 01:57:54 +02:00
|
|
|
|
2022-09-17 13:54:22 +02:00
|
|
|
if(ffmpeg_LIBRARIES)
|
|
|
|
target_link_libraries(vcmiclient PRIVATE
|
2022-06-27 12:01:23 +02:00
|
|
|
${ffmpeg_LIBRARIES}
|
2022-09-17 13:54:22 +02:00
|
|
|
)
|
|
|
|
else()
|
|
|
|
target_compile_definitions(vcmiclient PRIVATE DISABLE_VIDEO)
|
|
|
|
endif()
|
|
|
|
|
2023-01-22 20:09:37 +02:00
|
|
|
target_include_directories(vcmiclient PUBLIC
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (ffmpeg_INCLUDE_DIRS)
|
|
|
|
target_include_directories(vcmiclient PRIVATE
|
|
|
|
${ffmpeg_INCLUDE_DIRS}
|
|
|
|
)
|
|
|
|
endif()
|
2019-01-19 01:57:54 +02:00
|
|
|
|
2017-07-04 22:46:49 +02:00
|
|
|
vcmi_set_output_dir(vcmiclient "")
|
2022-06-16 22:02:36 +02:00
|
|
|
enable_pch(vcmiclient)
|
2014-02-01 16:37:26 +03:00
|
|
|
|
2021-03-11 10:52:09 +02:00
|
|
|
if(APPLE_IOS)
|
2022-10-13 12:04:32 +02:00
|
|
|
vcmi_install_conan_deps("\${CMAKE_INSTALL_PREFIX}")
|
2021-03-11 10:52:09 +02:00
|
|
|
add_custom_command(TARGET vcmiclient POST_BUILD
|
2022-09-30 11:33:00 +02:00
|
|
|
COMMAND ios/set_build_version.sh "$<TARGET_BUNDLE_CONTENT_DIR:vcmiclient>"
|
2022-08-11 11:12:33 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" --component "${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}" --config "$<CONFIG>" --prefix "$<TARGET_BUNDLE_CONTENT_DIR:vcmiclient>"
|
2022-10-17 10:23:08 +02:00
|
|
|
COMMAND ios/rpath_remove_symlinks.sh
|
2022-09-30 11:33:00 +02:00
|
|
|
COMMAND ios/codesign.sh
|
|
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
2021-03-11 10:52:09 +02:00
|
|
|
)
|
2022-08-11 11:12:33 +02:00
|
|
|
install(TARGETS vcmiclient DESTINATION Payload COMPONENT app) # for ipa generation with cpack
|
2023-02-25 09:15:09 +02:00
|
|
|
elseif(ANDROID)
|
|
|
|
vcmi_install_conan_deps("\${CMAKE_INSTALL_PREFIX}/${LIB_DIR}")
|
|
|
|
add_custom_command(TARGET vcmiclient POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" --config "$<CONFIG>" --prefix "${CMAKE_SOURCE_DIR}/android/vcmi-app/src/main"
|
|
|
|
)
|
|
|
|
install(TARGETS vcmiclient DESTINATION ${LIB_DIR})
|
2021-03-11 10:52:09 +02:00
|
|
|
else()
|
|
|
|
install(TARGETS vcmiclient DESTINATION ${BIN_DIR})
|
|
|
|
endif()
|
2017-08-12 20:58:09 +02:00
|
|
|
|
|
|
|
#install icons and desktop file on Linux
|
2023-02-25 09:15:09 +02:00
|
|
|
if(NOT WIN32 AND NOT APPLE AND NOT ANDROID)
|
2017-08-12 20:58:09 +02:00
|
|
|
#FIXME: move to client makefile?
|
2023-04-15 13:13:44 +02:00
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.16x16.png" DESTINATION share/icons/hicolor/16x16/apps RENAME vcmiclient.png)
|
2023-09-01 21:36:32 +02:00
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.22x22.png" DESTINATION share/icons/hicolor/22x22/apps RENAME vcmiclient.png)
|
2023-04-15 13:13:44 +02:00
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.32x32.png" DESTINATION share/icons/hicolor/32x32/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.48x48.png" DESTINATION share/icons/hicolor/48x48/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.64x64.png" DESTINATION share/icons/hicolor/64x64/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.128x128.png" DESTINATION share/icons/hicolor/128x128/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.256x256.png" DESTINATION share/icons/hicolor/256x256/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.512x512.png" DESTINATION share/icons/hicolor/512x512/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.1024x1024.png" DESTINATION share/icons/hicolor/1024x1024/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.2048x2048.png" DESTINATION share/icons/hicolor/2048x2048/apps RENAME vcmiclient.png)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.svg" DESTINATION share/icons/hicolor/scalable/apps RENAME vcmiclient.svg)
|
|
|
|
install(FILES "${CMAKE_SOURCE_DIR}/client/icons/vcmiclient.desktop" DESTINATION share/applications)
|
2017-08-12 20:58:09 +02:00
|
|
|
endif()
|