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
89bf4c5f
Commit
89bf4c5f
authored
Oct 14, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python/build/meson.py: move two functions to the top level
parent
f80ebf68
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
meson.py
python/build/meson.py
+15
-12
No files found.
python/build/meson.py
View file @
89bf4c5f
...
...
@@ -2,13 +2,7 @@ import os.path, subprocess, sys
from
build.project
import
Project
class
MesonProject
(
Project
):
def
__init__
(
self
,
url
,
md5
,
installed
,
configure_args
=
[],
**
kwargs
):
Project
.
__init__
(
self
,
url
,
md5
,
installed
,
**
kwargs
)
self
.
configure_args
=
configure_args
def
_make_cross_file
(
self
,
toolchain
):
def
make_cross_file
(
toolchain
):
if
toolchain
.
is_windows
:
system
=
'windows'
else
:
...
...
@@ -71,10 +65,8 @@ endian = '%s'
system
,
cpu_family
,
cpu
,
endian
))
return
path
def
configure
(
self
,
toolchain
):
src
=
self
.
unpack
(
toolchain
)
cross_file
=
self
.
_make_cross_file
(
toolchain
)
build
=
self
.
make_build_path
(
toolchain
)
def
configure
(
toolchain
,
src
,
build
,
args
=
()):
cross_file
=
make_cross_file
(
toolchain
)
configure
=
[
'meson'
,
src
,
build
,
...
...
@@ -91,9 +83,20 @@ endian = '%s'
'--default-library=static'
,
'--cross-file'
,
cross_file
,
]
+
self
.
configure_
args
]
+
args
subprocess
.
check_call
(
configure
,
env
=
toolchain
.
env
)
class
MesonProject
(
Project
):
def
__init__
(
self
,
url
,
md5
,
installed
,
configure_args
=
[],
**
kwargs
):
Project
.
__init__
(
self
,
url
,
md5
,
installed
,
**
kwargs
)
self
.
configure_args
=
configure_args
def
configure
(
self
,
toolchain
):
src
=
self
.
unpack
(
toolchain
)
build
=
self
.
make_build_path
(
toolchain
)
configure
(
toolchain
,
src
,
build
,
self
.
configure_args
)
return
build
def
build
(
self
,
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