Subversion Repositories DevTools

Rev

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

Rev 4069 Rev 4270
Line 60... Line 60...
60
sub ShellBuild
60
sub ShellBuild
61
{
61
{
62
    my ($platforms, $script, @uargs) = @_;
62
    my ($platforms, $script, @uargs) = @_;
63
 
63
 
64
    return if ( ! ActivePlatform($platforms) );
64
    return if ( ! ActivePlatform($platforms) );
65
 
65
    
66
    #
66
    #
67
    #   Generate the files
67
    #   Generate the files
68
    #   Use standard JATS directive
68
    #   Use standard JATS directive
69
    #
69
    #
70
    Src('*', $script);
70
    Src('*', $script);
71
    GenerateFiles('*', '--Tool=shellbuild.sh',      # Tool to use
71
    GenerateFiles('*', '--Tool=shellbuild_linux.sh',# Tool to use
72
                  '-ShellBuild='.$script,           # User script
72
                  '-ShellBuild='.$script,           # User script
73
                  '--Var(BuildName)',               # Target Package
73
                  '--Var(BuildName)',               # Target Package
74
                  '--Var(BuildVersion)',            # Target Package Version
74
                  '--Var(BuildVersion)',            # Target Package Version
75
                  '--Var(Platform)',                # Target platform
75
                  '--Var(Platform)',                # Target platform
76
                  '--Var(Type)',                    # Build Type
76
                  '--Var(Type)',                    # Build Type
Line 128... Line 128...
128
    # Generate the files using ShellBuild()
128
    # Generate the files using ShellBuild()
129
    ShellBuild       ('*', $script, "-DebianPackage=$deb_dir", @uargs);
129
    ShellBuild       ('*', $script, "-DebianPackage=$deb_dir", @uargs);
130
    MakeDebianPackage('*', "--Script=$deb_build"  );
130
    MakeDebianPackage('*', "--Script=$deb_build"  );
131
}
131
}
132
 
132
 
-
 
133
#-------------------------------------------------------------------------------
-
 
134
# Function        : WindowsShellBuild
-
 
135
#
-
 
136
# Description     : Runs a build script intended for Windows rather than Linux.
-
 
137
#
-
 
138
# Inputs          : platform          - Standard Platform Specifier
-
 
139
#                   script            - The shell build script to launch.
-
 
140
#                   uargs             - User options
-
 
141
#
-
 
142
#                     -DownloadPkg=   - Name of the package that has been 
-
 
143
#                                       downloaded.  If empty the download package
-
 
144
#                                       is generated automatically.
-
 
145
#                     -CopyModsDir    - Specifies that 'mods' directories should
-
 
146
#                                       be copied rather than symlink
-
 
147
#                     -WorkDir=       - Name of the package work dir
-
 
148
#                                       Will override untar'ed dirname
-
 
149
#                     -WorkDirSuffix= - An additional suffix to add to the working 
-
 
150
#                                       directory.
-
 
151
#                     -ConfigVarient= - Sets the name of the package build 
-
 
152
#                                       configuration varient.  This can then 
-
 
153
#                                       be used in the call-out script as 
-
 
154
#                                       ${CONFIG_VARIENT}.
-
 
155
#
-
 
156
# Returns         : Nothing
-
 
157
#
-
 
158
sub WindowsShellBuild
-
 
159
{
-
 
160
    my ($platforms, $script, @uargs) = @_;
-
 
161
 
-
 
162
    return if ( ! ActivePlatform($platforms) );
-
 
163
    
-
 
164
    #
-
 
165
    #   Generate the files
-
 
166
    #   Use standard JATS directive
-
 
167
    #
-
 
168
    Src('*', $script);
-
 
169
    GenerateFiles('*', '--Tool=shellbuild_windows.pl',# Tool to use
-
 
170
                  '-ShellBuild='.$script,           # User script
-
 
171
                  '--Var(BuildName)',               # Target Package
-
 
172
                  '--Var(BuildVersion)',            # Target Package Version
-
 
173
                  '--Var(Platform)',                # Target platform
-
 
174
                  '--Var(Type)',                    # Build Type
-
 
175
                  '--Var(MachType)',                # Machine Type
-
 
176
                  '--Var(BuildRoot)',               # Build Root
-
 
177
                  '--Var(InterfaceDir)',            # Interface dir
-
 
178
                  '--Var(LocalDir)',                # Local dirs
-
 
179
                  '--Var(LocalIncDir)',
-
 
180
                  '--Var(LocalLibDir)',
-
 
181
                  '--Var(LocalBinDir)',
-
 
182
                  '--Var(BinDir)',                  # Binary output directory
-
 
183
                  '--Var(ObjDir)',                  # Object output directory
-
 
184
                  '--Var(LibDir)',                  # Library output directory
-
 
185
                  '--Var(PackageBinDir)',           # Package Bin dir
-
 
186
                  '--Var(PackageIncDir)',           # Package Inc dir
-
 
187
                  '--Var(PackageLibDir)',           # Package Lib dir
-
 
188
                  '--Var(PackagePkgDir)',           # Package Pkg dir
-
 
189
                  '--Var(PackageDir)',              # Package dir
-
 
190
                  '--Var(PackageToolDir)',          # Tools dir
-
 
191
                  '--Var(PackageToolBin)',          # Tools binaries dir
-
 
192
                  '--Var(PackageToolScript)',       # Tools scripts dir
-
 
193
                  "--NoGenerate", "--Clean", @uargs );
-
 
194
}
-
 
195
 
133
1;
196
1;