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
1d626cb6
Commit
1d626cb6
authored
Jun 21, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android/build.py: add Boost
parent
580346f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
build.py
android/build.py
+34
-1
No files found.
android/build.py
View file @
1d626cb6
#!/usr/bin/env python3
#!/usr/bin/env python3
import
os.path
import
os
,
os
.
path
import
sys
,
shutil
,
subprocess
import
sys
,
shutil
,
subprocess
import
urllib.request
import
urllib.request
import
hashlib
import
hashlib
...
@@ -262,6 +262,33 @@ class FfmpegProject(Project):
...
@@ -262,6 +262,33 @@ class FfmpegProject(Project):
subprocess
.
check_call
([
'/usr/bin/make'
,
'--quiet'
,
'-j12'
],
cwd
=
build
)
subprocess
.
check_call
([
'/usr/bin/make'
,
'--quiet'
,
'-j12'
],
cwd
=
build
)
subprocess
.
check_call
([
'/usr/bin/make'
,
'--quiet'
,
'install'
],
cwd
=
build
)
subprocess
.
check_call
([
'/usr/bin/make'
,
'--quiet'
,
'install'
],
cwd
=
build
)
class
BoostProject
(
Project
):
def
__init__
(
self
,
url
,
md5
,
installed
,
**
kwargs
):
m
=
re
.
match
(
r'.*/boost_(\d+)_(\d+)_(\d+)\.tar\.bz2$'
,
url
)
version
=
"
%
s.
%
s.
%
s"
%
(
m
.
group
(
1
),
m
.
group
(
2
),
m
.
group
(
3
))
Project
.
__init__
(
self
,
url
,
md5
,
installed
,
name
=
'boost'
,
version
=
version
,
**
kwargs
)
def
build
(
self
):
src
=
self
.
unpack
()
# install the headers manually; don't build any library
# (because right now, we only use header-only libraries)
includedir
=
os
.
path
.
join
(
root_path
,
'include'
)
for
dirpath
,
dirnames
,
filenames
in
os
.
walk
(
os
.
path
.
join
(
src
,
'boost'
)):
relpath
=
dirpath
[
len
(
src
)
+
1
:]
destdir
=
os
.
path
.
join
(
includedir
,
relpath
)
try
:
os
.
mkdir
(
destdir
)
except
:
pass
for
name
in
filenames
:
if
name
[
-
4
:]
==
'.hpp'
:
shutil
.
copyfile
(
os
.
path
.
join
(
dirpath
,
name
),
os
.
path
.
join
(
destdir
,
name
))
# a list of third-party libraries to be used by MPD on Android
# a list of third-party libraries to be used by MPD on Android
thirdparty_libs
=
[
thirdparty_libs
=
[
AutotoolsProject
(
AutotoolsProject
(
...
@@ -359,6 +386,12 @@ thirdparty_libs = [
...
@@ -359,6 +386,12 @@ thirdparty_libs = [
],
],
use_clang
=
True
,
use_clang
=
True
,
),
),
BoostProject
(
'http://netcologne.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2'
,
'd6eef4b4cacb2183f2bf265a5a03a354'
,
'include/boost/version.hpp'
,
),
]
]
# build the third-party libraries
# build the third-party libraries
...
...
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