Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
1c41a13a
Commit
1c41a13a
authored
Oct 19, 2015
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to prepare.py to build Python module for Raspeberry PI.
parent
214881cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
prepare.py
prepare.py
+16
-0
No files found.
prepare.py
View file @
1c41a13a
...
...
@@ -66,6 +66,18 @@ class PythonTarget(prepare.Target):
current_path
+
'/submodules'
]
class
PythonRaspberryTarget
(
prepare
.
Target
):
def
__init__
(
self
):
prepare
.
Target
.
__init__
(
self
,
''
)
self
.
required_build_platforms
=
[
'Linux'
]
self
.
config_file
=
'configs/config-python-raspberry.cmake'
self
.
toolchain_file
=
'toolchains/toolchain-raspberry.cmake'
self
.
additional_args
=
[
'-DLINPHONE_BUILDER_EXTERNAL_SOURCE_PATH='
+
current_path
+
'/submodules'
]
def
check_is_installed
(
binary
,
prog
=
None
,
warn
=
True
):
if
not
find_executable
(
binary
):
...
...
@@ -150,6 +162,8 @@ def main(argv=None):
'-os'
,
'--only-submodules'
,
help
=
"Build only submodules (finding all dependencies on the system."
,
action
=
'store_true'
)
argparser
.
add_argument
(
'--python'
,
help
=
"Build Python module instead of desktop application."
,
action
=
'store_true'
)
argparser
.
add_argument
(
'--python-raspberry'
,
help
=
"Build Python module for raspberry pi instead of desktop application."
,
action
=
'store_true'
)
argparser
.
add_argument
(
'-t'
,
'--tunnel'
,
help
=
"Enable Tunnel."
,
action
=
'store_true'
)
...
...
@@ -210,6 +224,8 @@ def main(argv=None):
target
=
None
if
args
.
python
:
target
=
PythonTarget
()
elif
args
.
python_raspberry
:
target
=
PythonRaspberryTarget
()
else
:
target
=
DesktopTarget
()
if
args
.
clean
:
...
...
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