Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
0e2eb38d
Commit
0e2eb38d
authored
Feb 08, 2008
by
Faustino Osuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: Command substitution work around for VERBATIM flag.
parent
a31d2608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
+7
-3
No files found.
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
View file @
0e2eb38d
...
@@ -194,10 +194,12 @@ endif(APPLE)
...
@@ -194,10 +194,12 @@ endif(APPLE)
# revision.c
# revision.c
set(rev "${CMAKE_BINARY_DIR}/src/misc/revision.c")
set(rev "${CMAKE_BINARY_DIR}/src/misc/revision.c")
exec_program(dirname ARGS ${rev} OUTPUT_VARIABLE rev_dir)
add_custom_command(
add_custom_command(
OUTPUT ${rev}
OUTPUT ${rev}
COMMAND rm -f ${rev} ${rev}.tmp
COMMAND rm -f ${rev} ${rev}.tmp
COMMAND mkdir -p
`dirname ${rev}`
COMMAND mkdir -p
${rev_dir}
COMMAND echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > ${rev}.tmp
COMMAND echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > ${rev}.tmp
COMMAND printf "const char psz_vlc_changeset[] = \"" >> ${rev}.tmp
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
...
@@ -212,10 +214,11 @@ set(rev)
...
@@ -212,10 +214,11 @@ set(rev)
# No real use for this one, we just used to need it.
# No real use for this one, we just used to need it.
# We should really remove that.
# We should really remove that.
set(builtin "${CMAKE_BINARY_DIR}/src/modules/builtin.h")
set(builtin "${CMAKE_BINARY_DIR}/src/modules/builtin.h")
exec_program(dirname ARGS ${builtin} OUTPUT_VARIABLE builtin_dir)
add_custom_command(
add_custom_command(
OUTPUT ${builtin}
OUTPUT ${builtin}
COMMAND mkdir -p
`dirname ${builtin}`
COMMAND mkdir -p
${builtin_dir}
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}
...
@@ -226,11 +229,12 @@ set(should)
...
@@ -226,11 +229,12 @@ set(should)
##########################################################
##########################################################
# vlc_about.h
# vlc_about.h
set(about "${CMAKE_BINARY_DIR}/include/vlc_about.h")
set(about "${CMAKE_BINARY_DIR}/include/vlc_about.h")
exec_program(dirname ARGS ${about} OUTPUT_VARIABLE about_dir)
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
${about_dir}
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"
...
...
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