mirror of https://github.com/perkeep/perkeep.git
Add Android client to build.pl
This commit is contained in:
parent
1ca2787f26
commit
c4c04e7550
18
build.pl
18
build.pl
|
@ -39,6 +39,7 @@ sub usage {
|
|||
die <<EOM
|
||||
Usage:
|
||||
build.pl all # build all
|
||||
build.pl allfast # build all targets that compile quickly
|
||||
build.pl clean # clean all
|
||||
build.pl REGEXP # builds specific target, if it matches any targets
|
||||
build.pl --list
|
||||
|
@ -81,6 +82,13 @@ if ($target eq "clean") {
|
|||
exit;
|
||||
}
|
||||
|
||||
if ($target eq "allfast") {
|
||||
foreach my $target (sort grep { !$targets{$_}{tags}{not_in_all} } keys %targets) {
|
||||
build($target);
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($target eq "all") {
|
||||
foreach my $target (sort keys %targets) {
|
||||
build($target);
|
||||
|
@ -166,10 +174,18 @@ sub read_targets {
|
|||
$targets{$target} ||= { deps => [] };
|
||||
next;
|
||||
}
|
||||
s/\#.*//;
|
||||
if (m!^\s+\-\s(\S+)\s*$!) {
|
||||
my $dep = $1;
|
||||
my $t = $targets{$last} or die "Unexpected dependency line: $_";
|
||||
push @{$t->{deps}}, $dep;
|
||||
next;
|
||||
}
|
||||
if (m!^\s+\=\s*(\S+)\s*$!) {
|
||||
my $tag = $1;
|
||||
my $t = $targets{$last} or die "Unexpected dependency line: $_";
|
||||
$t->{tags}{$tag} = 1;
|
||||
next;
|
||||
}
|
||||
}
|
||||
#use Data::Dumper;
|
||||
|
@ -262,3 +278,5 @@ TARGET: lib/go/blobserver/handlers
|
|||
|
||||
TARGET: lib/go/httprange
|
||||
|
||||
TARGET: clients/android/uploader
|
||||
=not_in_all # too slow
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
all:
|
||||
ant debug
|
||||
|
||||
# Dummy target to make build.pl happy
|
||||
install:
|
||||
ant debug
|
||||
|
Loading…
Reference in New Issue