Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 15 Lines | |||||
16 | include(KDECompilerSettings NO_POLICY_SCOPE) | 16 | include(KDECompilerSettings NO_POLICY_SCOPE) | ||
17 | 17 | | |||
18 | include(ECMPackageConfigHelpers) | 18 | include(ECMPackageConfigHelpers) | ||
19 | include(ECMOptionalAddSubdirectory) | 19 | include(ECMOptionalAddSubdirectory) | ||
20 | include(FeatureSummary) | 20 | include(FeatureSummary) | ||
21 | 21 | | |||
22 | include(FindPkgConfig) | 22 | include(FindPkgConfig) | ||
23 | 23 | | |||
24 | # remove? | 24 | pkg_check_modules(PIPEWIRE libpipewire-0.1) | ||
25 | pkg_check_modules(PIPEWIRE REQUIRED libpipewire-0.1) | 25 | pkg_check_modules(SPA libspa-0.1) | ||
26 | pkg_check_modules(SPA REQUIRED libspa-0.1) | 26 | pkg_check_modules(GLIB glib-2.0) | ||
Kanedias: Do we still need explicit glib btw? | |||||
27 | pkg_check_modules(GLIB REQUIRED glib-2.0) | | |||
28 | 27 | | |||
29 | find_package(gbm REQUIRED) | 28 | find_package(gbm) | ||
30 | set_package_properties(gbm PROPERTIES DESCRIPTION "GBM - Generic Buffer Management" | 29 | set_package_properties(gbm PROPERTIES DESCRIPTION "GBM - Generic Buffer Management" | ||
31 | TYPE REQUIRED | 30 | TYPE OPTIONAL | ||
32 | PURPOSE "Required for egl ouput of drm backend." | 31 | PURPOSE "Required for egl ouput of drm backend." | ||
33 | ) | 32 | ) | ||
34 | 33 | | |||
35 | find_package(epoxy REQUIRED) | 34 | find_package(epoxy) | ||
36 | include_directories(${epoxy_INCLUDE_DIRS}) | 35 | include_directories(${epoxy_INCLUDE_DIRS}) | ||
37 | set_package_properties(epoxy PROPERTIES DESCRIPTION "libepoxy" | 36 | set_package_properties(epoxy PROPERTIES DESCRIPTION "libepoxy" | ||
38 | URL "http://github.com/anholt/libepoxy" | 37 | URL "http://github.com/anholt/libepoxy" | ||
39 | TYPE REQUIRED | 38 | TYPE OPTIONAL | ||
40 | PURPOSE "OpenGL dispatch library for GBM backend" | 39 | PURPOSE "OpenGL dispatch library for GBM backend" | ||
41 | ) | 40 | ) | ||
42 | 41 | | |||
42 | if (${PIPEWIRE_FOUND} AND ${SPA_FOUND} AND ${GLIB_FOUND} AND ${GBM_FOUND} AND ${EPOXY_FOUND}) | ||||
43 | set (SCREENCAST_ENABLED true) | ||||
44 | else() | ||||
45 | set (SCREENCAST_ENABLED false) | ||||
46 | endif() | ||||
47 | add_definitions(-DSCREENCAST_ENABLED=${SCREENCAST_ENABLED}) | ||||
48 | | ||||
49 | add_feature_info ("Screencast portal" ${SCREENCAST_ENABLED} "Support for screen sharing") | ||||
50 | | ||||
43 | find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS | 51 | find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS | ||
44 | Core | 52 | Core | ||
45 | DBus | 53 | DBus | ||
46 | PrintSupport | 54 | PrintSupport | ||
47 | Widgets | 55 | Widgets | ||
48 | ) | 56 | ) | ||
49 | 57 | | |||
50 | find_package(KF5 REQUIRED | 58 | find_package(KF5 REQUIRED | ||
Show All 14 Lines |
Do we still need explicit glib btw?