Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
eae7f37b
Commit
eae7f37b
authored
Sep 09, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pngcrush executable substitution bug in PNG generation CMakeList.txt file.
parent
c5e1c249
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
CMakeLists.txt
bitmaps_png/CMakeLists.txt
+2
-18
No files found.
bitmaps_png/CMakeLists.txt
View file @
eae7f37b
...
...
@@ -546,14 +546,8 @@ function( png2png inputFile bkgndFile outFile )
add_custom_command
(
OUTPUT
${
outFile
}
# blend in the unified background into the png before converting to cpp.
# COMMAND ${COMPOSITE_PROG} -compose Over ${inputFile} ${bkgndFile} -alpha set ${TMP_DIR}/scratch.png
# remove any extraneous tEXt records
# COMMAND ${pngcrush_EXECUTABLE} -rem alla ${TMP_DIR}/scratch.png ${outFile} > ${TMP_DIR}/${bmn}.pngcrush.log
# pngcrush all icons without background.
COMMAND pngcrush -rem alla
${
inputFile
}
${
outFile
}
>
${
TMP_DIR
}
/
${
bmn
}
.pngcrush.log
# pngcrush all icons without background to remove any extraneous tEXt records.
COMMAND
${
pngcrush_EXECUTABLE
}
-rem alla
${
inputFile
}
${
outFile
}
>
${
TMP_DIR
}
/
${
bmn
}
.pngcrush.log
DEPENDS
${
inputFile
}
${
bkgndFile
}
...
...
@@ -649,16 +643,6 @@ if( MAINTAIN_PNGS )
endif
(
NOT pngcrush_EXECUTABLE
)
endif
(
NOT pngcrush_FOUND
)
# composite is required to convert a basic PNG to one with a composited background
# image behind it
# find_program( COMPOSITE_PROG composite DOC "The image compositing program." )
# if( NOT COMPOSITE_PROG )
# message( FATAL_ERROR "Could not find the ImagMagik composite program." )
# else( NOT COMPOSITE_PROG )
# message( STATUS "The ImageMagick composite program found." )
# endif( NOT COMPOSITE_PROG )
# these 2 cmake commands for each desired bitmap size set, repeat as needed:
bitmap_dir
(
26 26
"
${
BMAPS_MID
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment