Merge lp:~midori/midori/svgtrans into lp:midori
Proposed by
Cris Dywan
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Paweł Forysiuk | ||||||||
Approved revision: | 6400 | ||||||||
Merged at revision: | 6418 | ||||||||
Proposed branch: | lp:~midori/midori/svgtrans | ||||||||
Merge into: | lp:midori | ||||||||
Diff against target: |
56 lines (+28/-0) 2 files modified
cmake/FindConvert.cmake (+19/-0) data/CMakeLists.txt (+9/-0) |
||||||||
To merge this branch: | bzr merge lp:~midori/midori/svgtrans | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Forysiuk | Approve | ||
Olivier Duchateau (community) | Needs Fixing | ||
Review via email: mp+185650@code.launchpad.net |
Commit message
Rasterize SVG to PNG with rsvg-convert
To post a comment you must log in.
In icons/CMakeList s.txt file SVG2PNG macro is not necessary, otherwise in scalable/ directory SVG images will be rasterized.
--- ./icons/ CMakeLists. txt.orig 2013-09-20 16:37:11.000000000 +0000 CMakeLists. txt 2013-09-20 16:53:03.000000000 +0000
+++ ./icons/
@@ -7,13 +7,7 @@
macro(install_icon name cat size) CURRENT_ SOURCE_ DIR} "${size} /${name} .*") INSTALL_ DATADIR} /icons/ hicolor/ ${size} /${cat} ) INSTALL_ DATADIR} /icons/ hicolor/ ${size} /${cat} ) INSTALL_ DATADIR} /icons/ hicolor/ ${size} /${cat} )
file(GLOB FILENAME RELATIVE ${CMAKE_
- string(FIND ${FILENAME} ".svg" EXTENSION)
- if (EXTENSION GREATER -1)
- string(SUBSTRING ${FILENAME} 0 ${EXTENSION} BASENAME)
- SVG2PNG(${BASENAME} ${CMAKE_
- else ()
- install(FILES ${FILENAME} DESTINATION ${CMAKE_
- endif ()
+ install(FILES ${FILENAME} DESTINATION ${CMAKE_
endmacro()
foreach(SIZE 16x16 22x22 scalable)