Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
e77ff475
Commit
e77ff475
authored
Feb 09, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Make the *.c *.h script generation compatible with cmake's trunk.
parent
5667d99f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
+18
-18
No files found.
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
View file @
e77ff475
...
@@ -200,10 +200,10 @@ add_custom_command(
...
@@ -200,10 +200,10 @@ add_custom_command(
OUTPUT ${rev}
OUTPUT ${rev}
COMMAND rm -f ${rev} ${rev}.tmp
COMMAND rm -f ${rev} ${rev}.tmp
COMMAND mkdir -p ${rev_dir}
COMMAND mkdir -p ${rev_dir}
COMMAND
echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > ${rev}.tmp
COMMAND
sh -c "echo '/* AUTOGENERATED FILE - DO NOT EDIT */' > ${rev}.tmp"
COMMAND
printf "const char psz_vlc_changeset[] = \"" >> ${rev}.tmp
COMMAND
sh -c "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
sh -c "echo '\";' >> ${rev}.tmp"
COMMAND mv -f ${rev}.tmp ${rev}
COMMAND mv -f ${rev}.tmp ${rev}
VERBATIM
VERBATIM
)
)
...
@@ -219,9 +219,9 @@ exec_program(dirname ARGS ${builtin} OUTPUT_VARIABLE builtin_dir)
...
@@ -219,9 +219,9 @@ exec_program(dirname ARGS ${builtin} OUTPUT_VARIABLE builtin_dir)
add_custom_command(
add_custom_command(
OUTPUT ${builtin}
OUTPUT ${builtin}
COMMAND mkdir -p ${builtin_dir}
COMMAND mkdir -p ${builtin_dir}
COMMAND
echo "/* Auto generated by ${CMAKE_CURRENT_BUILD_DIR}/CMakeLists.txt */" > ${builtin}
COMMAND
sh -c "echo '/* Auto generated by ${CMAKE_CURRENT_BUILD_DIR}/CMakeLists.txt */' > ${builtin}"
COMMAND
echo "int vlc_entry__main( module_t* );" >> ${builtin}
COMMAND
sh -c "echo 'int vlc_entry__main( module_t* );' >> ${builtin}"
COMMAND
echo "#define ALLOCATE_ALL_BUILTINS() do {} while(0)" >> ${builtin}
COMMAND
sh -c "echo '#define ALLOCATE_ALL_BUILTINS() do {} while(0)' >> ${builtin}"
VERBATIM
VERBATIM
)
)
set(should)
set(should)
...
@@ -235,17 +235,17 @@ add_custom_command(
...
@@ -235,17 +235,17 @@ add_custom_command(
OUTPUT ${about}
OUTPUT ${about}
COMMAND rm -f "${about}.tmp"
COMMAND rm -f "${about}.tmp"
COMMAND mkdir -p ${about_dir}
COMMAND mkdir -p ${about_dir}
COMMAND
echo "/* Automatically generated file - DO NOT EDIT */" > "
${about}.tmp"
COMMAND
sh -c "echo '/* Automatically generated file - DO NOT EDIT */' >
${about}.tmp"
COMMAND
echo "static const char psz_license[] =" >> "
${about}.tmp"
COMMAND
sh -c "echo 'static const char psz_license[] =' >>
${about}.tmp"
COMMAND
cat ${CMAKE_SOURCE_DIR}/COPYING | sed s/\"/''/g | awk "{ print \"\\\"\"$0\"\\\\n\\\"\" }" >> "
${about}.tmp"
COMMAND
sh -c "cat ${CMAKE_SOURCE_DIR}/COPYING | sed s/\\\"/''/g | awk '{ print \"\\\"\"$0\"\\\\n\\\"\" }' >>
${about}.tmp"
COMMAND
echo ";" >> "
${about}.tmp"
COMMAND
sh -c "echo ';' >>
${about}.tmp"
COMMAND
echo "static const char psz_thanks[] =" >> "
${about}.tmp"
COMMAND
sh -c "echo 'static const char psz_thanks[] =' >>
${about}.tmp"
COMMAND
grep -v '$$Id:' ${CMAKE_SOURCE_DIR}/THANKS | sed "s/\"/''/g" | awk "{ print \"\\\"\"$0\"\\\\n\\\"\" }"|sed "s/\"<.*.> \"//" >> "
${about}.tmp"
COMMAND
sh -c "grep -v '$$Id:' ${CMAKE_SOURCE_DIR}/THANKS | sed 's/\"/''/g' | awk '{ print \"\\\"\"$0\"\\\\n\\\"\" }'|sed 's/\"<.*.> \"//' >>
${about}.tmp"
COMMAND
echo ";" >> "
${about}.tmp"
COMMAND
sh -c "echo ';' >>
${about}.tmp"
COMMAND
echo "static const char psz_authors[] =" >> "
${about}.tmp"
COMMAND
sh -c "echo 'static const char psz_authors[] =' >>
${about}.tmp"
COMMAND
grep N: ${CMAKE_SOURCE_DIR}/AUTHORS | cut -d "\ " -f 2- | sed "s/\"/''/g" | awk "{ print \"\\\"\"$0\"\\\\n\\\"\" }" >> "
${about}.tmp"
COMMAND
sh -c "grep N: ${CMAKE_SOURCE_DIR}/AUTHORS | cut -d '\ ' -f 2- | sed 's/\"/''/g' | awk '{ print \"\\\"\"$0\"\\\\n\\\"\" }' >>
${about}.tmp"
COMMAND
echo ";" >> "
${about}.tmp"
COMMAND
sh -c "echo ';' >>
${about}.tmp"
COMMAND
mv -f -- "${about}.tmp" "
${about}"
COMMAND
sh -c "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
VERBATIM
)
)
...
...
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