Subversion Repositories DevTools

Rev

Rev 4836 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4836 Rev 4837
Line 47... Line 47...
47
our $NoPackageError         = 0;
47
our $NoPackageError         = 0;
48
our $ForceBuildPkg          = 0;
48
our $ForceBuildPkg          = 0;
49
our $Srcdir                 = "";               # default source root
49
our $Srcdir                 = "";               # default source root
50
our $ForceBuild             = 1;
50
our $ForceBuild             = 1;
51
our $IgnorePkgs             = 0;
51
our $IgnorePkgs             = 0;
-
 
52
our $GenericBuild           = undef;            # Build System Generic Build Test
52
 
53
 
53
#.. Public symbols, referenced by many build.pl implementations
54
#.. Public symbols, referenced by many build.pl implementations
54
#
55
#
55
our $BUILDPREVIOUSVERSION   = "0.0.0";          # BuildPreviousVersion()
56
our $BUILDPREVIOUSVERSION   = "0.0.0";          # BuildPreviousVersion()
56
our @BUILDPLATFORMS         = ();               # BuildPlatforms()
57
our @BUILDPLATFORMS         = ();               # BuildPlatforms()
Line 158... Line 159...
158
                             "cache:+"       => \$Cache,
159
                             "cache:+"       => \$Cache,
159
                             "package"       => \$NoPackageError,
160
                             "package"       => \$NoPackageError,
160
                             "nopackages"    => \$IgnorePkgs,
161
                             "nopackages"    => \$IgnorePkgs,
161
                             "forcebuildpkg" => \$ForceBuildPkg,
162
                             "forcebuildpkg" => \$ForceBuildPkg,
162
                             "force!"        => \$ForceBuild,
163
                             "force!"        => \$ForceBuild,
-
 
164
                             "generic!"      => \$GenericBuild,
163
                             );
165
                             );
164
    Usage() if ( $opt_help || !$result );
166
    Usage() if ( $opt_help || !$result );
165
 
167
 
166
    Debug( "Host:          ", $ScmHost );
168
    Debug( "Host:          ", $ScmHost );
167
    Debug( "Cwd:           ", $Cwd );
169
    Debug( "Cwd:           ", $Cwd );
Line 174... Line 176...
174
    Debug( "Nolog:         ", $Nolog );
176
    Debug( "Nolog:         ", $Nolog );
175
    Debug( "Cache:         ", $Cache );
177
    Debug( "Cache:         ", $Cache );
176
    Debug( "package:       ", $NoPackageError );
178
    Debug( "package:       ", $NoPackageError );
177
    Debug( "ForcePkg  :    ", $ForceBuildPkg );
179
    Debug( "ForcePkg  :    ", $ForceBuildPkg );
178
    Debug( "ForceBuild :   ", $ForceBuild );
180
    Debug( "ForceBuild :   ", $ForceBuild );
179
    Debug( "$IgnorePkgs :  ", $IgnorePkgs );
181
    Debug( "IgnorePkgs :   ", $IgnorePkgs );
-
 
182
    Debug( "GenericTest :  ", $GenericBuild );
180
 
183
 
181
#.. Command
184
#.. Command
182
#
185
#
183
 
186
 
184
    $CmdSwitch = (lc shift @ARGV) if @ARGV;
187
    $CmdSwitch = (lc shift @ARGV) if @ARGV;
Line 1322... Line 1325...
1322
            Verbose("Generic:", @GENERIC_TARGETS);
1325
            Verbose("Generic:", @GENERIC_TARGETS);
1323
            Error("Cannot mix GENERIC and non-GENERIC targets in the one build");
1326
            Error("Cannot mix GENERIC and non-GENERIC targets in the one build");
1324
        }
1327
        }
1325
    }
1328
    }
1326
 
1329
 
-
 
1330
    #
-
 
1331
    #   Build System Generic Saniy Test
-
 
1332
    #       If Generic   then MUST be a GENERIC build
-
 
1333
    #       If NoGeneric then MUST not be a GENERIC build
-
 
1334
    #
-
 
1335
    if (defined $GenericBuild)
-
 
1336
    {
-
 
1337
        if ( scalar(@GENERIC_TARGETS) ne $GenericBuild)
-
 
1338
        {
-
 
1339
            Error("Generic build inconsistency",
-
 
1340
                  "Release Manager entry indicates: $GenericBuild",
-
 
1341
                  "Build File indicates: " . scalar(@GENERIC_TARGETS)
-
 
1342
                  );
-
 
1343
        }
-
 
1344
    }
-
 
1345
 
1327
    unless( @BUILD_ACTIVEPLATFORMS )
1346
    unless( @BUILD_ACTIVEPLATFORMS )
1328
    {
1347
    {
1329
        if (defined($::GBE_ABT)) {
1348
        if (defined($::GBE_ABT)) {
1330
 
1349
 
1331
            # Build filter on this machine prevents the package building
1350
            # Build filter on this machine prevents the package building
Line 4055... Line 4074...
4055
    -forcebuildpkg - Treat LinkPkgArchive directives as BuildPkgArchive
4074
    -forcebuildpkg - Treat LinkPkgArchive directives as BuildPkgArchive
4056
                     Also suppress the use of symlinks so that the physical
4075
                     Also suppress the use of symlinks so that the physical
4057
                     file will be copied locally.
4076
                     file will be copied locally.
4058
    -[no]force     - Force build even if build.pl is not newer
4077
    -[no]force     - Force build even if build.pl is not newer
4059
                     Default: -force
4078
                     Default: -force
-
 
4079
    -[no]generic   - Build system sanity test
-
 
4080
                     Default: Do not test
4060
 
4081
 
4061
 Sticky settings:
4082
 Sticky settings:
4062
    -all           - Build for all platforms ignoring GBE_BUILDFILTER
4083
    -all           - Build for all platforms ignoring GBE_BUILDFILTER
4063
    -expert[=n]    - Relaxing dependency checks on the user makefiles
4084
    -expert[=n]    - Relaxing dependency checks on the user makefiles
4064
 
4085
 
Line 4158... Line 4179...
4158
The '-noforce' option will only perform a build, if the build.pl file
4179
The '-noforce' option will only perform a build, if the build.pl file
4159
has been modified, or the buildfilter has changed, since the last build.
4180
has been modified, or the buildfilter has changed, since the last build.
4160
 
4181
 
4161
The default operation will always force a build.
4182
The default operation will always force a build.
4162
 
4183
 
-
 
4184
=item B<-[no]generic>
-
 
4185
 
-
 
4186
If used, this option will perform a sanity test on the build type. If set to 
-
 
4187
Generic then the build must be a GENERIC build. If set to noGeneric then the build
-
 
4188
must not be a GENERIC build.
-
 
4189
 
-
 
4190
The default is to not perform the test.
-
 
4191
 
-
 
4192
This option is intended to be used by the automated build system.
-
 
4193
 
4163
=item B<-all>
4194
=item B<-all>
4164
 
4195
 
4165
This option will cause the build process to generate makefiles for all
4196
This option will cause the build process to generate makefiles for all
4166
possible build targets ignoring the use of GBE_BUILDFILTER.
4197
possible build targets ignoring the use of GBE_BUILDFILTER.
4167
 
4198