Avoid build time on generated files from pyside-rcc and pyside-uic.
Fixes build compare: [ 3218s] RPM file checksum differs. [ 3218s] Extracting packages [ 3232s] /usr/lib64/FreeCAD/Mod/Arch/Arch_rc.py differs (Python script, ASCII text executable, with very long lines) [ 3232s] --- old//usr/lib64/FreeCAD/Mod/Arch/Arch_rc.py2015-01-21 20:26:34.000000000 +0000 [ 3232s] +++ new//usr/lib64/FreeCAD/Mod/Arch/Arch_rc.py2015-01-23 11:41:24.000000000 +0000 [ 3232s] @@ -2,7 +2,7 @@ [ 3232s] [ 3232s] # Resource object code [ 3232s] # [ 3232s] -# Created: Wed Jan 21 20:26:34 2015 [ 3232s] +# Created: Fri Jan 23 11:41:24 2015 [ 3232s] # by: The Resource Compiler for PySide (Qt v4.8.4) [ 3232s] # [ 3232s] # WARNING! All changes made in this file will be lost!
This commit is contained in:
parent
7446930f69
commit
2b9da837d7
|
@ -31,10 +31,20 @@ MACRO(PYSIDE_WRAP_UI outfiles)
|
||||||
#ADD_CUSTOM_TARGET(${it} ALL
|
#ADD_CUSTOM_TARGET(${it} ALL
|
||||||
# DEPENDS ${outfile}
|
# DEPENDS ${outfile}
|
||||||
#)
|
#)
|
||||||
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
|
if(WIN32)
|
||||||
COMMAND ${PYSIDEUIC4BINARY} ${infile} -o ${outfile}
|
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
|
||||||
MAIN_DEPENDENCY ${infile}
|
COMMAND ${PYSIDEUIC4BINARY} ${infile} -o ${outfile}
|
||||||
)
|
MAIN_DEPENDENCY ${infile}
|
||||||
|
)
|
||||||
|
else(WIN32)
|
||||||
|
# Especially on Open Build Service we don't want changing date like
|
||||||
|
# pyside-uic generates in comments at beginning.
|
||||||
|
EXECUTE_PROCESS(
|
||||||
|
COMMAND ${PYSIDEUIC4BINARY} ${infile}
|
||||||
|
COMMAND sed "/^# /d"
|
||||||
|
OUTPUT_FILE ${outfile}
|
||||||
|
)
|
||||||
|
endif(WIN32)
|
||||||
SET(${outfiles} ${${outfiles}} ${outfile})
|
SET(${outfiles} ${${outfiles}} ${outfile})
|
||||||
ENDFOREACH(it)
|
ENDFOREACH(it)
|
||||||
ENDMACRO (PYSIDE_WRAP_UI)
|
ENDMACRO (PYSIDE_WRAP_UI)
|
||||||
|
@ -47,10 +57,20 @@ MACRO(PYSIDE_WRAP_RC outfiles)
|
||||||
#ADD_CUSTOM_TARGET(${it} ALL
|
#ADD_CUSTOM_TARGET(${it} ALL
|
||||||
# DEPENDS ${outfile}
|
# DEPENDS ${outfile}
|
||||||
#)
|
#)
|
||||||
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
|
if(WIN32)
|
||||||
COMMAND ${PYSIDERCC4BINARY} ${infile} -o ${outfile}
|
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
|
||||||
MAIN_DEPENDENCY ${infile}
|
COMMAND ${PYSIDERCC4BINARY} ${infile} -o ${outfile}
|
||||||
)
|
MAIN_DEPENDENCY ${infile}
|
||||||
|
)
|
||||||
|
else(WIN32)
|
||||||
|
# Especially on Open Build Service we don't want changing date like
|
||||||
|
# pyside-rcc generates in comments at beginning.
|
||||||
|
EXECUTE_PROCESS(
|
||||||
|
COMMAND ${PYSIDERCC4BINARY} ${infile}
|
||||||
|
COMMAND sed "/^# /d"
|
||||||
|
OUTPUT_FILE ${outfile}
|
||||||
|
)
|
||||||
|
endif(WIN32)
|
||||||
SET(${outfiles} ${${outfiles}} ${outfile})
|
SET(${outfiles} ${${outfiles}} ${outfile})
|
||||||
ENDFOREACH(it)
|
ENDFOREACH(it)
|
||||||
ENDMACRO (PYSIDE_WRAP_RC)
|
ENDMACRO (PYSIDE_WRAP_RC)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user