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
ddcbb83a
Commit
ddcbb83a
authored
Oct 16, 2015
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to prepare.py that enables building the Python module.
parent
3f4ca9a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
prepare.py
prepare.py
+22
-1
cmake-builder
submodules/cmake-builder
+1
-1
No files found.
prepare.py
View file @
ddcbb83a
...
...
@@ -51,6 +51,21 @@ class DesktopTarget(prepare.Target):
current_path
+
'/submodules'
]
class
PythonTarget
(
prepare
.
Target
):
def
__init__
(
self
):
prepare
.
Target
.
__init__
(
self
,
''
)
current_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
if
platform
.
system
()
==
'Windows'
:
current_path
=
current_path
.
replace
(
'
\\
'
,
'/'
)
self
.
config_file
=
'configs/config-python.cmake'
if
platform
.
system
()
==
'Windows'
:
self
.
generator
=
'Visual Studio 9 2008'
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
):
...
...
@@ -133,6 +148,8 @@ def main(argv=None):
'-m'
,
'--minimal'
,
help
=
"Build a minimal version of Linphone."
,
action
=
'store_true'
)
argparser
.
add_argument
(
'-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
(
'-t'
,
'--tunnel'
,
help
=
"Enable Tunnel."
,
action
=
'store_true'
)
...
...
@@ -190,7 +207,11 @@ def main(argv=None):
# install_git_hook()
target
=
DesktopTarget
()
target
=
None
if
args
.
python
:
target
=
PythonTarget
()
else
:
target
=
DesktopTarget
()
if
args
.
clean
:
target
.
clean
()
if
os
.
path
.
isfile
(
'Makefile'
):
...
...
cmake-builder
@
a885fa9b
Subproject commit
d296e7f4856e64292b455ced96a175f2e99f7b2
4
Subproject commit
a885fa9bac938794dff4102d9ba913d1aa69c99
4
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