-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c823806
commit 4ce111a
Showing
10 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
|
||
compile_latex_file( "icon" REGISTER_TO "ICON_FILES" ) | ||
add_custom_target( "icon" DEPENDS ${ICON_FILES} ) | ||
# As TikZ fadings are buggy, SVG generation requires going through a PDF | ||
# intermediate plus a manual edition step. | ||
compile_latex_file( "icon" REGISTER_TO "ICON_SVG_FILE" ) | ||
|
||
# Warning : order matters. | ||
#svg_to_png( "openemsh" SIZE 512 REGISTER_TO "ICON_PNG_FILES" ) | ||
svg_to_png( "openemsh" SIZE 256 REGISTER_TO "ICON_PNG_FILES" ) | ||
svg_to_png( "openemsh" SIZE 128 REGISTER_TO "ICON_PNG_FILES" ) | ||
svg_to_png( "openemsh" SIZE 64 REGISTER_TO "ICON_PNG_FILES" ) | ||
svg_to_png( "openemsh" SIZE 48 REGISTER_TO "ICON_PNG_FILES" ) | ||
svg_to_png( "openemsh" SIZE 32 REGISTER_TO "ICON_PNG_FILES" ) | ||
svg_to_png( "openemsh" SIZE 22 REGISTER_TO "ICON_PNG_FILES" ) | ||
svg_to_png( "openemsh" SIZE 16 REGISTER_TO "ICON_PNG_FILES" ) | ||
|
||
png_to_ico( "openemsh" INPUT ${ICON_PNG_FILES} REGISTER_TO "ICON_ICO_FILE" ) | ||
|
||
add_custom_target( "icon" | ||
DEPENDS | ||
${ICON_SVG_FILE} | ||
${ICON_PNG_FILES} | ||
${ICON_ICO_FILE} | ||
) | ||
|
||
add_custom_target( "icon_replace" | ||
DEPENDS | ||
# ${ICON_SVG_FILE} | ||
${ICON_PNG_FILES} | ||
${ICON_ICO_FILE} | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
${ICON_PNG_FILES} | ||
${ICON_ICO_FILE} | ||
"${CMAKE_CURRENT_SOURCE_DIR}/" | ||
COMMENT "Copying icon png and ico files back to ${CMAKE_CURRENT_SOURCE_DIR}/" | ||
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.