2021-08-24 16:32:15 +00:00
# SPDX-License-Identifier: MIT
#
2023-12-15 17:33:02 +00:00
# ES-DE
2021-08-24 16:32:15 +00:00
# CMakeLists.txt (es-app)
#
2023-06-21 21:02:19 +00:00
# CMake configuration for es-app
2021-08-24 16:32:15 +00:00
# Also contains the application packaging configuration.
#
2023-12-16 11:30:13 +00:00
project ( es-de )
2014-06-25 16:29:58 +00:00
set ( ES_HEADERS
2023-02-18 11:42:19 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / A p p l i c a t i o n U p d a t e r . h
2023-12-16 11:30:13 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / A p p l i c a t i o n V e r s i o n . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / C o l l e c t i o n S y s t e m s M a n a g e r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e D a t a . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e F i l t e r I n d e x . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e S o r t s . h
2022-01-15 13:12:56 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / G a m e l i s t F i l e P a r s e r . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M e d i a V i e w e r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M e t a D a t a . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M i x i m a g e G e n e r a t o r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / P l a t f o r m I d . h
2023-06-21 21:02:19 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / P D F V i e w e r . h
2022-01-17 17:43:29 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S c r e e n s a v e r . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S y s t e m D a t a . h
2022-01-17 20:53:23 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / U I M o d e C o n t r o l l e r . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / V o l u m e C o n t r o l . h
2020-08-19 20:30:10 +00:00
2021-09-19 16:53:20 +00:00
# GUIs
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i A l t e r n a t i v e E m u l a t o r s . h
2023-07-03 15:46:56 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i A p p l i c a t i o n U p d a t e r . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i C o l l e c t i o n S y s t e m s O p t i o n s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t F i l t e r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t O p t i o n s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i L a u n c h S c r e e n . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e d i a V i e w e r O p t i o n s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e n u . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e t a D a t a E d . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i O f f l i n e G e n e r a t o r . h
2023-07-24 15:07:18 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i O r p h a n e d D a t a C l e a n u p . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r M e n u . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r M u l t i . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r S e a r c h . h
2022-01-16 10:10:32 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r S i n g l e . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r e e n s a v e r O p t i o n s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S e t t i n g s . h
2023-02-13 19:38:23 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i T h e m e D o w n l o a d e r . h
2020-08-19 20:30:10 +00:00
2021-09-19 16:53:20 +00:00
# Scrapers
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / G a m e s D B J S O N S c r a p e r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / G a m e s D B J S O N S c r a p e r R e s o u r c e s . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r a p e r . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r e e n S c r a p e r . h
2020-08-19 20:30:10 +00:00
2021-09-19 16:53:20 +00:00
# Views
2022-01-18 16:14:17 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / G a m e l i s t B a s e . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / G a m e l i s t V i e w . h
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / S y s t e m V i e w . h
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / V i e w C o n t r o l l e r . h
2014-06-25 16:29:58 +00:00
)
set ( ES_SOURCES
2023-02-18 11:42:19 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / A p p l i c a t i o n U p d a t e r . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / C o l l e c t i o n S y s t e m s M a n a g e r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e D a t a . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e F i l t e r I n d e x . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / F i l e S o r t s . c p p
2022-01-15 13:12:56 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / G a m e l i s t F i l e P a r s e r . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / m a i n . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M e d i a V i e w e r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M e t a D a t a . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / M i x i m a g e G e n e r a t o r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / P l a t f o r m I d . c p p
2023-06-21 21:02:19 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / P D F V i e w e r . c p p
2022-01-17 17:43:29 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S c r e e n s a v e r . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / S y s t e m D a t a . c p p
2022-01-17 20:53:23 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / U I M o d e C o n t r o l l e r . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / V o l u m e C o n t r o l . c p p
2020-08-19 20:30:10 +00:00
2021-09-19 16:53:20 +00:00
# GUIs
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i A l t e r n a t i v e E m u l a t o r s . c p p
2023-07-03 15:46:56 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i A p p l i c a t i o n U p d a t e r . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i C o l l e c t i o n S y s t e m s O p t i o n s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t F i l t e r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i G a m e l i s t O p t i o n s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i L a u n c h S c r e e n . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e n u . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e d i a V i e w e r O p t i o n s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i M e t a D a t a E d . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i O f f l i n e G e n e r a t o r . c p p
2023-07-24 15:07:18 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i O r p h a n e d D a t a C l e a n u p . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r M e n u . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r M u l t i . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r S e a r c h . c p p
2022-01-16 10:10:32 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r a p e r S i n g l e . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S c r e e n s a v e r O p t i o n s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i S e t t i n g s . c p p
2023-02-13 19:38:23 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / g u i s / G u i T h e m e D o w n l o a d e r . c p p
2020-08-19 20:30:10 +00:00
2021-09-19 16:53:20 +00:00
# Scrapers
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / G a m e s D B J S O N S c r a p e r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / G a m e s D B J S O N S c r a p e r R e s o u r c e s . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r a p e r . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / s c r a p e r s / S c r e e n S c r a p e r . c p p
2020-08-19 20:30:10 +00:00
2021-09-19 16:53:20 +00:00
# Views
2022-01-18 16:14:17 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / G a m e l i s t B a s e . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / G a m e l i s t V i e w . c p p
2021-09-19 16:53:20 +00:00
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / S y s t e m V i e w . c p p
$ { C M A K E _ C U R R E N T _ S O U R C E _ D I R } / s r c / v i e w s / V i e w C o n t r o l l e r . c p p
2014-06-25 16:29:58 +00:00
)
2020-07-03 18:23:51 +00:00
if ( WIN32 )
2023-12-16 11:30:13 +00:00
LIST ( APPEND ES_SOURCES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE.rc )
2014-06-25 16:29:58 +00:00
endif ( )
2021-01-21 20:44:51 +00:00
#---------------------------------------------------------------------------------------------------
# OS-specific installation and package generation setup.
2020-06-24 15:38:41 +00:00
# Define target.
2023-08-11 16:30:03 +00:00
if ( APPLE )
2020-08-19 20:30:10 +00:00
include_directories ( ${ COMMON_INCLUDE_DIRS } ${ CMAKE_CURRENT_SOURCE_DIR } /src )
2023-12-16 11:30:13 +00:00
add_executable ( ES-DE ${ ES_SOURCES } ${ ES_HEADERS } )
target_link_libraries ( ES-DE ${ COMMON_LIBRARIES } es-core )
set_target_properties ( ES-DE PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE )
2023-10-20 17:25:21 +00:00
if ( CMAKE_CXX_COMPILER_VERSION GREATER_EQUAL 15.0.0 )
2023-12-16 11:30:13 +00:00
target_link_options ( ES-DE PRIVATE LINKER:-no_warn_duplicate_libraries )
2023-10-20 17:25:21 +00:00
endif ( )
2023-08-11 16:30:03 +00:00
elseif ( WIN32 )
include_directories ( ${ COMMON_INCLUDE_DIRS } ${ CMAKE_CURRENT_SOURCE_DIR } /src )
2023-12-16 11:30:13 +00:00
add_executable ( ES-DE WIN32 ${ ES_SOURCES } ${ ES_HEADERS } )
target_link_libraries ( ES-DE ${ COMMON_LIBRARIES } es-core )
set_target_properties ( ES-DE PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE )
2023-11-19 16:37:00 +00:00
elseif ( ANDROID )
include_directories ( ${ COMMON_INCLUDE_DIRS } ${ CMAKE_CURRENT_SOURCE_DIR } /src )
2023-12-11 17:38:11 +00:00
add_library ( main MODULE ${ ES_SOURCES } ${ ES_HEADERS } )
target_link_libraries ( main PRIVATE ${ COMMON_LIBRARIES } ${ CMAKE_DL_LIBS } es-core es-pdf-convert )
2020-08-19 20:30:10 +00:00
else ( )
include_directories ( ${ COMMON_INCLUDE_DIRS } ${ CMAKE_CURRENT_SOURCE_DIR } /src )
2023-12-16 11:30:13 +00:00
add_executable ( es-de ${ ES_SOURCES } ${ ES_HEADERS } )
target_link_libraries ( es-de ${ COMMON_LIBRARIES } ${ CMAKE_DL_LIBS } es-core )
set_target_properties ( es-de PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE )
2020-08-19 20:30:10 +00:00
endif ( )
2014-06-25 16:29:58 +00:00
2020-08-19 20:30:10 +00:00
# Setup for installation and package generation.
2020-07-07 19:33:33 +00:00
if ( WIN32 )
2023-12-16 11:30:13 +00:00
install ( TARGETS ES-DE RUNTIME DESTINATION . )
2023-06-24 12:16:31 +00:00
install ( TARGETS es-pdf-convert RUNTIME DESTINATION es-pdf-converter )
2023-12-19 16:38:21 +00:00
set ( CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION . )
if ( CMAKE_BUILD_TYPE MATCHES Debug )
set ( CMAKE_INSTALL_DEBUG_LIBRARIES TRUE )
2020-12-28 22:23:01 +00:00
endif ( )
2023-12-19 16:38:21 +00:00
install ( FILES ../avcodec-60.dll
. . / a v f i l t e r - 9 . d l l
. . / a v f o r m a t - 6 0 . d l l
. . / a v u t i l - 5 8 . d l l
. . / p o s t p r o c - 5 7 . d l l
. . / s w r e s a m p l e - 4 . d l l
. . / s w s c a l e - 7 . d l l
. . / F r e e I m a g e . d l l
. . / f r e e t y p e . d l l
. . / g i t 2 . d l l
. . / g l e w 3 2 . d l l
. . / l i b c r y p t o - 1 _ 1 - x 6 4 . d l l
. . / l i b c u r l - x 6 4 . d l l
. . / l i b s s l - 1 _ 1 - x 6 4 . d l l
. . / l u n a s v g . d l l
. . / p u g i x m l . d l l
. . / r l o t t i e . d l l
. . / S D L 2 . d l l
. . / v c o m p 1 4 0 . d l l
D E S T I N A T I O N . )
install ( FILES ../es-pdf-converter/charset.dll
. . / e s - p d f - c o n v e r t e r / d e f l a t e . d l l
. . / e s - p d f - c o n v e r t e r / f r e e t y p e . d l l
. . / e s - p d f - c o n v e r t e r / i c o n v . d l l
. . / e s - p d f - c o n v e r t e r / j p e g 8 . d l l
. . / e s - p d f - c o n v e r t e r / l c m s 2 . d l l
. . / e s - p d f - c o n v e r t e r / L e r c . d l l
. . / e s - p d f - c o n v e r t e r / l i b c r y p t o - 3 - x 6 4 . d l l
. . / e s - p d f - c o n v e r t e r / l i b c u r l . d l l
. . / e s - p d f - c o n v e r t e r / l i b l z m a . d l l
. . / e s - p d f - c o n v e r t e r / l i b p n g 1 6 . d l l
. . / e s - p d f - c o n v e r t e r / l i b s s h 2 . d l l
. . / e s - p d f - c o n v e r t e r / o p e n j p 2 . d l l
. . / e s - p d f - c o n v e r t e r / p o p p l e r . d l l
. . / e s - p d f - c o n v e r t e r / p o p p l e r - c p p . d l l
. . / e s - p d f - c o n v e r t e r / t i f f . d l l
. . / e s - p d f - c o n v e r t e r / z l i b . d l l
. . / e s - p d f - c o n v e r t e r / z s t d . d l l
D E S T I N A T I O N e s - p d f - c o n v e r t e r )
2022-01-02 12:13:01 +00:00
2020-07-07 19:33:33 +00:00
install ( FILES ../LICENSE DESTINATION . )
2020-08-19 20:50:45 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /licenses DESTINATION . )
2024-01-28 17:48:18 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/linear-es-de DESTINATION themes )
2023-01-17 22:37:51 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/modern-es-de DESTINATION themes )
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/slate-es-de DESTINATION themes )
2020-07-07 19:33:33 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /resources DESTINATION . )
2020-08-19 20:30:10 +00:00
elseif ( APPLE )
2020-08-21 19:58:12 +00:00
# For completely unknown reasons, when generating a Bundle using cpack, an extra 'Resources'
# directory is added to the target path. Simply adding the two dots as a prefix fixes the
# problem, but doing so would break 'make install' which was actually behaving correctly.
# So an extra 'Resources' directory was added to the CMAKE_INSTALL_PREFIX variable as well
# to compensate for this. It's a bad solution to the problem and there must surely be a
# better way to fix this.
2023-12-16 11:30:13 +00:00
install ( TARGETS ES-DE RUNTIME DESTINATION ../MacOS )
2023-06-24 21:58:33 +00:00
install ( TARGETS es-pdf-convert RUNTIME DESTINATION ../MacOS )
2023-12-16 11:30:13 +00:00
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE.icns DESTINATION ../Resources )
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE_Info.plist DESTINATION .. RENAME Info.plist )
2020-08-23 09:35:02 +00:00
2021-09-19 16:53:20 +00:00
set ( APPLE_DYLIB_PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE
G R O U P _ R E A D G R O U P _ E X E C U T E
W O R L D _ R E A D W O R L D _ E X E C U T E )
2020-11-27 16:50:28 +00:00
2023-06-25 10:42:16 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libavcodec.60.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-06-25 10:42:16 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libavfilter.9.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-06-25 10:42:16 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libavformat.60.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-06-25 10:42:16 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libavutil.58.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-06-25 10:42:16 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libpostproc.57.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2022-04-15 09:30:41 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libswresample.4.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-06-25 10:42:16 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libswscale.7.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2021-11-30 21:14:18 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libvorbis.0.4.9.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2021-11-30 21:14:18 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libvorbisenc.2.0.12.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-06-24 21:58:33 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libfontconfig.1.dylib
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2021-11-30 21:14:18 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libfreetype.6.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-11-05 11:34:25 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libgit2.1.7.dylib
2023-03-21 23:17:26 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2023-06-24 21:58:33 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libjpeg.62.dylib
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
install ( FILES ${ CMAKE_SOURCE_DIR } /libopenjp2.7.dylib
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
install ( FILES ${ CMAKE_SOURCE_DIR } /libpoppler-cpp.0.dylib
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
install ( FILES ${ CMAKE_SOURCE_DIR } /libpoppler.129.dylib
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
install ( FILES ${ CMAKE_SOURCE_DIR } /libtiff.6.dylib
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
2022-12-15 19:13:37 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /libSDL2-2.0.0.dylib
2021-09-19 16:53:20 +00:00
P E R M I S S I O N S $ { A P P L E _ D Y L I B _ P E R M I S S I O N S } D E S T I N A T I O N . . / M a c O S )
install ( FILES ${ CMAKE_SOURCE_DIR } /LICENSE DESTINATION ../Resources )
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /resources DESTINATION ../Resources )
2024-01-28 17:48:18 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/linear-es-de DESTINATION ../Resources/themes )
2023-01-17 22:37:51 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/modern-es-de DESTINATION ../Resources/themes )
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/slate-es-de DESTINATION ../Resources/themes )
2021-09-19 16:53:20 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /licenses DESTINATION ../Resources )
2023-11-19 16:37:00 +00:00
elseif ( NOT ANDROID )
2023-12-16 11:30:13 +00:00
install ( TARGETS es-de RUNTIME DESTINATION ${ CMAKE_INSTALL_PREFIX } /bin )
2023-06-21 21:02:19 +00:00
install ( TARGETS es-pdf-convert RUNTIME DESTINATION ${ CMAKE_INSTALL_PREFIX } /bin )
2022-04-19 15:24:54 +00:00
if ( CMAKE_SYSTEM_NAME MATCHES Linux )
2023-12-16 11:30:13 +00:00
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/es-de.6.gz
2021-09-19 16:53:20 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / m a n / m a n 6 )
2021-04-02 10:38:31 +00:00
else ( )
2023-12-16 11:30:13 +00:00
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/es-de.6.gz
2021-09-19 16:53:20 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / m a n / m a n 6 )
2021-04-02 10:38:31 +00:00
endif ( )
2020-07-12 14:23:49 +00:00
install ( FILES ${ CMAKE_SOURCE_DIR } /LICENSE
2023-12-16 11:30:13 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / e s - d e )
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/org.es_de.frontend.desktop
2021-09-19 16:53:20 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / a p p l i c a t i o n s )
2023-12-16 11:30:13 +00:00
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/org.es_de.frontend.svg
2021-09-19 16:53:20 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / p i x m a p s )
2023-12-16 11:30:13 +00:00
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/org.es_de.frontend.svg
2022-04-24 11:05:55 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / i c o n s / h i c o l o r / s c a l a b l e / a p p s )
2023-12-16 11:30:13 +00:00
install ( FILES ${ CMAKE_CURRENT_SOURCE_DIR } /assets/org.es_de.frontend.appdata.xml
2021-11-21 18:38:38 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / m e t a i n f o )
2020-08-19 20:50:45 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /licenses
2023-12-16 11:30:13 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / e s - d e )
2024-01-28 17:48:18 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/linear-es-de
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / e s - d e / t h e m e s )
2023-01-17 22:37:51 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/modern-es-de
2023-12-16 11:30:13 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / e s - d e / t h e m e s )
2023-01-17 22:37:51 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /themes/slate-es-de
2023-12-16 11:30:13 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / e s - d e / t h e m e s )
2020-07-07 19:33:33 +00:00
install ( DIRECTORY ${ CMAKE_SOURCE_DIR } /resources
2023-12-16 11:30:13 +00:00
D E S T I N A T I O N $ { C M A K E _ I N S T A L L _ P R E F I X } / s h a r e / e s - d e )
2020-07-07 19:33:33 +00:00
endif ( )
include ( InstallRequiredSystemLibraries )
#---------------------------------------------------------------------------------------------------
2020-08-19 20:30:10 +00:00
# General CPack settings.
2021-01-21 20:44:51 +00:00
2023-12-16 11:30:13 +00:00
set ( CPACK_PACKAGE_NAME es-de )
2021-08-12 10:03:11 +00:00
set ( CPACK_PACKAGE_DESCRIPTION_SUMMARY "Emulator frontend" )
2023-12-16 11:30:13 +00:00
set ( CPACK_PACKAGE_DESCRIPTION "ES-DE (EmulationStation Desktop Edition) is a frontend for browsing and launching games from your multi-platform game collection." )
2022-04-19 15:24:54 +00:00
set ( CPACK_PACKAGE_VERSION ${ ES_VERSION } )
2021-05-04 15:03:18 +00:00
2020-09-17 19:49:40 +00:00
if ( APPLE )
2020-11-30 17:58:55 +00:00
# Shorter line length license file to be able to fit inside the drag-and-drop installer window without introducing extra line breaks.
2023-12-16 11:30:13 +00:00
set ( CPACK_RESOURCE_FILE_LICENSE ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE_LICENSE_macOS )
2020-11-30 17:58:55 +00:00
elseif ( WIN32 )
# The installer window looks a bit different on Windows so a specific file for this OS is required.
2023-12-16 11:30:13 +00:00
set ( CPACK_RESOURCE_FILE_LICENSE ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE_LICENSE_Windows )
2020-09-17 19:49:40 +00:00
else ( )
2022-04-19 15:24:54 +00:00
set ( CPACK_RESOURCE_FILE_LICENSE ${ CMAKE_SOURCE_DIR } /LICENSE )
2020-09-17 19:49:40 +00:00
endif ( )
2020-07-07 19:33:33 +00:00
set ( CPACK_PACKAGE_VENDOR "Leon Styhre" )
2022-04-19 15:24:54 +00:00
# Use the shorter x64 descriptor for the x86_64/AMD64 architecture.
2023-02-18 11:44:30 +00:00
if ( CMAKE_SYSTEM_PROCESSOR MATCHES x86_64 OR CMAKE_SYSTEM_PROCESSOR MATCHES AMD64 )
2022-04-19 15:24:54 +00:00
set ( CPU_ARCHITECTURE x64 )
2021-03-27 10:13:43 +00:00
else ( )
2023-02-18 11:44:30 +00:00
set ( CPU_ARCHITECTURE ${ CMAKE_SYSTEM_PROCESSOR } )
2021-03-27 10:13:43 +00:00
endif ( )
2020-08-19 20:30:10 +00:00
# Settings per operating system and generator type.
if ( APPLE )
2022-04-19 15:24:54 +00:00
set ( CPACK_GENERATOR Bundle )
2023-12-16 11:30:13 +00:00
set ( CPACK_PACKAGE_FILE_NAME ES-DE_ ${ CPACK_PACKAGE_VERSION } - ${ CPU_ARCHITECTURE } )
set ( CPACK_DMG_VOLUME_NAME "ES-DE ${CPACK_PACKAGE_VERSION}" )
set ( CPACK_PACKAGE_ICON ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE.icns )
set ( CPACK_DMG_DS_STORE ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE_DS_Store )
set ( CPACK_BUNDLE_NAME "ES-DE" )
set ( CPACK_BUNDLE_ICON ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE.icns )
set ( CPACK_BUNDLE_PLIST ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE_Info.plist )
2021-05-13 17:33:07 +00:00
if ( MACOS_CODESIGN_IDENTITY )
set ( CPACK_BUNDLE_APPLE_CERT_APP "Developer ID Application: ${MACOS_CODESIGN_IDENTITY}" )
2023-07-29 14:08:40 +00:00
set ( CPACK_BUNDLE_APPLE_CODESIGN_PARAMETER "--deep --force --options runtime" )
2021-05-13 17:33:07 +00:00
endif ( )
2020-08-19 20:30:10 +00:00
elseif ( WIN32 )
2022-04-19 15:24:54 +00:00
set ( CPACK_GENERATOR NSIS )
2023-12-16 11:30:13 +00:00
set ( CPACK_PACKAGE_FILE_NAME ES-DE_ ${ CPACK_PACKAGE_VERSION } - ${ CPU_ARCHITECTURE } )
set ( CPACK_PACKAGE_INSTALL_DIRECTORY ES-DE )
set ( CPACK_PACKAGE_EXECUTABLES ES-DE ES-DE )
2022-04-19 15:24:54 +00:00
set ( CPACK_NSIS_INSTALL_ROOT ${ PROGRAMFILES64 } )
set ( CPACK_NSIS_EXECUTABLES_DIRECTORY . )
2023-12-16 11:30:13 +00:00
set ( CPACK_NSIS_MUI_ICON ${ CMAKE_CURRENT_SOURCE_DIR } /assets/ES-DE.ico )
2020-08-19 20:30:10 +00:00
set ( CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON )
2023-12-16 11:30:13 +00:00
set ( CPACK_NSIS_DISPLAY_NAME "ES-DE ${CPACK_PACKAGE_VERSION}" )
set ( CPACK_NSIS_PACKAGE_NAME "ES-DE" )
set ( CPACK_NSIS_INSTALLED_ICON_NAME ES-DE.exe )
set ( CPACK_NSIS_WELCOME_TITLE "ES-DE Installer" )
set ( CPACK_NSIS_FINISH_TITLE "ES-DE Installation Completed" )
2020-08-19 20:30:10 +00:00
set ( CPACK_NSIS_MANIFEST_DPI_AWARE ON )
2024-02-17 11:48:24 +00:00
set ( CPACK_NSIS_MENU_LINKS "https://es-de.org" "ES-DE Website" )
2020-07-07 19:33:33 +00:00
else ( )
2023-12-16 11:30:13 +00:00
set ( CPACK_PACKAGE_INSTALL_DIRECTORY es-de_ ${ CMAKE_PACKAGE_VERSION } )
set ( CPACK_PACKAGE_EXECUTABLES es-de es-de )
2022-04-19 15:24:54 +00:00
if ( LINUX_CPACK_GENERATOR MATCHES DEB )
set ( CPACK_GENERATOR DEB )
2021-05-04 15:09:19 +00:00
endif ( )
2023-12-16 11:30:13 +00:00
set ( CPACK_DEBIAN_FILE_NAME es-de_ ${ CPACK_PACKAGE_VERSION } - ${ CPU_ARCHITECTURE } .deb )
2021-12-13 16:15:24 +00:00
set ( CPACK_DEBIAN_PACKAGE_MAINTAINER "Leon Styhre <info@es-de.org>" )
2022-04-19 15:24:54 +00:00
set ( CPACK_DEBIAN_PACKAGE_HOMEPAGE https://es-de.org )
set ( CPACK_DEBIAN_PACKAGE_SECTION games )
set ( CPACK_DEBIAN_PACKAGE_PRIORITY optional )
2020-08-19 20:30:10 +00:00
set ( CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON )
2022-04-19 15:24:54 +00:00
if ( LINUX_CPACK_GENERATOR MATCHES RPM )
set ( CPACK_GENERATOR RPM )
2021-05-04 15:09:19 +00:00
endif ( )
2023-12-16 11:30:13 +00:00
set ( CPACK_RPM_FILE_NAME es-de_ ${ CPACK_PACKAGE_VERSION } - ${ CPU_ARCHITECTURE } .rpm )
2020-08-19 20:30:10 +00:00
set ( CPACK_RPM_PACKAGE_DESCRIPTION ${ CPACK_PACKAGE_DESCRIPTION } )
2022-04-19 15:24:54 +00:00
set ( CPACK_RPM_PACKAGE_LICENSE MIT )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /bin )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share )
2022-05-04 15:48:35 +00:00
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/icons )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/icons/hicolor )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/icons/hicolor/scalable )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/icons/hicolor/scalable/apps )
2022-04-19 15:24:54 +00:00
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/man )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/man/man6 )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/metainfo )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/pixmaps )
list ( APPEND CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION ${ CMAKE_INSTALL_PREFIX } /share/applications )
2020-07-07 19:33:33 +00:00
endif ( )
include ( CPack )