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
54e435ee
Commit
54e435ee
authored
Mar 29, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contrib: support Tegra2 CPUs on Android
Cortex-a9 but no NEON? Seriously?
parent
d61052a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
contrib/bootstrap
contrib/bootstrap
+1
-0
contrib/src/main.mak
contrib/src/main.mak
+5
-0
No files found.
contrib/bootstrap
View file @
54e435ee
...
@@ -178,6 +178,7 @@ check_android_sdk()
...
@@ -178,6 +178,7 @@ check_android_sdk()
[
-z
"
${
ANDROID_NDK
}
"
]
&&
echo
"You must set ANDROID_NDK environment variable"
&&
exit
1
[
-z
"
${
ANDROID_NDK
}
"
]
&&
echo
"You must set ANDROID_NDK environment variable"
&&
exit
1
add_make
"ANDROID_NDK :=
${
ANDROID_NDK
}
"
add_make
"ANDROID_NDK :=
${
ANDROID_NDK
}
"
test
-z
"
${
NO_NEON
}
"
&&
add_make_enabled
"HAVE_NEON"
test
-z
"
${
NO_NEON
}
"
&&
add_make_enabled
"HAVE_NEON"
test
-n
"
${
TEGRA2
}
"
&&
add_make_enabled
"HAVE_TEGRA2"
}
}
test
-z
"
$PREFIX
"
||
add_make
"PREFIX :=
$PREFIX
"
test
-z
"
$PREFIX
"
||
add_make
"PREFIX :=
$PREFIX
"
...
...
contrib/src/main.mak
View file @
54e435ee
...
@@ -105,10 +105,15 @@ CXX := $(HOST)-g++ --sysroot=$(ANDROID_NDK)/platforms/android-9/arch-arm
...
@@ -105,10 +105,15 @@ CXX := $(HOST)-g++ --sysroot=$(ANDROID_NDK)/platforms/android-9/arch-arm
ifdef
HAVE_NEON
ifdef
HAVE_NEON
ANDROID_ABI
=
armeabi-v7a
ANDROID_ABI
=
armeabi-v7a
ANDROID_CPU_FLAGS
=
-mfpu
=
neon
-mcpu
=
cortex-a8
ANDROID_CPU_FLAGS
=
-mfpu
=
neon
-mcpu
=
cortex-a8
else
ifdef
HAVE_TEGRA2
ANDROID_ABI
=
armeabi-v7a
ANDROID_CPU_FLAGS
=
-mfpu
=
vfpv3-d16
-mcpu
=
cortex-a9
else
else
ANDROID_ABI
=
armeabi
ANDROID_ABI
=
armeabi
ANDROID_CPU_FLAGS
=
-mcpu
=
arm1136jf-s
-mfpu
=
vfp
ANDROID_CPU_FLAGS
=
-mcpu
=
arm1136jf-s
-mfpu
=
vfp
endif
endif
endif
EXTRA_CFLAGS
+=
-D__STDC_VERSION__
=
199901L
-I
$(ANDROID_NDK)
/sources/cxx-stl/gnu-libstdc++/include
EXTRA_CFLAGS
+=
-D__STDC_VERSION__
=
199901L
-I
$(ANDROID_NDK)
/sources/cxx-stl/gnu-libstdc++/include
EXTRA_CFLAGS
+=
-I
$(ANDROID_NDK)
/sources/cxx-stl/gnu-libstdc++/libs/
$(ANDROID_ABI)
/include
EXTRA_CFLAGS
+=
-I
$(ANDROID_NDK)
/sources/cxx-stl/gnu-libstdc++/libs/
$(ANDROID_ABI)
/include
EXTRA_CFLAGS
+=
-mfloat-abi
=
softfp
$(ANDROID_CPU_FLAGS)
EXTRA_CFLAGS
+=
-mfloat-abi
=
softfp
$(ANDROID_CPU_FLAGS)
...
...
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