Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Steve Lhomme
vlc
Commits
a8fe060f
Commit
a8fe060f
authored
Nov 27, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: set android specifics
parent
259b9e4b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
contrib/bootstrap
contrib/bootstrap
+11
-0
contrib/src/main.mak
contrib/src/main.mak
+17
-0
No files found.
contrib/bootstrap
View file @
a8fe060f
...
...
@@ -151,6 +151,13 @@ check_macosx_sdk()
add_make
"OSX_VERSION ?=
${
OSX_VERSION
}
"
}
check_android_sdk
()
{
[
-z
"
${
ANDROID_NDK
}
"
]
&&
echo
"You must set ANDROID_NDK environment variable"
&&
exit
1
add_make
"ANDROID_NDK :=
${
ANDROID_NDK
}
"
test
-z
"
${
NO_NEON
}
"
&&
add_make_enabled
"HAVE_NEON"
}
test
-z
"
$PREFIX
"
||
add_make
"PREFIX :=
$PREFIX
"
test
-z
"
$BUILD_DISCS
"
||
add_make_enabled
"BUILD_DISCS"
test
-z
"
$BUILD_ENCODERS
"
||
add_make_enabled
"BUILD_ENCODERS"
...
...
@@ -170,6 +177,10 @@ case "${OS}" in
*
bsd
*
)
add_make_enabled
"HAVE_BSD"
;;
linux-androideabi
)
check_android_sdk
add_make_enabled
"HAVE_LINUX"
"HAVE_ANDROID"
;;
*
linux
*
)
add_make_enabled
"HAVE_LINUX"
;;
...
...
contrib/src/main.mak
View file @
a8fe060f
...
...
@@ -92,6 +92,23 @@ STRIP := $(HOST)-strip
endif
endif
ifdef
HAVE_ANDROID
CC
:=
$(HOST)
-gcc
--sysroot
=
$(ANDROID_NDK)
/platforms/android-9/arch-arm
CXX
:=
$(HOST)
-g
++
--sysroot
=
$(ANDROID_NDK)
/platforms/android-9/arch-arm
# Kludge for C++ prebuilt compiler
EXTRA_CFLAGS
+=
-D__STDC_VERSION__
=
199901L
EXTRA_CFLAGS
+=
-I
$(ANDROID_NDK)
/sources/cxx-stl/gnu-libstdc++/include
ifdef
HAVE_NEON
EXTRA_CFLAGS
+=
-I
$(ANDROID_NDK)
/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include
else
EXTRA_CFLAGS
+=
-I
$(ANDROID_NDK)
/sources/cxx-stl/gnu-libstdc++/libs/armeabi/include
endif
# Change HOST to not confuse autotools
HOST
=
arm-eabi
endif
ifdef
HAVE_MACOSX
MACOSX_SDK
=
/Developer/SDKs/MacOSX
$(OSX_VERSION)
.sdk
CC
=
gcc-4.2
...
...
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