Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
b389b4f1
Commit
b389b4f1
authored
Oct 10, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: more cleanups for libav/FFmpeg
parent
14fa9f28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
contrib/src/ffmpeg/rules.mak
contrib/src/ffmpeg/rules.mak
+8
-7
No files found.
contrib/src/ffmpeg/rules.mak
View file @
b389b4f1
...
@@ -13,7 +13,9 @@ FFMPEGCONF = \
...
@@ -13,7 +13,9 @@ FFMPEGCONF = \
--disable-avdevice
\
--disable-avdevice
\
--disable-devices
\
--disable-devices
\
--disable-avfilter
\
--disable-avfilter
\
--disable-filters
--disable-filters
\
--disable-bsfs
\
--disable-bzlib
# Those tools are named differently in FFmpeg and Libav
# Those tools are named differently in FFmpeg and Libav
# --disable-ffserver \
# --disable-ffserver \
...
@@ -29,6 +31,7 @@ else
...
@@ -29,6 +31,7 @@ else
FFMPEGCONF
+=
--disable-encoders
--disable-muxers
FFMPEGCONF
+=
--disable-encoders
--disable-muxers
endif
endif
# Small size
ifdef
ENABLE_SMALL
ifdef
ENABLE_SMALL
FFMPEGCONF
+=
--enable-small
--optflags
=
-O2
FFMPEGCONF
+=
--enable-small
--optflags
=
-O2
ifeq
($(ARCH),arm)
ifeq
($(ARCH),arm)
...
@@ -63,7 +66,6 @@ endif
...
@@ -63,7 +66,6 @@ endif
# Darwin
# Darwin
ifdef
HAVE_DARWIN_OS
ifdef
HAVE_DARWIN_OS
FFMPEGCONF
+=
--arch
=
$(ARCH)
--target-os
=
darwin
FFMPEGCONF
+=
--arch
=
$(ARCH)
--target-os
=
darwin
FFMPEG_CFLAGS
+=
-DHAVE_LRINTF
ifneq
($(findstring $(ARCH),i386 x86_64),)
ifneq
($(findstring $(ARCH),i386 x86_64),)
FFMPEGCONF
+=
--enable-memalign-hack
FFMPEGCONF
+=
--enable-memalign-hack
endif
endif
...
@@ -79,6 +81,7 @@ endif
...
@@ -79,6 +81,7 @@ endif
ifdef
HAVE_LINUX
ifdef
HAVE_LINUX
FFMPEGCONF
+=
--target-os
=
linux
--enable-pic
FFMPEGCONF
+=
--target-os
=
linux
--enable-pic
# Android x86
ifeq
($(ANDROID_ABI), x86)
ifeq
($(ANDROID_ABI), x86)
ifdef
HAVE_ANDROID
ifdef
HAVE_ANDROID
# Android-x86 gcc doesn't guarantee an aligned stack, but this is
# Android-x86 gcc doesn't guarantee an aligned stack, but this is
...
@@ -97,22 +100,20 @@ ifndef HAVE_MINGW_W64
...
@@ -97,22 +100,20 @@ ifndef HAVE_MINGW_W64
DEPS_ffmpeg
+=
directx
DEPS_ffmpeg
+=
directx
endif
endif
FFMPEGCONF
+=
--target-os
=
mingw32
--enable-memalign-hack
FFMPEGCONF
+=
--target-os
=
mingw32
--enable-memalign-hack
FFMPEGCONF
+=
--enable-w32threads
\
FFMPEGCONF
+=
--enable-w32threads
--enable-dxva2
\
--disable-bzlib
--disable-bsfs
\
--disable-decoder
=
dca
--disable-encoder
=
vorbis
\
--disable-decoder
=
dca
--disable-encoder
=
vorbis
\
--enable-dxva2
ifdef
HAVE_WIN64
ifdef
HAVE_WIN64
FFMPEGCONF
+=
--cpu
=
athlon64
--arch
=
x86_64
FFMPEGCONF
+=
--cpu
=
athlon64
--arch
=
x86_64
else
# !WIN64
else
# !WIN64
FFMPEGCONF
+=
--cpu
=
i686
--arch
=
x86
FFMPEGCONF
+=
--cpu
=
i686
--arch
=
x86
endif
endif
else
else
# !Windows
FFMPEGCONF
+=
--enable-pthreads
FFMPEGCONF
+=
--enable-pthreads
endif
endif
# Build
# Build
PKGS
+=
ffmpeg
PKGS
+=
ffmpeg
ifeq
($(call need_pkg,"libavcodec >= 52.25.0 libavformat >= 52.30.0 libswscale"),)
ifeq
($(call need_pkg,"libavcodec >= 52.25.0 libavformat >= 52.30.0 libswscale"),)
PKGS_FOUND
+=
ffmpeg
PKGS_FOUND
+=
ffmpeg
...
...
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