Add Android client to build.pl

This commit is contained in:
Brad Fitzpatrick 2011-02-03 17:40:53 -08:00
parent 1ca2787f26
commit c4c04e7550
3 changed files with 26 additions and 1 deletions

View File

@ -1,5 +1,5 @@
all:
./build.pl all
./build.pl allfast
clean:
./build.pl clean

View File

@ -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

View File

@ -0,0 +1,7 @@
all:
ant debug
# Dummy target to make build.pl happy
install:
ant debug