2022-06-26 18:36:48 +01:00
|
|
|
if(UNIX)
|
|
|
|
find_package(PkgConfig)
|
|
|
|
if(PkgConfig_FOUND)
|
|
|
|
pkg_search_module(SCDOC scdoc)
|
|
|
|
if(SCDOC_FOUND)
|
|
|
|
pkg_get_variable(SCDOC_SCDOC scdoc scdoc)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-12-20 02:41:08 +00:00
|
|
|
set(Launcher_CommonName "PolyMC")
|
|
|
|
|
2022-06-12 19:21:56 +01:00
|
|
|
set(Launcher_Copyright "PolyMC Contributors\\n© 2012-2021 MultiMC Contributors")
|
|
|
|
set(Launcher_Copyright "${Launcher_Copyright}" PARENT_SCOPE)
|
2022-01-27 04:51:29 +00:00
|
|
|
set(Launcher_Domain "polymc.org" PARENT_SCOPE)
|
2021-12-20 02:41:08 +00:00
|
|
|
set(Launcher_Name "${Launcher_CommonName}" PARENT_SCOPE)
|
2022-01-14 22:33:34 +00:00
|
|
|
set(Launcher_DisplayName "${Launcher_CommonName}" PARENT_SCOPE)
|
2022-07-23 13:20:52 +01:00
|
|
|
set(Launcher_UserAgent "${Launcher_CommonName}/${Launcher_VERSION_NAME}" PARENT_SCOPE)
|
2021-12-20 02:41:08 +00:00
|
|
|
set(Launcher_ConfigFile "polymc.cfg" PARENT_SCOPE)
|
2021-12-28 01:49:42 +00:00
|
|
|
set(Launcher_Git "https://github.com/PolyMC/PolyMC" PARENT_SCOPE)
|
2022-02-10 07:56:34 +00:00
|
|
|
set(Launcher_DesktopFileName "org.polymc.PolyMC.desktop" PARENT_SCOPE)
|
2021-12-20 02:41:08 +00:00
|
|
|
|
2022-02-09 09:57:16 +00:00
|
|
|
set(Launcher_Desktop "program_info/org.polymc.PolyMC.desktop" PARENT_SCOPE)
|
2022-01-03 20:41:31 +00:00
|
|
|
set(Launcher_MetaInfo "program_info/org.polymc.PolyMC.metainfo.xml" PARENT_SCOPE)
|
2022-01-03 22:46:05 +00:00
|
|
|
set(Launcher_SVG "program_info/org.polymc.PolyMC.svg" PARENT_SCOPE)
|
2021-12-31 21:36:59 +00:00
|
|
|
set(Launcher_Branding_ICNS "program_info/polymc.icns" PARENT_SCOPE)
|
2022-05-30 17:56:29 +01:00
|
|
|
set(Launcher_Branding_ICO "program_info/polymc.ico")
|
|
|
|
set(Launcher_Branding_ICO "${Launcher_Branding_ICO}" PARENT_SCOPE)
|
2021-12-31 21:36:59 +00:00
|
|
|
set(Launcher_Branding_WindowsRC "program_info/polymc.rc" PARENT_SCOPE)
|
|
|
|
set(Launcher_Branding_LogoQRC "program_info/polymc.qrc" PARENT_SCOPE)
|
|
|
|
|
2022-03-23 12:20:14 +00:00
|
|
|
set(Launcher_Portable_File "program_info/portable.txt" PARENT_SCOPE)
|
|
|
|
|
2022-02-09 09:57:16 +00:00
|
|
|
configure_file(org.polymc.PolyMC.desktop.in org.polymc.PolyMC.desktop)
|
2022-01-09 18:51:46 +00:00
|
|
|
configure_file(org.polymc.PolyMC.metainfo.xml.in org.polymc.PolyMC.metainfo.xml)
|
2022-05-29 11:46:44 +01:00
|
|
|
configure_file(polymc.rc.in polymc.rc @ONLY)
|
|
|
|
configure_file(polymc.manifest.in polymc.manifest @ONLY)
|
|
|
|
configure_file(polymc.ico polymc.ico COPYONLY)
|
2022-05-30 17:56:29 +01:00
|
|
|
configure_file(win_install.nsi.in win_install.nsi @ONLY)
|
2022-06-26 18:36:48 +01:00
|
|
|
|
|
|
|
if(SCDOC_FOUND)
|
|
|
|
set(in_scd "${CMAKE_CURRENT_SOURCE_DIR}/polymc.6.scd")
|
|
|
|
set(out_man "${CMAKE_CURRENT_BINARY_DIR}/polymc.6")
|
|
|
|
add_custom_command(
|
|
|
|
DEPENDS "${in_scd}"
|
|
|
|
OUTPUT "${out_man}"
|
|
|
|
COMMAND ${SCDOC_SCDOC} < "${in_scd}" > "${out_man}"
|
|
|
|
)
|
|
|
|
add_custom_target(man ALL DEPENDS ${out_man})
|
|
|
|
set(Launcher_ManPage "program_info/polymc.6" PARENT_SCOPE)
|
|
|
|
endif()
|