Changeset e10b64a458adbedb5374c99f50675b3c60581d5d
- Timestamp:
- 07/08/03 15:09:30
(5 years ago)
- Author:
- Sam Hocevar <sam@videolan.org>
- git-committer:
- Sam Hocevar <sam@videolan.org> 1057669770 +0000
- git-parent:
[26674bd9edbc995fc287d7be20fccd15438adc85]
- git-author:
- Sam Hocevar <sam@videolan.org> 1057669770 +0000
- Message:
- bootstrap:
+ Removed a useless use of cut.
+ Do not fail in the "clean" rule if no targets were built.
- Makefile.am:
+ Propagate $(srcdir) to toolbox.
- toolbox:
+ Do not include .moc files in POTFILES.in.
+ Fixed the generation of MSVC project files (untested).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r26674bd |
re10b64a |
|
| 107 | 107 | |
|---|
| 108 | 108 | include/vlc_symbols.h: Makefile $(HEADERS_include) |
|---|
| 109 | | $(srcdir)/toolbox --update-includes |
|---|
| | 109 | srcdir=$(srcdir) $(srcdir)/toolbox --update-includes |
|---|
| 110 | 110 | |
|---|
| 111 | 111 | src/misc/modules_plugin.h: Makefile src/misc/modules_plugin.h.in $(HEADERS_include) |
|---|
| 112 | | $(srcdir)/toolbox --update-includes |
|---|
| | 112 | srcdir=$(srcdir) $(srcdir)/toolbox --update-includes |
|---|
| 113 | 113 | |
|---|
| 114 | 114 | src/misc/modules_builtin.h: Makefile src/misc/modules_builtin.h.in |
|---|
| 115 | | $(srcdir)/toolbox --update-includes |
|---|
| | 115 | srcdir=$(srcdir) $(srcdir)/toolbox --update-includes |
|---|
| 116 | 116 | |
|---|
| 117 | 117 | # These dependencies are mandatory |
|---|
| … | … | |
| 209 | 209 | dist-hook: |
|---|
| 210 | 210 | mv $(distdir)/vlc.ebuild $(distdir)/vlc-${VERSION}.ebuild |
|---|
| 211 | | cd $(distdir) && $(srcdir)/toolbox --update-vc |
|---|
| | 211 | cd $(distdir) && srcdir=$(srcdir) $(srcdir)/toolbox --update-vc |
|---|
| 212 | 212 | |
|---|
| 213 | 213 | ############################################################################### |
|---|
| r76bbfba |
re10b64a |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## bootstrap file for the VLC media player |
|---|
| 4 | | ## $Id: bootstrap,v 1.66 2003/07/07 16:53:48 sam Exp $ |
|---|
| | 4 | ## $Id: bootstrap,v 1.67 2003/07/08 13:09:30 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Sam Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 61 | 61 | |
|---|
| 62 | 62 | modules="" |
|---|
| 63 | | count=0 |
|---|
| 64 | 63 | |
|---|
| 65 | 64 | rm -f modules/Makefile.am && cat > modules/Makefile.am << EOF |
|---|
| … | … | |
| 74 | 73 | printf "." |
|---|
| 75 | 74 | mf="modules/${dir}/Modules.am" |
|---|
| 76 | | basedir="`echo ${dir} | cut -f1 -d/`" |
|---|
| | 75 | basedir="${dir%%\/*}" |
|---|
| 77 | 76 | # automake will not recurse for make dist if we don't define SUBDIRS = . |
|---|
| 78 | 77 | subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`" |
|---|
| 79 | | #parent=`echo ${dir} | sed -e 's@[^/]*@..@g'` |
|---|
| 80 | | #echo " modules/${dir}/Makefile" >> m4/private.m4-tmp3 |
|---|
| 81 | 78 | rm -f modules/${dir}/Makefile.am && cat > modules/${dir}/Makefile.am << EOF |
|---|
| 82 | 79 | |
|---|
| … | … | |
| 96 | 93 | clean: clean-local |
|---|
| 97 | 94 | clean-local: |
|---|
| 98 | | rm -f *.a *.so *.dll *.sl *.dylib |
|---|
| | 95 | -rm -f *.a *.so *.dll *.sl *.dylib |
|---|
| 99 | 96 | |
|---|
| 100 | 97 | EOF |
|---|
| 101 | 98 | for mod in `sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf}` |
|---|
| 102 | 99 | do |
|---|
| 103 | | count="`expr ${count} + 1`" |
|---|
| 104 | 100 | if grep '^SOURCES_'${mod}'.*=.*PRIVATE' < ${mf} >/dev/null 2>&1; then |
|---|
| 105 | 101 | PRIVATE='#'; else |
|---|
| … | … | |
| 130 | 126 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 131 | 127 | clean-${mod}: |
|---|
| 132 | | rm -f \$(nodist_SOURCES_${mod}) |
|---|
| | 128 | -test -z "\$(nodist_SOURCES_${mod})" || rm -f \$(nodist_SOURCES_${mod}) |
|---|
| 133 | 129 | |
|---|
| 134 | 130 | EOF |
|---|
| … | … | |
| 165 | 161 | |
|---|
| 166 | 162 | if UNTRUE |
|---|
| 167 | | L${count}p = lib${mod}_plugin.a |
|---|
| 168 | | D${count}p = lib${mod}_plugin\$(LIBEXT) |
|---|
| 169 | | L${count}b = lib${mod}.a |
|---|
| 170 | | L${count}pic = lib${mod}_pic.a |
|---|
| 171 | | EOF |
|---|
| 172 | | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 173 | | B${count} = \$(nodist_SOURCES_${mod}) |
|---|
| | 163 | L${mod}-p = lib${mod}_plugin.a |
|---|
| | 164 | D${mod}-p = lib${mod}_plugin\$(LIBEXT) |
|---|
| | 165 | L${mod}-b = lib${mod}.a |
|---|
| | 166 | L${mod}-pic = lib${mod}_pic.a |
|---|
| | 167 | EOF |
|---|
| | 168 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| | 169 | B${mod} = \$(nodist_SOURCES_${mod}) |
|---|
| 174 | 170 | EOF |
|---|
| 175 | 171 | fi |
|---|
| … | … | |
| 179 | 175 | EOF |
|---|
| 180 | 176 | if [ "${NODIST}" != "#" ]; then cat >> modules/${dir}/Makefile.am << EOF |
|---|
| 181 | | ${PRIVATE}BUILT_SOURCES += \$(B${count}) |
|---|
| | 177 | ${PRIVATE}BUILT_SOURCES += \$(B${mod}) |
|---|
| 182 | 178 | EOF |
|---|
| 183 | 179 | fi |
|---|
| … | … | |
| 216 | 212 | lib${mod}_a_OBJCFLAGS = \`\$(VLC_CONFIG) --objcflags builtin ${mod}\` |
|---|
| 217 | 213 | |
|---|
| 218 | | libvlc_LIBRARIES += \$(L${count}b) \$(L${count}pic) |
|---|
| 219 | | lib${mod}_DATA = \$(D${count}p) |
|---|
| | 214 | libvlc_LIBRARIES += \$(L${mod}-b) \$(L${mod}-pic) |
|---|
| | 215 | lib${mod}_DATA = \$(D${mod}-p) |
|---|
| 220 | 216 | |
|---|
| 221 | 217 | lib${mod}dir = \$(libdir)/vlc/${topdir} |
|---|
| 222 | | ${PRIVATE}noinst_LIBRARIES += \$(L${count}p) |
|---|
| | 218 | ${PRIVATE}noinst_LIBRARIES += \$(L${mod}-p) |
|---|
| 223 | 219 | ${PRIVATE}lib${mod}_plugin\$(LIBEXT): \$(lib${mod}_plugin_a_OBJECTS) |
|---|
| 224 | 220 | ${PRIVATE} @case \`\$(VLC_CONFIG) --linkage ${mod}\` in \\ |
|---|
| r09496f1 |
re10b64a |
|
| 2 | 2 | |
|---|
| 3 | 3 | ## toolbox for the VLC media player |
|---|
| 4 | | ## $Id: toolbox,v 1.38 2003/07/05 14:47:53 sam Exp $ |
|---|
| | 4 | ## $Id: toolbox,v 1.39 2003/07/08 13:09:30 sam Exp $ |
|---|
| 5 | 5 | ## |
|---|
| 6 | 6 | ## Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 28 | 28 | --update-flexml generate and fix flexml and flex code |
|---|
| 29 | 29 | --changelog update the CVS changelog |
|---|
| 30 | | --distclean "make distclean" |
|---|
| | 30 | --distclean "make distclean" on steroids |
|---|
| 31 | 31 | --make-woody <dir> change distdir <dir> to a woody distdir |
|---|
| 32 | 32 | EOF |
|---|
| … | … | |
| 121 | 121 | echo "generating Visual Studio files..." |
|---|
| 122 | 122 | |
|---|
| 123 | | srcdir="`sed -ne 's/^srcdir *= *//p' < Makefile`" |
|---|
| | 123 | if test -z "${srcdir}"; then |
|---|
| | 124 | srcdir="`sed -ne 's/^srcdir *= *//p' < Makefile`" |
|---|
| | 125 | fi |
|---|
| 124 | 126 | |
|---|
| 125 | 127 | # The evil ^M |
|---|
| … | … | |
| 261 | 263 | |
|---|
| 262 | 264 | # plugins files |
|---|
| 263 | | grep '^L_[^ ]*_pic =' Modules.am | while read a b c |
|---|
| 264 | | do |
|---|
| 265 | | makefile="`echo $c | sed -e 's@/[^/]*$@/Modules.am@'`" |
|---|
| 266 | | plugin="`echo $a | sed 's/L_\(.*\)_pic/\1/'`" |
|---|
| 267 | | # this is an attempt at getting a list of plugin sources... we take the |
|---|
| 268 | | # production and remove everything that does not contain "module", which |
|---|
| 269 | | # means you miss $(NULL), but other variables too. |
|---|
| 270 | | cfiles=`grep -v '[^-_a-zA-Z0-9]*#' ${makefile} | awk 'BEGIN{a=0}{if(!a&&$0~/^SOURCES_'${plugin}'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if($0~/^[a-zA-Z]/){exit;}print $0}}' | tr '\\ ' '\n\n' | sed -ne 's,/,\\\\,g; s/.*modules/modules/p'` |
|---|
| 271 | | hfiles=`for i in ${cfiles} ; do echo $i ; done | grep '\.h$'` |
|---|
| 272 | | cfiles=`for i in ${cfiles} ; do echo $i ; done | grep -v '\.h$'` |
|---|
| 273 | | for dir in evc msvc |
|---|
| | 265 | for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' ${srcdir}/configure.ac` |
|---|
| | 266 | do |
|---|
| | 267 | mf="${srcdir}/modules/${dir}/Modules.am" |
|---|
| | 268 | for mod in `sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < ${mf}` |
|---|
| 274 | 269 | do |
|---|
| 275 | | test "${dir}" = "evc" && suf="vcp" || suf="dsp" |
|---|
| 276 | | source="${dir}/plugins.${suf}.in" |
|---|
| 277 | | target="${dir}/plugin_${plugin}.${suf}" |
|---|
| 278 | | echo "${target}" |
|---|
| 279 | | perl -pe 'if(/�SOURCES�/){last;} s/�PLUGIN�/'${plugin}'/g' < ${source} > ${target} |
|---|
| 280 | | for cfile in ${cfiles} |
|---|
| | 270 | # this is an attempt at getting a list of plugin sources... we take the |
|---|
| | 271 | # production and remove everything that does not contain "module", which |
|---|
| | 272 | # means you miss $(NULL), but other variables too. |
|---|
| | 273 | allfiles=`grep -v '[^-_a-zA-Z0-9]*#' ${mf} | awk 'BEGIN{a=0}{if(!a&&$0~/^SOURCES_'${mod}'[^-_a-zA-Z0-9]*=/){a=1;print$0;next;}if(a){if($0~/^[a-zA-Z]/){exit;}print $0}}' | tr '\\ ' '\n\n' | grep '\.'` |
|---|
| | 274 | hfiles=`for i in ${allfiles} ; do echo "$i" ; done | grep '\.h$'` |
|---|
| | 275 | cfiles=`for i in ${allfiles} ; do echo "$i" ; done | grep -v '\.h$'` |
|---|
| | 276 | for dir in evc msvc |
|---|
| 281 | 277 | do |
|---|
| 282 | | cat >> ${target} << EOF |
|---|
| 283 | | # Begin Source File${M} |
|---|
| 284 | | SOURCE="..\\${cfile}"${M} |
|---|
| 285 | | # ADD CPP /D "__VLC__" /D "__PLUGIN__" /D "MODULE_NAME=${plugin}" /D "MODULE_NAME_IS_${plugin}" ${M} |
|---|
| 286 | | # End Source File${M} |
|---|
| 287 | | EOF |
|---|
| | 278 | test "${dir}" = "evc" && suf="vcp" || suf="dsp" |
|---|
| | 279 | source="${dir}/plugins.${suf}.in" |
|---|
| | 280 | target="${dir}/plugin_${mod}.${suf}" |
|---|
| | 281 | echo "${target}" |
|---|
| | 282 | perl -pe 'if(/�SOURCES�/){last;} s/�PLUGIN�/'${mod}'/g' < ${source} > ${target} |
|---|
| | 283 | for cfile in ${cfiles} |
|---|
| | 284 | do |
|---|
| | 285 | cat >> ${target} << EOF |
|---|
| | 286 | # Begin Source File${M} |
|---|
| | 287 | SOURCE="..\\modules\\`echo ${dir}/${cfile} | sed 's,/,\\\\,g'`"${M} |
|---|
| | 288 | # ADD CPP /D "__VLC__" /D "__PLUGIN__" /D "MODULE_NAME=${mod}" /D "MODULE_NAME_IS_${mod}" ${M} |
|---|
| | 289 | # End Source File${M} |
|---|
| | 290 | EOF |
|---|
| | 291 | done |
|---|
| | 292 | # sed is really nicer for this... unfortunately it's broken under cygwin |
|---|
| | 293 | # sed -ne '1,/�SOURCES�/d; /�HEADERS�/,$d; p' < ${source} >> ${target} |
|---|
| | 294 | perl -e 'while(<>){if(/�SOURCES�/){last;}}while(<>){if(/�HEADERS�/){last;}print $_}' < ${source} >> ${target} |
|---|
| | 295 | for hfile in ${hfiles} |
|---|
| | 296 | do |
|---|
| | 297 | cat >> ${target} << EOF |
|---|
| | 298 | # Begin Source File${M} |
|---|
| | 299 | SOURCE="..\\modules\\`echo ${dir}/${hfile} | sed 's,/,\\\\,g'`"${M} |
|---|
| | 300 | # End Source File${M} |
|---|
| | 301 | EOF |
|---|
| | 302 | done |
|---|
| | 303 | # sed -ne '1,/�HEADERS�/d; p' < ${source} >> ${target} |
|---|
| | 304 | perl -e 'while(<>){if(/�HEADERS�/){last;}}while(<>){print $_}' < ${source} >> ${target} |
|---|
| 288 | 305 | done |
|---|
| 289 | | # sed is really nicer for this... unfortunately it's broken under cygwin |
|---|
| 290 | | # sed -ne '1,/�SOURCES�/d; /�HEADERS�/,$d; p' < ${source} >> ${target} |
|---|
| 291 | | perl -e 'while(<>){if(/�SOURCES�/){last;}}while(<>){if(/�HEADERS�/){last;}print $_}' < ${source} >> ${target} |
|---|
| 292 | | for hfile in ${hfiles} |
|---|
| 293 | | do |
|---|
| 294 | | cat >> ${target} << EOF |
|---|
| 295 | | # Begin Source File${M} |
|---|
| 296 | | SOURCE="..\\${hfile}"${M} |
|---|
| 297 | | # End Source File${M} |
|---|
| 298 | | EOF |
|---|
| 299 | | done |
|---|
| 300 | | # sed -ne '1,/�HEADERS�/d; p' < ${source} >> ${target} |
|---|
| 301 | | perl -e 'while(<>){if(/�HEADERS�/){last;}}while(<>){print $_}' < ${source} >> ${target} |
|---|
| 302 | 306 | done |
|---|
| 303 | 307 | done |
|---|
| … | … | |
| 353 | 357 | echo "" >> po/POTFILES.in |
|---|
| 354 | 358 | echo "# modules" >> po/POTFILES.in |
|---|
| 355 | | find modules -name '*.[chm]' -o -name '*.[ch]pp' | grep -v 'gui/win32/' | sort >> po/POTFILES.in |
|---|
| | 359 | find modules -name '*.[chm]' -o -name '*.[ch]pp' \ |
|---|
| | 360 | | grep -v '\(gui/win32/\|\.moc\.\)' \ |
|---|
| | 361 | | sort >> po/POTFILES.in |
|---|
| 356 | 362 | # clean old potfiles |
|---|
| 357 | 363 | cd po |
|---|
| … | … | |
| 372 | 378 | #set -x |
|---|
| 373 | 379 | |
|---|
| 374 | | srcdir="`sed -ne 's/^srcdir *= *//p' < Makefile`" |
|---|
| | 380 | if test -z "${srcdir}"; then |
|---|
| | 381 | srcdir="`sed -ne 's/^srcdir *= *//p' < Makefile`" |
|---|
| | 382 | fi |
|---|
| 375 | 383 | LIBVLC_HEADERS=`getfiles HEADERS_include` |
|---|
| 376 | 384 | BUILTINS=`sed -ne 's/.*builtins *= *" *\([^"]*\)".*/\1/p' vlc-config` |
|---|