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
754b30a7
Commit
754b30a7
authored
Nov 21, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32/build.py: move class ZlibProject to build/zlib.py
parent
89d5d480
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
19 deletions
+23
-19
zlib.py
python/build/zlib.py
+22
-0
build.py
win32/build.py
+1
-19
No files found.
python/build/zlib.py
0 → 100644
View file @
754b30a7
import
subprocess
from
build.project
import
Project
class
ZlibProject
(
Project
):
def
__init__
(
self
,
url
,
md5
,
installed
,
**
kwargs
):
Project
.
__init__
(
self
,
url
,
md5
,
installed
,
**
kwargs
)
def
build
(
self
,
toolchain
):
src
=
self
.
unpack
(
toolchain
,
out_of_tree
=
False
)
subprocess
.
check_call
([
'/usr/bin/make'
,
'--quiet'
,
'-f'
,
'win32/Makefile.gcc'
,
'PREFIX='
+
toolchain
.
arch
+
'-'
,
'-j12'
,
'install'
,
'DESTDIR='
+
toolchain
.
install_prefix
+
'/'
,
'INCLUDE_PATH=include'
,
'LIBRARY_PATH=lib'
,
'BINARY_PATH=bin'
,
'SHARED_MODE=1'
],
cwd
=
src
,
env
=
toolchain
.
env
)
win32/build.py
View file @
754b30a7
...
...
@@ -62,29 +62,11 @@ class CrossGccToolchain:
self
.
env
[
'PKG_CONFIG_LIBDIR'
]
=
os
.
path
.
join
(
install_prefix
,
'lib/pkgconfig'
)
from
build.project
import
Project
from
build.zlib
import
ZlibProject
from
build.autotools
import
AutotoolsProject
from
build.ffmpeg
import
FfmpegProject
from
build.boost
import
BoostProject
class
ZlibProject
(
Project
):
def
__init__
(
self
,
url
,
md5
,
installed
,
**
kwargs
):
Project
.
__init__
(
self
,
url
,
md5
,
installed
,
**
kwargs
)
def
build
(
self
,
toolchain
):
src
=
self
.
unpack
(
toolchain
,
out_of_tree
=
False
)
subprocess
.
check_call
([
'/usr/bin/make'
,
'--quiet'
,
'-f'
,
'win32/Makefile.gcc'
,
'PREFIX='
+
toolchain
.
arch
+
'-'
,
'-j12'
,
'install'
,
'DESTDIR='
+
toolchain
.
install_prefix
+
'/'
,
'INCLUDE_PATH=include'
,
'LIBRARY_PATH=lib'
,
'BINARY_PATH=bin'
,
'SHARED_MODE=1'
],
cwd
=
src
,
env
=
toolchain
.
env
)
# a list of third-party libraries to be used by MPD on Android
thirdparty_libs
=
[
AutotoolsProject
(
...
...
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