ocioconf: replace script with cmake
This commit is contained in:
@@ -14,8 +14,16 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
file(GLOB_RECURSE OCIOCONF_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.ocio *.spi3d *.spi1d)
|
||||
set(QRC_BODY "")
|
||||
foreach(OCIOCONF_FILE ${OCIOCONF_RESOURCES})
|
||||
string(APPEND QRC_BODY "<file>${OCIOCONF_FILE}</file>\n")
|
||||
configure_file(${OCIOCONF_FILE} ${OCIOCONF_FILE} COPYONLY)
|
||||
endforeach()
|
||||
configure_file(ocioconf.qrc.in ocioconf.qrc @ONLY)
|
||||
|
||||
set(OLIVE_RESOURCES
|
||||
${OLIVE_RESOURCES}
|
||||
render/ocioconf/ocioconf.qrc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/ocioconf.qrc
|
||||
PARENT_SCOPE
|
||||
)
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
ourbasename=$(basename "$0")
|
||||
|
||||
rm ocioconf.qrc
|
||||
echo "<RCC>" >> ocioconf.qrc
|
||||
echo " <qresource prefix=\"/ocioconf\">" >> ocioconf.qrc
|
||||
|
||||
for f in $(find * -type f)
|
||||
do
|
||||
if [ "$f" != "CMakeLists.txt" ] && [ "$f" != "ocioconf.qrc" ] && [ "$f" != "$ourbasename" ]
|
||||
then
|
||||
echo " <file>$f</file>" >> ocioconf.qrc
|
||||
fi
|
||||
done
|
||||
|
||||
echo " </qresource>" >> ocioconf.qrc
|
||||
echo "</RCC>" >> ocioconf.qrc
|
||||
@@ -1,19 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/ocioconf">
|
||||
<file>config.ocio</file>
|
||||
<file>looks/Filmic_False_Colour.spi3d</file>
|
||||
<file>looks/Filmic_to_0-35_1-30.spi1d</file>
|
||||
<file>looks/Filmic_to_0-48_1-09.spi1d</file>
|
||||
<file>looks/Filmic_to_0-60_1-04.spi1d</file>
|
||||
<file>looks/Filmic_to_0-70_1-03.spi1d</file>
|
||||
<file>looks/Filmic_to_0-85_1-011.spi1d</file>
|
||||
<file>looks/Filmic_to_0.99_1-0075.spi1d</file>
|
||||
<file>looks/Filmic_to_1.20_1-00.spi1d</file>
|
||||
<file>luts/F-Log_to_Linear.spi1d</file>
|
||||
<file>luts/V-Log_to_linear.spi1d</file>
|
||||
<file>luts/V3_LogC_400_to_linear.spi1d</file>
|
||||
<file>luts/V3_LogC_800_to_linear.spi1d</file>
|
||||
<file>luts/desat65cube.spi3d</file>
|
||||
<file>luts/sRGB_OETF_to_Linear.spi1d</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@@ -0,0 +1,5 @@
|
||||
<RCC>
|
||||
<qresource prefix="/ocioconf">
|
||||
@QRC_BODY@
|
||||
</qresource>
|
||||
</RCC>
|
||||
Reference in New Issue
Block a user