Subversion Repositories DevTools

Rev

Rev 7470 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7470 Rev 7530
Line 44... Line 44...
44
#                -Jar=name                  - Name of a Jar to include
44
#                -Jar=name                  - Name of a Jar to include
45
#                -Aar=name                  - Name of an Aar to include
45
#                -Aar=name                  - Name of an Aar to include
46
#                -lname                     - Name of a Jats library to include
46
#                -lname                     - Name of a Jats library to include
47
#                -Lname                     - Name of a 3rd party library to include
47
#                -Lname                     - Name of a 3rd party library to include
48
#                -gradleProps=file          - Gradle properties that will be appended to the gradle.properties
48
#                -gradleProps=file          - Gradle properties that will be appended to the gradle.properties
-
 
49
#                -AllPackages               - Provide metadata for all dependent packages
49
#
50
#
50
# Note: This function may be provided by several packages, 
51
# Note: This function may be provided by several packages, 
51
#       thus the interface must not change - this include the name of 
52
#       thus the interface must not change - this include the name of 
52
#       this file. See the AndroidBuilder package too.
53
#       this file. See the AndroidBuilder package too.
53
#
54
#
Line 92... Line 93...
92
my @opt_jlibs;                  # List of Jats Libraries
93
my @opt_jlibs;                  # List of Jats Libraries
93
my @opt_elibs;                  # List of 3rd party libraries
94
my @opt_elibs;                  # List of 3rd party libraries
94
my @opt_jars;                   # List of JARs
95
my @opt_jars;                   # List of JARs
95
my @opt_aars;                   # List of AARs
96
my @opt_aars;                   # List of AARs
96
my $opt_gprops;                 # Extra gradle props files
97
my $opt_gprops;                 # Extra gradle props files
-
 
98
my $opt_allPackages;            # Metadata for all packages
97
 
99
 
98
#
100
#
99
#   Configuration
101
#   Configuration
100
#   Map JATS platforms to Shared library targets
102
#   Map JATS platforms to Shared library targets
101
#       The key is a JATS name for the target
103
#       The key is a JATS name for the target
Line 155... Line 157...
155
                "autotest"      => \$opt_autotest,      # flag
157
                "autotest"      => \$opt_autotest,      # flag
156
                "hastests"      => \$opt_hastests,      # flag
158
                "hastests"      => \$opt_hastests,      # flag
157
                "Jar=s"         => \@opt_jars,
159
                "Jar=s"         => \@opt_jars,
158
                "Aar=s"         => \@opt_aars,
160
                "Aar=s"         => \@opt_aars,
159
                "GradleProps=s" => \$opt_gprops,
161
                "GradleProps=s" => \$opt_gprops,
-
 
162
                "allPackages"   => \$opt_allPackages,
160
                );
163
                );
161
 
164
 
162
#
165
#
163
#   Restore signal handlers and report parse errors
166
#   Restore signal handlers and report parse errors
164
#
167
#
Line 486... Line 489...
486
    foreach my $pkg (getPackageList())
489
    foreach my $pkg (getPackageList())
487
    {
490
    {
488
        my $base = $pkg->getBase(3);
491
        my $base = $pkg->getBase(3);
489
        if ($base)
492
        if ($base)
490
        {
493
        {
-
 
494
            if ($opt_allPackages) {
-
 
495
                $data->setProperty( $pkg->getUnifiedName('GBE_PKG_') , NicePath($base));
-
 
496
            }
-
 
497
 
491
            my $jarDir = catdir($base, 'jar');
498
            my $jarDir = catdir($base, 'jar');
492
            if (-d $jarDir )
499
            if (-d $jarDir )
493
            {
500
            {
494
                $data->setProperty( $pkg->getUnifiedName('GBE_REPO_') , NicePath($jarDir));
501
                $data->setProperty( $pkg->getUnifiedName('GBE_REPO_') , NicePath($jarDir));
495
            }
502
            }
Line 569... Line 576...
569
 
576
 
570
    my @jarSearch;              # Search paths - diagnostic display
577
    my @jarSearch;              # Search paths - diagnostic display
571
    my @aarSearch;
578
    my @aarSearch;
572
    my @libSearch;
579
    my @libSearch;
573
 
580
 
574
 
-
 
575
    #
581
    #
576
    #   Only if we need to do something
582
    #   Only if we need to do something
577
    #
583
    #
578
    return unless (@opt_jars || @opt_aars || @opt_elibs || @opt_jlibs);
584
    return unless (@opt_jars || @opt_aars || @opt_elibs || @opt_jlibs);
579
 
585