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
3a768c48
Commit
3a768c48
authored
Nov 05, 2010
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: Group ffmpeg settings together.
parent
6b847282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
56 deletions
+81
-56
extras/contrib/src/contrib-src.mak
extras/contrib/src/contrib-src.mak
+81
-56
No files found.
extras/contrib/src/contrib-src.mak
View file @
3a768c48
...
...
@@ -90,8 +90,6 @@ else
HOSTCC2
=
$(HOSTCC)
endif
FFMPEGCONF
=
--disable-doc
--disable-decoder
=
libvpx
# cross compiling
#This should be inside the if block but some config scripts are buggy
HOSTCONF
=
--target
=
$(HOST)
--host
=
$(HOST)
--build
=
$(BUILD)
--program-prefix
=
""
...
...
@@ -101,13 +99,12 @@ ifneq ($(BUILD),$(HOST))
# unfortunately there isn't a complete separate GCC toolchain for MinGW under Cygwin
#
ifndef
HAVE_CYGWIN
# We are REALLY cross compiling
ifdef
HAVE_IOS
FFMPEGCONF
+=
--enable-cross-compile
else
FFMPEGCONF
+=
--cross-prefix
=
$(HOST)
-
--enable-cross-compile
# We are REALLY cross compiling
HAVE_CROSS_COMPILE
=
y
ifndef
HAVE_IOS
HAVE_CROSS_COMPILE_NEEDS_CROSS_PREFIX
=
y
endif
X264CONF
=
--host
=
$(HOST)
X264CONF
=
--host
=
$(HOST)
PTHREADSCONF
=
CROSS
=
"
$(HOST)
-"
else
# We are compiling for MinGW on Cygwin
...
...
@@ -119,74 +116,26 @@ endif
#
ifdef
HAVE_WIN32
HOSTCONF
+=
--without-pic
--disable-shared
--disable-dependency-tracking
FFMPEGCONF
+=
--target-os
=
mingw32
--arch
=
x86
--enable-memalign-hack
ifdef
HAVE_WIN64
FFMPEGCONF
+=
--cpu
=
athlon64
--arch
=
x86_64
else
FFMPEGCONF
+=
--cpu
=
i686
endif
endif
ifdef
HAVE_WINCE
HOSTCONF
+=
--without-pic
--disable-shared
FFMPEGCONF
+=
--target-os
=
mingw32ce
--arch
=
armv4l
--cpu
=
armv4t
--disable-encoders
--disable-muxers
--disable-mpegaudio-hp
--disable-decoder
=
snow
--disable-decoder
=
vc9
--disable-decoder
=
wmv3
--disable-decoder
=
vorbis
--disable-decoder
=
dvdsub
--disable-decoder
=
dvbsub
--disable-protocols
endif
ifdef
HAVE_UCLIBC
ifdef
HAVE_BIGENDIAN
FFMPEGCONF
+=
--arch
=
armeb
--enable-armv5te
--enable-iwmmxt
else
FFMPEGCONF
+=
--arch
=
armv4l
endif
FFMPEGCONF
+=
--enable-small
--disable-mpegaudio-hp
FFMPEG_CFLAGS
+=
-DHAVE_LRINTF
--std
=
c99
else
ifndef
HAVE_WINCE
ifndef
HAVE_IOS
FFMPEGCONF
+=
--enable-libmp3lame
--enable-libgsm
endif
endif
endif
ifdef
HAVE_MACOSX_ON_INTEL
FFMPEGCONF
+=
--enable-memalign-hack
endif
ifdef
HAVE_MACOSX
X264CONF
=
--host
=
$(HOST)
X264CONF
+=
--enable-pic
ifdef
HAVE_MACOSX32
FFMPEGCONF
+=
--enable-libvpx
FFMPEGCONF
+=
--cc
=
gcc-4.0
else
FFMPEGCONF
+=
--cc
=
$(CC)
endif
FFMPEGCONF
+=
--arch
=
$(ARCH)
ifdef
HAVE_MACOSX64
FFMPEGCONF
+=
--enable-libvpx
FFMPEGCONF
+=
--cpu
=
core2
X264CONF
+=
--host
=
x86_64-apple-MACOSX10
endif
ifdef
HAVE_MACOSX_ON_INTEL
FFMPEG_CFLAGS
+=
-DHAVE_LRINTF
endif
endif
ifdef
HAVE_AMR
FFMPEGCONF
+=
--enable-libamr-nb
--enable-libamr-wb
--enable-nonfree
endif
ifdef
HAVE_LINUX
FFMPEGCONF
+=
--target-os
=
linux
ifdef
HAVE_MAEMO
ifneq
($(filter -m%=cortex-a8, $(EXTRA_CFLAGS)),)
FFMPEGCONF
+=
--disable-runtime-cpudetect
--enable-neon
--cpu
=
cortex-a8
endif
# Really, this could be done on all Linux platforms, not just Maemo.
# Installing statically-linked VLC plugins is so much simpler.
HOSTCONF
+=
--with-pic
--disable-shared
endif
FFMPEGCONF
+=
--enable-pic
X264CONF
+=
--enable-pic
endif
...
...
@@ -1024,6 +973,82 @@ DISTCLEAN_PKG += amrwb-$(LIBAMR_WB_VERSION).tar.bz2
# ffmpeg
# ***************************************************************************
FFMPEGCONF
=
--disable-doc
--disable-decoder
=
libvpx
ifdef
HAVE_CROSS_COMPILE
FFMPEGCONF
+=
--enable-cross-compile
endif
ifdef
HAVE_CROSS_COMPILE_NEEDS_CROSS_PREFIX
FFMPEGCONF
+=
--cross-prefix
=
$(HOST)
-
endif
#
# Special target-dependant options
#
ifdef
HAVE_WIN32
FFMPEGCONF
+=
--target-os
=
mingw32
--arch
=
x86
--enable-memalign-hack
ifdef
HAVE_WIN64
FFMPEGCONF
+=
--cpu
=
athlon64
--arch
=
x86_64
else
FFMPEGCONF
+=
--cpu
=
i686
endif
endif
ifdef
HAVE_WINCE
FFMPEGCONF
+=
--target-os
=
mingw32ce
--arch
=
armv4l
--cpu
=
armv4t
--disable-encoders
--disable-muxers
--disable-mpegaudio-hp
--disable-decoder
=
snow
--disable-decoder
=
vc9
--disable-decoder
=
wmv3
--disable-decoder
=
vorbis
--disable-decoder
=
dvdsub
--disable-decoder
=
dvbsub
--disable-protocols
endif
ifdef
HAVE_UCLIBC
ifdef
HAVE_BIGENDIAN
FFMPEGCONF
+=
--arch
=
armeb
--enable-armv5te
--enable-iwmmxt
else
FFMPEGCONF
+=
--arch
=
armv4l
endif
FFMPEGCONF
+=
--enable-small
--disable-mpegaudio-hp
FFMPEG_CFLAGS
+=
-DHAVE_LRINTF
--std
=
c99
else
ifndef
HAVE_WINCE
ifndef
HAVE_IOS
FFMPEGCONF
+=
--enable-libmp3lame
--enable-libgsm
endif
endif
endif
ifdef
HAVE_MACOSX_ON_INTEL
FFMPEGCONF
+=
--enable-memalign-hack
endif
ifdef
HAVE_MACOSX
ifdef
HAVE_MACOSX32
FFMPEGCONF
+=
--enable-libvpx
FFMPEGCONF
+=
--cc
=
gcc-4.0
else
FFMPEGCONF
+=
--cc
=
$(CC)
endif
FFMPEGCONF
+=
--arch
=
$(ARCH)
ifdef
HAVE_MACOSX64
FFMPEGCONF
+=
--enable-libvpx
FFMPEGCONF
+=
--cpu
=
core2
endif
ifdef
HAVE_MACOSX_ON_INTEL
FFMPEG_CFLAGS
+=
-DHAVE_LRINTF
endif
endif
ifdef
HAVE_AMR
FFMPEGCONF
+=
--enable-libamr-nb
--enable-libamr-wb
--enable-nonfree
endif
ifdef
HAVE_LINUX
FFMPEGCONF
+=
--target-os
=
linux
ifdef
HAVE_MAEMO
ifneq
($(filter -m%=cortex-a8, $(EXTRA_CFLAGS)),)
FFMPEGCONF
+=
--disable-runtime-cpudetect
--enable-neon
--cpu
=
cortex-a8
endif
endif
FFMPEGCONF
+=
--enable-pic
endif
ifdef
SVN
ifdef
HAVE_WIN32
ffmpeg
:
.dshow_headers
...
...
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