Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1 @@
|
||||
test
|
||||
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
@@ -0,0 +1,106 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(ECMInstallIconsTest)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../modules)
|
||||
|
||||
# make sure the test install dir is clean
|
||||
file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
include(ECMInstallIcons)
|
||||
|
||||
add_subdirectory(v1-syntax)
|
||||
add_subdirectory(v1-syntax-l10n)
|
||||
add_subdirectory(v1-syntax-no-icons)
|
||||
|
||||
ecm_install_icons(
|
||||
ICONS 16-actions-computer.png
|
||||
DESTINATION single-file-test
|
||||
)
|
||||
|
||||
ecm_install_icons(
|
||||
ICONS
|
||||
16-actions-computer.png
|
||||
16-animations-loading.mng
|
||||
subdir/16-apps-cmake.png
|
||||
16-categories-system-help.mng
|
||||
16-emotes-face-smile.png
|
||||
16-intl-something.png
|
||||
16-status-user-online.png
|
||||
128-devices-drive-removable-media-usb-pendrive.png
|
||||
128-emblems-emblem-mounted.png
|
||||
128-places-home.mng
|
||||
sc-mimetypes-fonts-package.svgz
|
||||
DESTINATION multi-file-test
|
||||
)
|
||||
|
||||
ecm_install_icons(
|
||||
ICONS
|
||||
16-actions-computer.png
|
||||
16-animations-loading.mng
|
||||
subdir/16-apps-cmake.png
|
||||
16-categories-system-help.mng
|
||||
16-emotes-face-smile.png
|
||||
16-intl-something.png
|
||||
16-status-user-online.png
|
||||
128-devices-drive-removable-media-usb-pendrive.png
|
||||
128-emblems-emblem-mounted.png
|
||||
128-places-home.mng
|
||||
sc-mimetypes-fonts-package.svgz
|
||||
DESTINATION themed-test
|
||||
THEME theme-name-2
|
||||
)
|
||||
|
||||
ecm_install_icons(
|
||||
ICONS
|
||||
16-actions-computer.png
|
||||
16-animations-loading.mng
|
||||
subdir/16-apps-cmake.png
|
||||
16-categories-system-help.mng
|
||||
16-emotes-face-smile.png
|
||||
16-intl-something.png
|
||||
16-status-user-online.png
|
||||
128-devices-drive-removable-media-usb-pendrive.png
|
||||
128-emblems-emblem-mounted.png
|
||||
128-places-home.mng
|
||||
sc-mimetypes-fonts-package.svgz
|
||||
DESTINATION lang-test
|
||||
LANG en_US
|
||||
)
|
||||
|
||||
ecm_install_icons(
|
||||
ICONS
|
||||
16-actions-computer.png
|
||||
16-animations-loading.mng
|
||||
subdir/16-apps-cmake.png
|
||||
16-categories-system-help.mng
|
||||
16-emotes-face-smile.png
|
||||
16-intl-something.png
|
||||
16-status-user-online.png
|
||||
128-devices-drive-removable-media-usb-pendrive.png
|
||||
128-emblems-emblem-mounted.png
|
||||
128-places-home.mng
|
||||
sc-mimetypes-fonts-package.svgz
|
||||
DESTINATION themed-lang-test
|
||||
THEME oxygen
|
||||
LANG en_US
|
||||
)
|
||||
|
||||
# all these should be warned about
|
||||
ecm_install_icons(
|
||||
ICONS
|
||||
aa-actions-badsize.png # ignored
|
||||
badlynamedfile.png # ignored
|
||||
16-actions-badext.txt # copied
|
||||
hi16-actions-old-style-name.png # copied
|
||||
DESTINATION badly-named-files-test
|
||||
)
|
||||
|
||||
find_program(icon_cache_generator NAMES gtk-update-icon-cache)
|
||||
if (icon_cache_generator)
|
||||
set(GENERATE_ICON_CACHE TRUE)
|
||||
else()
|
||||
set(GENERATE_ICON_CACHE FALSE)
|
||||
endif()
|
||||
|
||||
# this will be run by CTest
|
||||
configure_file(check_tree.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/check_tree.cmake" @ONLY)
|
||||
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
@@ -0,0 +1,30 @@
|
||||
set(EXP_TREE "@CMAKE_CURRENT_SOURCE_DIR@/expected-tree")
|
||||
set(ACTUAL_TREE "@CMAKE_INSTALL_PREFIX@")
|
||||
set(GENERATE_ICON_CACHE "@GENERATE_ICON_CACHE@")
|
||||
|
||||
file(GLOB_RECURSE exp_files RELATIVE "${EXP_TREE}" "${EXP_TREE}/*")
|
||||
file(GLOB_RECURSE actual_files RELATIVE "${ACTUAL_TREE}" "${ACTUAL_TREE}/*")
|
||||
if (NOT GENERATE_ICON_CACHE)
|
||||
file(GLOB_RECURSE cache_files RELATIVE "${EXP_TREE}" "${EXP_TREE}/*.cache")
|
||||
foreach(f ${cache_files})
|
||||
list(REMOVE_ITEM exp_files "${f}")
|
||||
endforeach()
|
||||
endif()
|
||||
list(SORT exp_files)
|
||||
list(SORT actual_files)
|
||||
|
||||
if(NOT exp_files STREQUAL actual_files)
|
||||
foreach(f ${exp_files})
|
||||
list(FIND actual_files "${f}" result)
|
||||
if(result EQUAL -1)
|
||||
message(WARNING "${f} was expected, but not found")
|
||||
endif()
|
||||
endforeach()
|
||||
foreach(f ${actual_files})
|
||||
list(FIND exp_files "${f}" result)
|
||||
if(result EQUAL -1)
|
||||
message(WARNING "${f} was found, but not expected")
|
||||
endif()
|
||||
endforeach()
|
||||
message(FATAL_ERROR "Trees differ!")
|
||||
endif()
|
||||
@@ -0,0 +1 @@
|
||||
test
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
|
After Width: | Height: | Size: 146 B |
@@ -0,0 +1 @@
|
||||
ecm_install_icons(v1-icons en_US)
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 146 B |
@@ -0,0 +1 @@
|
||||
ecm_install_icons(v1-icons-dummy)
|
||||
@@ -0,0 +1 @@
|
||||
ecm_install_icons(v1-icons)
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
|
After Width: | Height: | Size: 1.8 KiB |