Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8c313705
Commit
8c313705
authored
Jan 12, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android/build.py: drop --sysroot, -isystem, -L, ...
These appear to be no longer necessary (tested with NDK r20b). Closes
https://github.com/android/ndk/issues/951
parent
2306b0d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
build.py
android/build.py
+6
-19
No files found.
android/build.py
View file @
8c313705
...
...
@@ -75,20 +75,14 @@ class AndroidNdkToolchain:
ndk_arch
=
abi_info
[
'ndk_arch'
]
android_api_level
=
'21'
ndk_platform
=
'android-'
+
android_api_level
# select the NDK compiler
gcc_version
=
'4.9'
ndk_platform_path
=
os
.
path
.
join
(
ndk_path
,
'platforms'
,
ndk_platform
)
sysroot
=
os
.
path
.
join
(
ndk_path
,
'sysroot'
)
target_root
=
os
.
path
.
join
(
ndk_platform_path
,
'arch-'
+
ndk_arch
)
install_prefix
=
os
.
path
.
join
(
arch_path
,
'root'
)
self
.
arch
=
arch
self
.
install_prefix
=
install_prefix
self
.
sysroot
=
sysroot
toolchain_path
=
os
.
path
.
join
(
ndk_path
,
'toolchains'
,
abi_info
[
'toolchain_arch'
]
+
'-'
+
gcc_version
,
'prebuilt'
,
build_arch
)
llvm_path
=
os
.
path
.
join
(
ndk_path
,
'toolchains'
,
'llvm'
,
'prebuilt'
,
build_arch
)
...
...
@@ -113,14 +107,10 @@ class AndroidNdkToolchain:
self
.
cflags
=
common_flags
self
.
cxxflags
=
common_flags
self
.
cppflags
=
'--sysroot='
+
sysroot
+
\
' -isystem '
+
os
.
path
.
join
(
install_prefix
,
'include'
)
+
\
' -isystem '
+
os
.
path
.
join
(
sysroot
,
'usr'
,
'include'
,
arch
)
self
.
ldflags
=
'--sysroot='
+
sysroot
+
\
' -L'
+
os
.
path
.
join
(
install_prefix
,
'lib'
)
+
\
' -L'
+
os
.
path
.
join
(
target_root
,
'usr'
,
'lib'
)
+
\
' -B'
+
os
.
path
.
join
(
target_root
,
'usr'
,
'lib'
)
+
\
self
.
cppflags
=
' -isystem '
+
os
.
path
.
join
(
install_prefix
,
'include'
)
self
.
ldflags
=
' -L'
+
os
.
path
.
join
(
install_prefix
,
'lib'
)
+
\
' '
+
common_flags
self
.
ldflags
=
common_flags
self
.
libs
=
''
self
.
is_arm
=
ndk_arch
==
'arm'
...
...
@@ -128,13 +118,10 @@ class AndroidNdkToolchain:
self
.
is_aarch64
=
ndk_arch
==
'arm64'
self
.
is_windows
=
False
libcxx_path
=
os
.
path
.
join
(
ndk_path
,
'sources/cxx-stl/llvm-libc++'
)
libcxx_libs_path
=
os
.
path
.
join
(
libcxx_path
,
'libs'
,
android_abi
)
libstdcxx_flags
=
''
libstdcxx_cxxflags
=
libstdcxx_flags
+
' -isystem '
+
os
.
path
.
join
(
libcxx_path
,
'include'
)
+
' -isystem '
+
os
.
path
.
join
(
ndk_path
,
'sources/android/support/include'
)
libstdcxx_ldflags
=
libstdcxx_flags
+
' -L'
+
libcxx_libs_path
libstdcxx_libs
=
'-
lc++_static -lc++abi
'
libstdcxx_cxxflags
=
''
libstdcxx_ldflags
=
''
libstdcxx_libs
=
'-
static-libstdc++
'
if
self
.
is_armv7
:
# On 32 bit ARM, clang generates no ".eh_frame" section;
...
...
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