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
c1144247
Commit
c1144247
authored
Oct 15, 2015
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean Makefile generated by prepare.py.
parent
fc4a068f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
58 deletions
+11
-58
prepare.py
prepare.py
+11
-58
No files found.
prepare.py
View file @
c1144247
...
...
@@ -71,64 +71,19 @@ def check_tools():
return
ret
def
generate_makefile
(
generator
):
packages
=
os
.
listdir
(
'WORK/Build'
)
packages
.
sort
()
makefile
=
"""
packages={packages}
.PHONY: all
build:
\t
@for package in $(packages); do
\\
\t\t
$(MAKE) build-$$package;
\\
\t
done
clean:
\t
@for package in $(packages); do
\\
\t\t
$(MAKE) clean-$$package;
\\
\t
done
veryclean:
\t
@for package in $(packages); do
\\
\t\t
$(MAKE) veryclean-$$package;
\\
\t
done
build-
%
: package-in-list-
%
\t
echo "==== starting build of $* ====";
\\
\t
rm -f WORK/Stamp/EP_$*/EP_$*-update;
\\
\t
{generator} WORK/cmake EP_$*
clean-
%
: package-in-list-
%
\t
echo "==== starting clean of $* ====";
\\
\t
{generator} WORK/Build/$* clean;
\\
\t
rm -f WORK/Stamp/EP_$*/EP_$*-build;
\\
\t
rm -f WORK/Stamp/EP_$*/EP_$*-install;
veryclean-
%
: package-in-list-
%
\t
echo "==== starting veryclean of $* ====";
\\
\t
test -f WORK/Build/$*/install_manifest.txt &&
\\
\t
cat WORK/Build/$*/install_manifest.txt | xargs rm;
\\
\t
rm -rf WORK/Build/$*/*;
\\
\t
rm -f WORK/Stamp/EP_$*/*;
\\
\t
echo "Run 'make build-$*' to rebuild $* correctly.";
all: build
\t
{generator} WORK/cmake
all-
%
:
\t
@for package in $(packages); do
\\
\t\t
rm -f WORK/ios-$*/Stamp/EP_$$package/EP_$$package-update;
\\
\t
done
\t
{generator} WORK/ios-$*/cmake
WORK/build.done:
\t
{generator} WORK/cmake && touch WORK/build.done
package-in-list-
%
:
\t
if ! echo " $(packages) " | grep -q " $* "; then
\\
\t\t
echo "$* not in list of available packages: $(packages)";
\\
\t\t
exit 3;
\\
\t
fi
dev: WORK/build.done
\t
{generator} WORK/Build/linphone_builder install
build:$(addprefix build-,$(packages))
clean: $(addprefix clean-,$(packages))
veryclean: $(addprefix veryclean-,$(packages))
all: build
pull-transifex:
\t
$(MAKE) -C linphone pull-transifex
...
...
@@ -144,16 +99,12 @@ help: help-prepare-options
\t
@echo ""
\t
@echo "(please read the README.md file first)"
\t
@echo ""
\t
@echo "Available packages: {packages}"
\t
@echo ""
\t
@echo "Available targets:"
\t
@echo ""
\t
@echo " * all : builds all packages"
\t
@echo " * build-[package] : builds a package"
\t
@echo " * clean-[package] : clean the package compilation residuals"
\t
@echo " * veryclean-[package] : remove anything related to the package"
\t
@echo " * all, build : normal build"
\t
@echo " * dev : build only linphone related source code (used for development)"
\t
@echo ""
"""
.
format
(
options
=
' '
.
join
(
sys
.
argv
),
packages
=
' '
.
join
(
packages
),
generator
=
generator
)
"""
.
format
(
options
=
' '
.
join
(
sys
.
argv
),
generator
=
generator
)
f
=
open
(
'Makefile'
,
'w'
)
f
.
write
(
makefile
)
f
.
close
()
...
...
@@ -256,8 +207,10 @@ def main(argv=None):
if
not
check_is_installed
(
"ninja"
,
"it"
):
return
1
generate_makefile
(
'ninja -C'
)
print
(
"You can now run 'make' to build."
)
elif
args
.
generator
==
"Unix Makefiles"
:
generate_makefile
(
'$(MAKE) -C'
)
print
(
"You can now run 'make' to build."
)
elif
args
.
generator
==
"Xcode"
:
print
(
"You can now open Xcode project with: open WORK/cmake/Project.xcodeproj"
)
else
:
...
...
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