Subversion Repositories DevTools

Rev

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

Rev 6177 Rev 6353
Line 186... Line 186...
186
#
186
#
187
# Returns         : Nothing
187
# Returns         : Nothing
188
#
188
#
189
sub ToolsetPROJECTPreBuild
189
sub ToolsetPROJECTPreBuild
190
{
190
{
191
    my( $name, $androidxml ,$pArgs, $auto_test, $unit_test, $pGenerated ) = @_;
191
    my( $name, $androidxml ,$pArgs, $auto_test, $unit_test, $pGenerated, $project ) = @_;
-
 
192
 
-
 
193
    #
-
 
194
    #   Determine the populate mode
-
 
195
    #   Used to limit the shared libraries that are included
-
 
196
    #   In populate mode may have both -tD and -tP
-
 
197
    #       Need -tD last for backward compatability
-
 
198
    #
-
 
199
    my @tArgs;
-
 
200
    if (exists $project->{Prod} && $project->{Prod}) {
-
 
201
        push @tArgs, '-t=P';
-
 
202
    } elsif (exists $project->{Debug} && $project->{Debug}) {
-
 
203
        push @tArgs, '-t=D';
-
 
204
    } else {
-
 
205
        push @tArgs, '-t=P', '-t=D';
-
 
206
    }
192
 
207
 
193
    #
208
    #
194
    #   Invoke the androidBuilder in a mode so that it will populate the Eclipse project
209
    #   Invoke the androidBuilder in a mode so that it will populate the Eclipse project
195
    #   in a suitable manner.
210
    #   in a suitable manner.
196
    #
211
    #
197
    #   In the build phase there is no 'debug' or 'production' phase
-
 
198
    #   Assume debug - if it needs to be determined
-
 
199
    #
-
 
200
 
-
 
201
    EnvImport( "GBE_PERL" );
212
    EnvImport( "GBE_PERL" );
202
    System ( '--NoShell', '--Exit', $::GBE_PERL, $androidBuilder, 
213
    System ( '--NoShell', '--Exit', $::GBE_PERL, $androidBuilder, 
203
             '-f', $androidxml,
214
             '-f', $androidxml,
204
             '-i', catdir( $::ScmRoot, $::ScmInterface),
215
             '-i', catdir( $::ScmRoot, $::ScmInterface),
205
             '-t', 'D',
216
             @tArgs,
206
             '-pn', $::Pbase,
217
             '-pn', $::Pbase,
207
             '-pv', $::ScmBuildVersionFull,
218
             '-pv', $::ScmBuildVersionFull,
208
             '-populate',
219
             '-populate',
209
             @{$pArgs}
220
             @{$pArgs}
210
           );
221
           );