Commit a31d2608 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: Add VERBATIM back. Apparently this could be a cmake issue. Need to investigate.

parent ce10771b
...@@ -203,6 +203,7 @@ COMMAND printf "const char psz_vlc_changeset[] = \"" >> ${rev}.tmp ...@@ -203,6 +203,7 @@ COMMAND printf "const char psz_vlc_changeset[] = \"" >> ${rev}.tmp
COMMAND sh -c "printf `LANG=C svnversion ${CMAKE_SOURCE_DIR} || printf \"exported\"`" >> ${rev}.tmp COMMAND sh -c "printf `LANG=C svnversion ${CMAKE_SOURCE_DIR} || printf \"exported\"`" >> ${rev}.tmp
COMMAND echo "\";" >> ${rev}.tmp COMMAND echo "\";" >> ${rev}.tmp
COMMAND mv -f ${rev}.tmp ${rev} COMMAND mv -f ${rev}.tmp ${rev}
VERBATIM
) )
set(rev) set(rev)
...@@ -218,6 +219,7 @@ COMMAND mkdir -p `dirname ${builtin}` ...@@ -218,6 +219,7 @@ COMMAND mkdir -p `dirname ${builtin}`
COMMAND echo "/* Auto generated by ${CMAKE_CURRENT_BUILD_DIR}/CMakeLists.txt */" > ${builtin} COMMAND echo "/* Auto generated by ${CMAKE_CURRENT_BUILD_DIR}/CMakeLists.txt */" > ${builtin}
COMMAND echo "int vlc_entry__main( module_t* );" >> ${builtin} COMMAND echo "int vlc_entry__main( module_t* );" >> ${builtin}
COMMAND echo "#define ALLOCATE_ALL_BUILTINS() do {} while(0)" >> ${builtin} COMMAND echo "#define ALLOCATE_ALL_BUILTINS() do {} while(0)" >> ${builtin}
VERBATIM
) )
set(should) set(should)
...@@ -227,9 +229,8 @@ set(about "${CMAKE_BINARY_DIR}/include/vlc_about.h") ...@@ -227,9 +229,8 @@ set(about "${CMAKE_BINARY_DIR}/include/vlc_about.h")
add_custom_command( add_custom_command(
OUTPUT ${about} OUTPUT ${about}
COMMAND rm -f -- "${about}.tmp" COMMAND rm -f "${about}.tmp"
COMMAND mkdir -p `dirname ${about}` COMMAND mkdir -p `dirname ${about}`
COMMAND mkdir -p -- ../include
COMMAND echo "/* Automatically generated file - DO NOT EDIT */" > "${about}.tmp" COMMAND echo "/* Automatically generated file - DO NOT EDIT */" > "${about}.tmp"
COMMAND echo "static const char psz_license[] =" >> "${about}.tmp" COMMAND echo "static const char psz_license[] =" >> "${about}.tmp"
COMMAND cat ${CMAKE_SOURCE_DIR}/COPYING | sed s/\"/''/g | awk "{ print \"\\\"\"$0\"\\\\n\\\"\" }" >> "${about}.tmp" COMMAND cat ${CMAKE_SOURCE_DIR}/COPYING | sed s/\"/''/g | awk "{ print \"\\\"\"$0\"\\\\n\\\"\" }" >> "${about}.tmp"
...@@ -242,6 +243,7 @@ COMMAND grep N: ${CMAKE_SOURCE_DIR}/AUTHORS | cut -d "\ " -f 2- | sed "s/\"/''/g ...@@ -242,6 +243,7 @@ COMMAND grep N: ${CMAKE_SOURCE_DIR}/AUTHORS | cut -d "\ " -f 2- | sed "s/\"/''/g
COMMAND echo ";" >> "${about}.tmp" COMMAND echo ";" >> "${about}.tmp"
COMMAND mv -f -- "${about}.tmp" "${about}" COMMAND mv -f -- "${about}.tmp" "${about}"
DEPENDS ${CMAKE_SOURCE_DIR}/AUTHORS ${CMAKE_SOURCE_DIR}/THANKS ${CMAKE_SOURCE_DIR}/COPYING DEPENDS ${CMAKE_SOURCE_DIR}/AUTHORS ${CMAKE_SOURCE_DIR}/THANKS ${CMAKE_SOURCE_DIR}/COPYING
VERBATIM
) )
set(about) set(about)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment