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
641c03f7
Commit
641c03f7
authored
May 30, 2016
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more cleaning in prepare.py.
parent
09a2996a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
29 deletions
+7
-29
prepare.py
prepare.py
+6
-28
cmake-builder
submodules/cmake-builder
+1
-1
No files found.
prepare.py
View file @
641c03f7
...
...
@@ -42,7 +42,7 @@ except Exception as e:
class
DesktopTarget
(
prepare
.
Target
):
def
__init__
(
self
,
group_builders
=
False
):
super
(
DesktopTarget
,
self
)
.
__init__
(
'desktop'
)
prepare
.
Target
.
__init__
(
self
,
'desktop'
)
current_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
self
.
config_file
=
'configs/config-desktop.cmake'
self
.
output
=
'OUTPUT/'
+
self
.
name
...
...
@@ -54,7 +54,7 @@ class DesktopTarget(prepare.Target):
class
PythonTarget
(
prepare
.
Target
):
def
__init__
(
self
):
super
(
PythonTarget
,
self
)
.
__init__
(
'python'
)
prepare
.
Target
.
__init__
(
self
,
'python'
)
current_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
self
.
config_file
=
'configs/config-python.cmake'
self
.
output
=
'OUTPUT/'
+
self
.
name
...
...
@@ -66,7 +66,7 @@ class PythonTarget(prepare.Target):
class
PythonRaspberryTarget
(
prepare
.
Target
):
def
__init__
(
self
):
super
(
PythonRaspberryTarget
,
self
)
.
__init__
(
'python-raspberry'
)
prepare
.
Target
.
__init__
(
self
,
'python-raspberry'
)
current_path
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
self
.
required_build_platforms
=
[
'Linux'
]
self
.
config_file
=
'configs/config-python-raspberry.cmake'
...
...
@@ -85,14 +85,14 @@ desktop_targets = {
class
DesktopPreparator
(
prepare
.
Preparator
):
def
__init__
(
self
,
targets
=
desktop_targets
,
default_targets
=
[
'desktop'
]):
super
(
DesktopPreparator
,
self
)
.
__init__
(
targets
,
default_targets
)
prepare
.
Preparator
.
__init__
(
self
,
targets
,
default_targets
)
self
.
veryclean
=
True
self
.
argparser
.
add_argument
(
'-ac'
,
'--all-codecs'
,
help
=
"Enable all codecs, including the non-free ones"
,
action
=
'store_true'
)
self
.
argparser
.
add_argument
(
'-sys'
,
'--use-system-dependencies'
,
help
=
"Find dependencies on the system."
,
action
=
'store_true'
)
self
.
argparser
.
add_argument
(
'-p'
,
'--package'
,
help
=
"Build an installation package (only on Mac OSX and Windows)."
,
action
=
'store_true'
)
def
parse_args
(
self
):
super
(
DesktopPreparator
,
self
)
.
parse_args
(
)
prepare
.
Preparator
.
parse_args
(
self
)
if
self
.
args
.
use_system_dependencies
:
self
.
additional_args
+=
[
"-DLINPHONE_BUILDER_USE_SYSTEM_DEPENDENCIES=YES"
]
...
...
@@ -123,7 +123,7 @@ class DesktopPreparator(prepare.Preparator):
self
.
additional_args
+=
[
"-DENABLE_RELATIVE_PREFIX=YES"
]
def
clean
(
self
):
super
(
DesktopPreparator
,
self
)
.
clean
(
)
prepare
.
Preparator
.
clean
(
self
)
if
os
.
path
.
isfile
(
'Makefile'
):
os
.
remove
(
'Makefile'
)
if
os
.
path
.
isdir
(
'WORK'
)
and
not
os
.
listdir
(
'WORK'
):
...
...
@@ -131,28 +131,6 @@ class DesktopPreparator(prepare.Preparator):
if
os
.
path
.
isdir
(
'OUTPUT'
)
and
not
os
.
listdir
(
'OUTPUT'
):
os
.
rmdir
(
'OUTPUT'
)
def
prepare
(
self
):
retcode
=
super
(
DesktopPreparator
,
self
)
.
prepare
()
if
retcode
!=
0
:
if
retcode
==
51
:
if
os
.
path
.
isfile
(
'Makefile'
):
Popen
(
"make help-prepare-options"
.
split
(
" "
))
retcode
=
0
return
retcode
# Only generated makefile if we are using Ninja or Makefile
if
self
.
generator
()
.
endswith
(
'Ninja'
):
if
not
check_is_installed
(
"ninja"
,
"it"
):
return
1
self
.
generate_makefile
(
'ninja -C'
)
info
(
"You can now run 'make' to build."
)
elif
self
.
generator
()
.
endswith
(
"Unix Makefiles"
):
self
.
generate_makefile
(
'$(MAKE) -C'
)
info
(
"You can now run 'make' to build."
)
elif
self
.
generator
()
==
"Xcode"
:
info
(
"You can now open Xcode project with: open WORK/cmake/Project.xcodeproj"
)
else
:
warning
(
"Not generating meta-makefile for generator {}."
.
format
(
self
.
generator
))
def
generate_makefile
(
self
,
generator
):
targets
=
self
.
args
.
target
targets_str
=
""
...
...
cmake-builder
@
852b8d37
Subproject commit
2a48a5ebfacd10ac2a8b705843cda7539e53f113
Subproject commit
852b8d37ff836e70313afb5b721ebd90977b82fe
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