CMakeLists.txt 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. set(client_SRCS
  2. StdInc.cpp
  3. ../CCallback.cpp
  4. adventureMap/AdventureMapInterface.cpp
  5. adventureMap/AdventureMapShortcuts.cpp
  6. adventureMap/AdventureMapWidget.cpp
  7. adventureMap/AdventureOptions.cpp
  8. adventureMap/CInGameConsole.cpp
  9. adventureMap/CInfoBar.cpp
  10. adventureMap/CList.cpp
  11. adventureMap/CMinimap.cpp
  12. adventureMap/CResDataBar.cpp
  13. adventureMap/MapAudioPlayer.cpp
  14. adventureMap/TurnTimerWidget.cpp
  15. battle/BattleActionsController.cpp
  16. battle/BattleAnimationClasses.cpp
  17. battle/BattleEffectsController.cpp
  18. battle/BattleFieldController.cpp
  19. battle/BattleInterface.cpp
  20. battle/BattleInterfaceClasses.cpp
  21. battle/BattleObstacleController.cpp
  22. battle/BattleProjectileController.cpp
  23. battle/BattleRenderer.cpp
  24. battle/BattleSiegeController.cpp
  25. battle/BattleStacksController.cpp
  26. battle/BattleWindow.cpp
  27. battle/CreatureAnimation.cpp
  28. eventsSDL/NotificationHandler.cpp
  29. eventsSDL/InputHandler.cpp
  30. eventsSDL/InputSourceKeyboard.cpp
  31. eventsSDL/InputSourceMouse.cpp
  32. eventsSDL/InputSourceText.cpp
  33. eventsSDL/InputSourceTouch.cpp
  34. eventsSDL/InputSourceGameController.cpp
  35. gui/CGuiHandler.cpp
  36. gui/CIntObject.cpp
  37. gui/CursorHandler.cpp
  38. gui/EventDispatcher.cpp
  39. gui/EventsReceiver.cpp
  40. gui/InterfaceObjectConfigurable.cpp
  41. gui/FramerateManager.cpp
  42. gui/ShortcutHandler.cpp
  43. gui/WindowHandler.cpp
  44. lobby/CBonusSelection.cpp
  45. lobby/CCampaignInfoScreen.cpp
  46. lobby/CLobbyScreen.cpp
  47. lobby/CSavingScreen.cpp
  48. lobby/CScenarioInfoScreen.cpp
  49. lobby/CSelectionBase.cpp
  50. lobby/TurnOptionsTab.cpp
  51. lobby/ExtraOptionsTab.cpp
  52. lobby/OptionsTab.cpp
  53. lobby/OptionsTabBase.cpp
  54. lobby/RandomMapTab.cpp
  55. lobby/SelectionTab.cpp
  56. mainmenu/CCampaignScreen.cpp
  57. mainmenu/CMainMenu.cpp
  58. mainmenu/CPrologEpilogVideo.cpp
  59. mainmenu/CreditsScreen.cpp
  60. mainmenu/CHighScoreScreen.cpp
  61. mapView/MapRenderer.cpp
  62. mapView/MapRendererContext.cpp
  63. mapView/MapRendererContextState.cpp
  64. mapView/MapView.cpp
  65. mapView/MapViewActions.cpp
  66. mapView/MapViewCache.cpp
  67. mapView/MapViewController.cpp
  68. mapView/MapViewModel.cpp
  69. mapView/mapHandler.cpp
  70. render/CAnimation.cpp
  71. render/CBitmapHandler.cpp
  72. render/CDefFile.cpp
  73. render/Canvas.cpp
  74. render/ColorFilter.cpp
  75. render/Colors.cpp
  76. render/Graphics.cpp
  77. render/IFont.cpp
  78. renderSDL/CBitmapFont.cpp
  79. renderSDL/CBitmapHanFont.cpp
  80. renderSDL/CTrueTypeFont.cpp
  81. renderSDL/CursorHardware.cpp
  82. renderSDL/CursorSoftware.cpp
  83. renderSDL/RenderHandler.cpp
  84. renderSDL/SDLImage.cpp
  85. renderSDL/SDLImageLoader.cpp
  86. renderSDL/SDLRWwrapper.cpp
  87. renderSDL/ScreenHandler.cpp
  88. renderSDL/SDL_Extensions.cpp
  89. globalLobby/GlobalLobbyClient.cpp
  90. globalLobby/GlobalLobbyInviteWindow.cpp
  91. globalLobby/GlobalLobbyLoginWindow.cpp
  92. globalLobby/GlobalLobbyRoomWindow.cpp
  93. globalLobby/GlobalLobbyServerSetup.cpp
  94. globalLobby/GlobalLobbyWidget.cpp
  95. globalLobby/GlobalLobbyWindow.cpp
  96. widgets/Buttons.cpp
  97. widgets/CArtPlace.cpp
  98. widgets/CComponent.cpp
  99. widgets/CExchangeController.cpp
  100. widgets/CGarrisonInt.cpp
  101. widgets/CreatureCostBox.cpp
  102. widgets/ComboBox.cpp
  103. widgets/GraphicalPrimitiveCanvas.cpp
  104. widgets/Images.cpp
  105. widgets/MiscWidgets.cpp
  106. widgets/ObjectLists.cpp
  107. widgets/TextControls.cpp
  108. widgets/Scrollable.cpp
  109. widgets/Slider.cpp
  110. widgets/CArtifactsOfHeroBase.cpp
  111. widgets/CArtifactsOfHeroMain.cpp
  112. widgets/CArtifactsOfHeroKingdom.cpp
  113. widgets/CArtifactsOfHeroAltar.cpp
  114. widgets/CArtifactsOfHeroMarket.cpp
  115. widgets/CArtifactsOfHeroBackpack.cpp
  116. widgets/RadialMenu.cpp
  117. widgets/markets/CAltarArtifacts.cpp
  118. widgets/markets/CAltarCreatures.cpp
  119. widgets/markets/CArtifactsBuying.cpp
  120. widgets/markets/CArtifactsSelling.cpp
  121. widgets/markets/CFreelancerGuild.cpp
  122. widgets/markets/CMarketResources.cpp
  123. widgets/markets/CTransferResources.cpp
  124. widgets/markets/CMarketBase.cpp
  125. widgets/markets/TradePanels.cpp
  126. windows/CCastleInterface.cpp
  127. windows/CCreatureWindow.cpp
  128. windows/CHeroOverview.cpp
  129. windows/CHeroWindow.cpp
  130. windows/CKingdomInterface.cpp
  131. windows/CMapOverview.cpp
  132. windows/CMarketWindow.cpp
  133. windows/CMessage.cpp
  134. windows/CPuzzleWindow.cpp
  135. windows/CQuestLog.cpp
  136. windows/CSpellWindow.cpp
  137. windows/CTutorialWindow.cpp
  138. windows/CWindowObject.cpp
  139. windows/CreaturePurchaseCard.cpp
  140. windows/GUIClasses.cpp
  141. windows/InfoWindows.cpp
  142. windows/QuickRecruitmentWindow.cpp
  143. windows/CHeroBackpackWindow.cpp
  144. windows/CWindowWithArtifacts.cpp
  145. windows/settings/GeneralOptionsTab.cpp
  146. windows/settings/OtherOptionsTab.cpp
  147. windows/settings/SettingsMainWindow.cpp
  148. windows/settings/BattleOptionsTab.cpp
  149. windows/settings/AdventureOptionsTab.cpp
  150. CGameInfo.cpp
  151. CMT.cpp
  152. CMusicHandler.cpp
  153. CPlayerInterface.cpp
  154. PlayerLocalState.cpp
  155. CServerHandler.cpp
  156. CVideoHandler.cpp
  157. Client.cpp
  158. ClientCommandManager.cpp
  159. GameChatHandler.cpp
  160. HeroMovementController.cpp
  161. NetPacksClient.cpp
  162. NetPacksLobbyClient.cpp
  163. ServerRunner.cpp
  164. )
  165. set(client_HEADERS
  166. StdInc.h
  167. adventureMap/AdventureMapInterface.h
  168. adventureMap/AdventureMapShortcuts.h
  169. adventureMap/AdventureMapWidget.h
  170. adventureMap/AdventureState.h
  171. adventureMap/AdventureOptions.h
  172. adventureMap/CInGameConsole.h
  173. adventureMap/CInfoBar.h
  174. adventureMap/CList.h
  175. adventureMap/CMinimap.h
  176. adventureMap/CResDataBar.h
  177. adventureMap/MapAudioPlayer.h
  178. adventureMap/TurnTimerWidget.h
  179. battle/BattleActionsController.h
  180. battle/BattleAnimationClasses.h
  181. battle/BattleConstants.h
  182. battle/BattleEffectsController.h
  183. battle/BattleFieldController.h
  184. battle/BattleInterface.h
  185. battle/BattleInterfaceClasses.h
  186. battle/BattleObstacleController.h
  187. battle/BattleProjectileController.h
  188. battle/BattleRenderer.h
  189. battle/BattleSiegeController.h
  190. battle/BattleStacksController.h
  191. battle/BattleWindow.h
  192. battle/CreatureAnimation.h
  193. eventsSDL/NotificationHandler.h
  194. eventsSDL/InputHandler.h
  195. eventsSDL/InputSourceKeyboard.h
  196. eventsSDL/InputSourceMouse.h
  197. eventsSDL/InputSourceText.h
  198. eventsSDL/InputSourceTouch.h
  199. eventsSDL/InputSourceGameController.h
  200. gui/CGuiHandler.h
  201. gui/CIntObject.h
  202. gui/CursorHandler.h
  203. gui/EventDispatcher.h
  204. gui/EventsReceiver.h
  205. gui/InterfaceObjectConfigurable.h
  206. gui/FramerateManager.h
  207. gui/MouseButton.h
  208. gui/Shortcut.h
  209. gui/ShortcutHandler.h
  210. gui/TextAlignment.h
  211. gui/WindowHandler.h
  212. lobby/CBonusSelection.h
  213. lobby/CCampaignInfoScreen.h
  214. lobby/CLobbyScreen.h
  215. lobby/CSavingScreen.h
  216. lobby/CScenarioInfoScreen.h
  217. lobby/CSelectionBase.h
  218. lobby/TurnOptionsTab.h
  219. lobby/ExtraOptionsTab.h
  220. lobby/OptionsTab.h
  221. lobby/OptionsTabBase.h
  222. lobby/RandomMapTab.h
  223. lobby/SelectionTab.h
  224. mainmenu/CCampaignScreen.h
  225. mainmenu/CMainMenu.h
  226. mainmenu/CPrologEpilogVideo.h
  227. mainmenu/CreditsScreen.h
  228. mainmenu/CHighScoreScreen.h
  229. mapView/IMapRendererContext.h
  230. mapView/IMapRendererObserver.h
  231. mapView/MapRenderer.h
  232. mapView/MapRendererContext.h
  233. mapView/MapRendererContextState.h
  234. mapView/MapView.h
  235. mapView/MapViewActions.h
  236. mapView/MapViewCache.h
  237. mapView/MapViewController.h
  238. mapView/MapViewModel.h
  239. mapView/mapHandler.h
  240. render/CAnimation.h
  241. render/CBitmapHandler.h
  242. render/CDefFile.h
  243. render/Canvas.h
  244. render/ColorFilter.h
  245. render/Colors.h
  246. render/EFont.h
  247. render/Graphics.h
  248. render/ICursor.h
  249. render/IFont.h
  250. render/IImage.h
  251. render/IImageLoader.h
  252. render/IRenderHandler.h
  253. render/IScreenHandler.h
  254. renderSDL/CBitmapFont.h
  255. renderSDL/CBitmapHanFont.h
  256. renderSDL/CTrueTypeFont.h
  257. renderSDL/CursorHardware.h
  258. renderSDL/CursorSoftware.h
  259. renderSDL/RenderHandler.h
  260. renderSDL/SDLImage.h
  261. renderSDL/SDLImageLoader.h
  262. renderSDL/SDLRWwrapper.h
  263. renderSDL/ScreenHandler.h
  264. renderSDL/SDL_Extensions.h
  265. renderSDL/SDL_PixelAccess.h
  266. globalLobby/GlobalLobbyClient.h
  267. globalLobby/GlobalLobbyDefines.h
  268. globalLobby/GlobalLobbyInviteWindow.h
  269. globalLobby/GlobalLobbyLoginWindow.h
  270. globalLobby/GlobalLobbyRoomWindow.h
  271. globalLobby/GlobalLobbyServerSetup.h
  272. globalLobby/GlobalLobbyWidget.h
  273. globalLobby/GlobalLobbyWindow.h
  274. widgets/Buttons.h
  275. widgets/CArtPlace.h
  276. widgets/CComponent.h
  277. widgets/CExchangeController.h
  278. widgets/CGarrisonInt.h
  279. widgets/CreatureCostBox.h
  280. widgets/ComboBox.h
  281. widgets/GraphicalPrimitiveCanvas.h
  282. widgets/Images.h
  283. widgets/MiscWidgets.h
  284. widgets/ObjectLists.h
  285. widgets/TextControls.h
  286. widgets/Scrollable.h
  287. widgets/Slider.h
  288. widgets/CArtifactsOfHeroBase.h
  289. widgets/CArtifactsOfHeroMain.h
  290. widgets/CArtifactsOfHeroKingdom.h
  291. widgets/CArtifactsOfHeroAltar.h
  292. widgets/CArtifactsOfHeroMarket.h
  293. widgets/CArtifactsOfHeroBackpack.h
  294. widgets/RadialMenu.h
  295. widgets/markets/CAltarArtifacts.h
  296. widgets/markets/CAltarCreatures.h
  297. widgets/markets/CArtifactsBuying.h
  298. widgets/markets/CArtifactsSelling.h
  299. widgets/markets/CFreelancerGuild.h
  300. widgets/markets/CMarketResources.h
  301. widgets/markets/CTransferResources.h
  302. widgets/markets/CMarketBase.h
  303. widgets/markets/TradePanels.h
  304. windows/CCastleInterface.h
  305. windows/CCreatureWindow.h
  306. windows/CHeroOverview.h
  307. windows/CHeroWindow.h
  308. windows/CKingdomInterface.h
  309. windows/CMessage.h
  310. windows/CMapOverview.h
  311. windows/CMarketWindow.h
  312. windows/CPuzzleWindow.h
  313. windows/CQuestLog.h
  314. windows/CSpellWindow.h
  315. windows/CTutorialWindow.h
  316. windows/CWindowObject.h
  317. windows/CreaturePurchaseCard.h
  318. windows/GUIClasses.h
  319. windows/InfoWindows.h
  320. windows/QuickRecruitmentWindow.h
  321. windows/CHeroBackpackWindow.h
  322. windows/CWindowWithArtifacts.h
  323. windows/settings/GeneralOptionsTab.h
  324. windows/settings/OtherOptionsTab.h
  325. windows/settings/SettingsMainWindow.h
  326. windows/settings/BattleOptionsTab.h
  327. windows/settings/AdventureOptionsTab.h
  328. CGameInfo.h
  329. CMT.h
  330. CMusicHandler.h
  331. CPlayerInterface.h
  332. PlayerLocalState.h
  333. CServerHandler.h
  334. CVideoHandler.h
  335. Client.h
  336. ClientCommandManager.h
  337. ClientNetPackVisitors.h
  338. HeroMovementController.h
  339. GameChatHandler.h
  340. LobbyClientNetPackVisitors.h
  341. ServerRunner.h
  342. resource.h
  343. )
  344. if(APPLE_IOS)
  345. set(client_SRCS ${client_SRCS}
  346. CFocusableHelper.cpp
  347. ios/GameChatKeyboardHandler.m
  348. ios/main.m
  349. ios/startSDL.mm
  350. ios/utils.mm
  351. )
  352. set(client_HEADERS ${client_HEADERS}
  353. CFocusableHelper.h
  354. ios/GameChatKeyboardHandler.h
  355. ios/startSDL.h
  356. ios/utils.h
  357. )
  358. endif()
  359. assign_source_group(${client_SRCS} ${client_HEADERS} VCMI_client.rc)
  360. if(ANDROID)
  361. add_library(vcmiclient SHARED ${client_SRCS} ${client_HEADERS})
  362. else()
  363. add_executable(vcmiclient ${client_SRCS} ${client_HEADERS})
  364. endif()
  365. if(NOT ENABLE_STATIC_LIBS)
  366. add_dependencies(vcmiclient
  367. BattleAI
  368. EmptyAI
  369. StupidAI
  370. VCAI
  371. )
  372. if(ENABLE_NULLKILLER_AI)
  373. add_dependencies(vcmiclient Nullkiller)
  374. endif()
  375. endif()
  376. if(APPLE_IOS)
  377. if(ENABLE_ERM)
  378. add_dependencies(vcmiclient vcmiERM)
  379. endif()
  380. if(ENABLE_LUA)
  381. add_dependencies(vcmiclient vcmiLua)
  382. endif()
  383. endif()
  384. if(WIN32)
  385. target_sources(vcmiclient PRIVATE "VCMI_client.rc")
  386. set_target_properties(vcmiclient
  387. PROPERTIES
  388. OUTPUT_NAME "VCMI_client"
  389. PROJECT_LABEL "VCMI_client"
  390. )
  391. set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT vcmiclient)
  392. if(NOT ENABLE_DEBUG_CONSOLE)
  393. set_target_properties(vcmiclient PROPERTIES WIN32_EXECUTABLE)
  394. target_link_libraries(vcmiclient SDL2::SDL2main)
  395. endif()
  396. target_compile_definitions(vcmiclient PRIVATE WINDOWS_IGNORE_PACKING_MISMATCH)
  397. # TODO: very hacky, find proper solution to copy AI dlls into bin dir
  398. if(MSVC)
  399. add_custom_command(TARGET vcmiclient POST_BUILD
  400. WORKING_DIRECTORY "$<TARGET_FILE_DIR:vcmiclient>"
  401. COMMAND ${CMAKE_COMMAND} -E copy AI/fuzzylite.dll fuzzylite.dll
  402. COMMAND ${CMAKE_COMMAND} -E copy AI/tbb12.dll tbb12.dll
  403. )
  404. endif()
  405. elseif(APPLE_IOS)
  406. target_link_libraries(vcmiclient PRIVATE
  407. iOS_utils
  408. # FFmpeg
  409. bz2
  410. iconv
  411. z
  412. "-framework AudioToolbox"
  413. "-framework AVFoundation"
  414. "-framework CoreMedia"
  415. "-framework VideoToolbox"
  416. )
  417. set_target_properties(vcmiclient PROPERTIES
  418. MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_LIST_DIR}/ios/Info.plist"
  419. XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks"
  420. XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED "$(CODE_SIGNING_ALLOWED_FOR_APPS)"
  421. XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME AppIcon
  422. )
  423. foreach(XCODE_RESOURCE LaunchScreen.storyboard Images.xcassets Settings.bundle vcmi_logo.png)
  424. set(XCODE_RESOURCE_PATH ios/${XCODE_RESOURCE})
  425. target_sources(vcmiclient PRIVATE ${XCODE_RESOURCE_PATH})
  426. set_source_files_properties(${XCODE_RESOURCE_PATH} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
  427. # workaround to prevent CMAKE_SKIP_PRECOMPILE_HEADERS being added as compile flag
  428. if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.22.0" AND CMAKE_VERSION VERSION_LESS "3.25.0")
  429. set_source_files_properties(${XCODE_RESOURCE_PATH} PROPERTIES LANGUAGE CXX)
  430. endif()
  431. endforeach()
  432. set(CMAKE_EXE_LINKER_FLAGS "-Wl,-e,_client_main")
  433. endif()
  434. target_link_libraries(vcmiclient PRIVATE vcmiservercommon)
  435. if(ENABLE_SINGLE_APP_BUILD AND ENABLE_LAUNCHER)
  436. target_link_libraries(vcmiclient PRIVATE vcmilauncher)
  437. endif()
  438. target_link_libraries(vcmiclient PRIVATE
  439. vcmi SDL2::SDL2 SDL2::Image SDL2::Mixer SDL2::TTF
  440. )
  441. if(ffmpeg_LIBRARIES)
  442. target_link_libraries(vcmiclient PRIVATE
  443. ${ffmpeg_LIBRARIES}
  444. )
  445. else()
  446. target_compile_definitions(vcmiclient PRIVATE DISABLE_VIDEO)
  447. endif()
  448. target_include_directories(vcmiclient PUBLIC
  449. ${CMAKE_CURRENT_SOURCE_DIR}
  450. )
  451. if (ffmpeg_INCLUDE_DIRS)
  452. target_include_directories(vcmiclient PRIVATE
  453. ${ffmpeg_INCLUDE_DIRS}
  454. )
  455. endif()
  456. vcmi_set_output_dir(vcmiclient "")
  457. enable_pch(vcmiclient)
  458. if(APPLE_IOS)
  459. vcmi_install_conan_deps("\${CMAKE_INSTALL_PREFIX}")
  460. add_custom_command(TARGET vcmiclient POST_BUILD
  461. COMMAND ios/set_build_version.sh "$<TARGET_BUNDLE_CONTENT_DIR:vcmiclient>"
  462. COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" --component "${CMAKE_INSTALL_DEFAULT_COMPONENT_NAME}" --config "$<CONFIG>" --prefix "$<TARGET_BUNDLE_CONTENT_DIR:vcmiclient>"
  463. COMMAND ios/rpath_remove_symlinks.sh
  464. COMMAND ios/codesign.sh
  465. WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
  466. )
  467. install(TARGETS vcmiclient DESTINATION Payload COMPONENT app) # for ipa generation with cpack
  468. elseif(ANDROID)
  469. vcmi_install_conan_deps("\${CMAKE_INSTALL_PREFIX}/${LIB_DIR}")
  470. add_custom_command(TARGET vcmiclient POST_BUILD
  471. COMMAND ${CMAKE_COMMAND} --install "${CMAKE_BINARY_DIR}" --config "$<CONFIG>" --prefix "${CMAKE_SOURCE_DIR}/android/vcmi-app/src/main"
  472. )
  473. install(TARGETS vcmiclient DESTINATION ${LIB_DIR})
  474. else()
  475. install(TARGETS vcmiclient DESTINATION ${BIN_DIR})
  476. endif()
  477. #install icons and desktop file on Linux
  478. if(NOT WIN32 AND NOT APPLE AND NOT ANDROID)
  479. #FIXME: move to client makefile?
  480. foreach(iconSize 16 22 32 48 64 128 256 512 1024 2048)
  481. install(FILES "icons/vcmiclient.${iconSize}x${iconSize}.png"
  482. DESTINATION "share/icons/hicolor/${iconSize}x${iconSize}/apps"
  483. RENAME vcmiclient.png
  484. )
  485. endforeach()
  486. install(FILES icons/vcmiclient.svg
  487. DESTINATION share/icons/hicolor/scalable/apps
  488. RENAME vcmiclient.svg
  489. )
  490. install(FILES icons/vcmiclient.desktop
  491. DESTINATION share/applications
  492. )
  493. endif()