adium 2712:99080a3c918f: We might want to copy the gst plugins i...
commits at adium.im
commits at adium.im
Mon Sep 21 18:57:15 UTC 2009
details: http://hg.adium.im/adium/rev/99080a3c918f
revision: 2712:99080a3c918f
author: Stephen Holt <sholt at adium.im>
date: Fri Sep 18 21:07:24 2009 -0400
We might want to copy the gst plugins into the gstreamer framework... yeah...
Subject: adium 2713:1bc2c2c93e30: Removing a number of things we're unlikely to need from gstreamer in the name of decreased binary size.
details: http://hg.adium.im/adium/rev/1bc2c2c93e30
revision: 2713:1bc2c2c93e30
author: Stephen Holt <sholt at adium.im>
date: Fri Sep 18 21:20:30 2009 -0400
Removing a number of things we're unlikely to need from gstreamer in the name of decreased binary size.
* Linux/XWindows targeted sources and sinks, for example, are never likely to be needed.
* Visual effects are unlikely to be used, and just take up space.
* Container formats are useless for us - streams are demuxed for us by farsight.
* gst-plugins-bad is mostly useless for us. If I'm wrong, we can reenable stuff on an as-needed basis.
* Lossless audio compression in streaming audio? Lose FLAC/WavPack/MonkeysAudio.
Subject: adium 2714:bc366c452093: A 32/64 Universal libxml2 weighed in at 6MB. Leopard and later come with libxml2 installed. I see no reason not to link against the system version.
details: http://hg.adium.im/adium/rev/bc366c452093
revision: 2714:bc366c452093
author: Stephen Holt <sholt at adium.im>
date: Mon Sep 21 14:56:43 2009 -0400
A 32/64 Universal libxml2 weighed in at 6MB. Leopard and later come with libxml2 installed. I see no reason not to link against the system version.
diffs (185 lines):
diff -r 92fc93345e8d -r bc366c452093 .hgignore
--- a/.hgignore Mon Sep 14 23:17:28 2009 -0400
+++ b/.hgignore Mon Sep 21 14:56:43 2009 -0400
@@ -14,3 +14,4 @@
Dependencies/source
Dependencies/Frameworks
Dependencies/build.log
+Dependencies/error.log
diff -r 92fc93345e8d -r bc366c452093 Dependencies/phases/build_vv_dependencies.sh
--- a/Dependencies/phases/build_vv_dependencies.sh Mon Sep 14 23:17:28 2009 -0400
+++ b/Dependencies/phases/build_vv_dependencies.sh Mon Sep 21 14:56:43 2009 -0400
@@ -1,36 +1,6 @@
#!/bin/bash -eu
##
-# xml2
-#
-XML_VERSION=2.2
-build_libxml2() {
- prereq "xml2" \
- "ftp://xmlsoft.org:21//libxml2/libxml2-sources-2.7.3.tar.gz"
-
- quiet pushd "$ROOTDIR/source/xml2"
-
- if needsconfigure $@; then
- (
- status "Configuring xml2"
- export CFLAGS="$ARCH_CFLAGS"
- export LDFLAGS="$ARCH_LDFLAGS"
- log ./configure \
- --prefix="$ROOTDIR/build" \
- --with-python=no \
- --disable-dependency-tracking
- )
- fi
-
- status "Building and installing xml2"
- log make -j $NUMBER_OF_CORES
- log make install
-
- quiet popd
-}
-
-
-##
# liboil
# liboil needs special threatment. Rather than placing platform specific code
# in a ifdef, it sequesters it by directory and invokes a makefile. woowoo.
@@ -67,6 +37,19 @@
export NM="nm -arch all"
CONFIG_CMD="./configure \
--prefix=$ROOTDIR/build \
+ --disable-examples \
+ --disable-playback \
+ --disable-audiotestsrc \
+ --disable-cdparanoia \
+ --disable-subparse \
+ --disable-videotestsrc \
+ --disable-x \
+ --disable-xvideo \
+ --disable-xshm \
+ --disable-gst_v4l \
+ --disable-alsa \
+ --disable-gnome_vfs \
+ --disable-libvisual \
--disable-dependency-tracking"
xconfigure "${BASE_CFLAGS}" "${BASE_LDFLAGS}" "${CONFIG_CMD}" \
"${ROOTDIR}/source/gst-plugins-base/config.h" \
@@ -97,9 +80,47 @@
CONFIG_CMD="./configure \
--prefix=$ROOTDIR/build \
--disable-aalib \
+ --disable-videofilter \
+ --disable-apetag \
+ --disable-alpha \
+ --disable-audiofx \
+ --disable-auparse \
+ --disable-avi \
+ --disable-cutter \
+ --disable-debugutils \
+ --disable-deinterlace \
+ --disable-effectv \
+ --disable-flv \
+ --disable-id3demux \
+ --disable-icydemux \
--disable-examples \
+ --disable-interleave \
--disable-goom \
--disable-goom2k1 \
+ --disable-matroska \
+ --disable-monoscope \
+ --disable-multifile \
+ --disable-multipart \
+ --disable-qtdemux \
+ --disable-replaygain \
+ --disable-smpte \
+ --disable-spectrum \
+ --disable-directsound \
+ --disable-oss \
+ --disable-sunaudio \
+ --disable-osx_video \
+ --disable-gst_v4l2 \
+ --disable-x \
+ --disable-xshm \
+ --disable-xvideo \
+ --disable-annodex \
+ --disable-cairo \
+ --disable-esd \
+ --disable-flac \
+ --disable-libcaca \
+ --disable-taglib \
+ --disable-wavpack \
+ --disable-shout2 \
--disable-dependency-tracking"
xconfigure "${BASE_CFLAGS}" "${BASE_LDFLAGS}" "${CONFIG_CMD}" \
"${ROOTDIR}/source/gst-plugins-good/config.h" \
@@ -180,7 +201,7 @@
build_liboil $@
build_gst_plugins_base $@
build_gst_plugins_good $@
- build_gst_plugins_bad $@
+# build_gst_plugins_bad $@
build_gst_plugins_farsight $@
}
@@ -189,8 +210,6 @@
#
GSTREAMER_VERSION=0.10
build_gstreamer() {
- build_libxml2 $@
-
prereq "gstreamer" \
"http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.24.tar.gz"
@@ -199,8 +218,11 @@
if needsconfigure $@; then
(
status "Configuring gstreamer"
+ export XML_CFLAGS=" -I$SDK_ROOT/usr/include/libxml2"
CONFIG_CMD="./configure \
--prefix=$ROOTDIR/build \
+ --disable-examples \
+ --disable-tests \
--disable-dependency-tracking"
xconfigure "${BASE_CFLAGS}" "${BASE_LDFLAGS}" "${CONFIG_CMD}" \
"$ROOTDIR/source/gstreamer/gst/gstconfig.h" \
diff -r 92fc93345e8d -r bc366c452093 Dependencies/phases/make_frameworks.sh
--- a/Dependencies/phases/make_frameworks.sh Mon Sep 14 23:17:28 2009 -0400
+++ b/Dependencies/phases/make_frameworks.sh Mon Sep 21 14:56:43 2009 -0400
@@ -77,12 +77,6 @@
touch "${ROOTDIR}/build/lib/include/${no_include_lib}/no_headers_here.txt"
done
- #libxml
- status "Staging libxml headers"
- local xml2Dir="${ROOTDIR}/build/lib/include/libxml-${XML_VERSION}"
- quiet mkdir "${xml2Dir}" || true
- log cp -R "${ROOTDIR}/build/include/libxml2" "${xml2Dir}"
-
#libpurple
status "Staging libpurple headers"
local purpleDir="${ROOTDIR}/build/lib/include/libpurple-${LIBPURPLE_VERSION}"
@@ -124,7 +118,7 @@
log cp "${ROOTDIR}/Libotr-Info.plist" \
"${FRAMEWORK_DIR}/libotr.subproj/libotr.framework/Resources/Info.plist"
- else
+ else
status "Making a framework for libpurple-${LIBPURPLE_VERSION} and all dependencies..."
log python "${ROOTDIR}/framework_maker/frameworkize.py" \
"${ROOTDIR}/build/lib/libpurple.${LIBPURPLE_VERSION}.dylib" \
@@ -136,6 +130,13 @@
log cp "${ROOTDIR}/Libpurple-Info.plist" \
"${FRAMEWORK_DIR}/libpurple.subproj/libpurple.framework/Resources/Info.plist"
+
+ status "Adding gst plugins..."
+ GST_PLUGINS_DIR="${ROOTDIR}/Frameworks/libgstreamer.subproj/libgstreamer.framework/PlugIns"
+ quiet mkdir "${GST_PLUGINS_DIR}"
+ pushd "${ROOTDIR}/build/lib/gstreamer-0.10/"
+ log cp *.so "${GST_PLUGINS_DIR}"
+ popd
fi
status "Done!"
More information about the commits
mailing list