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
a64ffda6
Commit
a64ffda6
authored
Dec 17, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
{win32,android}/build.py: add the host triple to the lib paths
Allow multiple targets to share a library directory tree.
parent
8400da99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
build.py
android/build.py
+13
-12
build.py
win32/build.py
+5
-3
No files found.
android/build.py
View file @
a64ffda6
...
...
@@ -22,6 +22,16 @@ if not os.path.isdir(ndk_path):
print
(
"NDK not found in"
,
ndk_path
,
file
=
sys
.
stderr
)
sys
.
exit
(
1
)
# select the NDK target
ndk_arch
=
'arm'
host_arch
=
'arm-linux-androideabi'
android_abi
=
'armeabi-v7a'
ndk_platform
=
'android-14'
# select the NDK compiler
gcc_version
=
'4.9'
llvm_version
=
'3.5'
# the path to the MPD sources
mpd_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]))
...
...
@@ -29,8 +39,9 @@ mpd_path = os.path.dirname(os.path.dirname(sys.argv[0]))
lib_path
=
os
.
path
.
abspath
(
'lib'
)
tarball_path
=
lib_path
src_path
=
os
.
path
.
join
(
lib_path
,
'src'
)
build_path
=
os
.
path
.
join
(
lib_path
,
'build'
)
root_path
=
os
.
path
.
join
(
lib_path
,
'root'
)
arch_path
=
os
.
path
.
join
(
lib_path
,
host_arch
)
build_path
=
os
.
path
.
join
(
arch_path
,
'build'
)
root_path
=
os
.
path
.
join
(
arch_path
,
'root'
)
# build host configuration
build_arch
=
'linux-x86_64'
...
...
@@ -39,16 +50,6 @@ build_arch = 'linux-x86_64'
# one on the build host
os
.
environ
[
'PKG_CONFIG_LIBDIR'
]
=
os
.
path
.
join
(
root_path
,
'lib/pkgconfig'
)
# select the NDK compiler
gcc_version
=
'4.9'
llvm_version
=
'3.5'
# select the NDK target
ndk_arch
=
'arm'
host_arch
=
'arm-linux-androideabi'
android_abi
=
'armeabi-v7a'
ndk_platform
=
'android-14'
# set up the NDK toolchain
gcc_toolchain
=
os
.
path
.
join
(
ndk_path
,
'toolchains'
,
host_arch
+
'-'
+
gcc_version
,
'prebuilt'
,
build_arch
)
...
...
win32/build.py
View file @
a64ffda6
...
...
@@ -8,6 +8,8 @@ import re
configure_args
=
sys
.
argv
[
1
:]
host_arch
=
'i686-w64-mingw32'
# the path to the MPD sources
mpd_path
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]))
...
...
@@ -15,14 +17,14 @@ mpd_path = os.path.dirname(os.path.dirname(sys.argv[0]))
lib_path
=
os
.
path
.
abspath
(
'lib'
)
tarball_path
=
lib_path
src_path
=
os
.
path
.
join
(
lib_path
,
'src'
)
build_path
=
os
.
path
.
join
(
lib_path
,
'build'
)
root_path
=
os
.
path
.
join
(
lib_path
,
'root'
)
arch_path
=
os
.
path
.
join
(
lib_path
,
host_arch
)
build_path
=
os
.
path
.
join
(
arch_path
,
'build'
)
root_path
=
os
.
path
.
join
(
arch_path
,
'root'
)
# redirect pkg-config to use our root directory instead of the default
# one on the build host
os
.
environ
[
'PKG_CONFIG_LIBDIR'
]
=
os
.
path
.
join
(
root_path
,
'lib/pkgconfig'
)
host_arch
=
'i686-w64-mingw32'
gcc_toolchain
=
'/usr'
def
select_toolchain
():
...
...
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