| 345 |
dpurdie |
1 |
########################################################################
|
| 6177 |
dpurdie |
2 |
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
|
| 345 |
dpurdie |
3 |
#
|
|
|
4 |
# Module name : PHP.PL
|
|
|
5 |
# Module type : JATS TOOLSET
|
|
|
6 |
# Compiler(s) : Perl
|
|
|
7 |
# Environment(s): JATS
|
|
|
8 |
#
|
|
|
9 |
# Description : PHP
|
|
|
10 |
# Provides PHP encoding via ZendGaurd
|
|
|
11 |
#
|
|
|
12 |
# Notes : This toolset doesn't really do very much
|
|
|
13 |
# The bulk of the work is performed with a JATS
|
|
|
14 |
# plugin - zendguard_tools
|
|
|
15 |
#
|
|
|
16 |
#......................................................................#
|
|
|
17 |
|
|
|
18 |
use strict;
|
|
|
19 |
use warnings;
|
|
|
20 |
|
|
|
21 |
my $toolset_name = 'PHP'; # Toolset name : Error reporting
|
|
|
22 |
my $toolset_version = '5.5';
|
|
|
23 |
|
|
|
24 |
##############################################################################
|
|
|
25 |
# ToolsetInit()
|
|
|
26 |
# Runtime initialisation
|
|
|
27 |
#
|
|
|
28 |
##############################################################################
|
|
|
29 |
|
|
|
30 |
ToolsetInit();
|
|
|
31 |
|
|
|
32 |
sub ToolsetInit
|
|
|
33 |
{
|
|
|
34 |
|
|
|
35 |
#.. Parse arguments (Toolset arguments)
|
|
|
36 |
#
|
|
|
37 |
Debug( "$toolset_name(@::ScmToolsetArgs)" );
|
|
|
38 |
|
|
|
39 |
foreach $_ ( @::ScmToolsetArgs ) {
|
|
|
40 |
if (/^--Version=(.*)/) { # SDK Version
|
|
|
41 |
$toolset_version = $1;
|
|
|
42 |
|
|
|
43 |
} else {
|
|
|
44 |
Message( "$toolset_name toolset: unknown option $_ -- ignored\n" );
|
|
|
45 |
}
|
|
|
46 |
}
|
|
|
47 |
|
|
|
48 |
#.. Parse arguments (platform arguments)
|
|
|
49 |
#
|
|
|
50 |
Debug( "$toolset_name(@::ScmPlatformArgs)" );
|
|
|
51 |
|
|
|
52 |
foreach $_ ( @::ScmPlatformArgs ) {
|
|
|
53 |
if (/^--product=(.*)/) { # GBE product
|
|
|
54 |
|
|
|
55 |
} elsif (/^--Version=(.*)/) { # MS SDK Version
|
|
|
56 |
$toolset_version = $1;
|
|
|
57 |
|
|
|
58 |
} else {
|
|
|
59 |
Message( "$toolset_name toolset: unknown platform argument $_ -- ignored\n" );
|
|
|
60 |
}
|
|
|
61 |
}
|
|
|
62 |
|
|
|
63 |
#.. Standard.rul requirements
|
|
|
64 |
#
|
|
|
65 |
$::s = 'asm';
|
|
|
66 |
$::o = 'obj';
|
|
|
67 |
$::a = 'lib';
|
|
|
68 |
$::so = 'dll';
|
|
|
69 |
$::exe = '.exe';
|
|
|
70 |
|
|
|
71 |
#.. Toolset configuration
|
|
|
72 |
#
|
|
|
73 |
$::ScmToolsetVersion = "1.0.0"; # our version
|
|
|
74 |
$::ScmToolsetGenerate = 0; # generate optional
|
|
|
75 |
$::ScmToolsetProgDependancies = 0; # handle Prog dependancies myself
|
|
|
76 |
$::ScmNoToolsTest = 1; # No compilation
|
|
|
77 |
|
|
|
78 |
#.. define PHP environment
|
|
|
79 |
# Init( "php" );
|
|
|
80 |
# ToolsetRules( "PHP.rul" );
|
|
|
81 |
ToolsetRules( "standard.rul" );
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
#.. Successful termination
|
|
|
85 |
1;
|
|
|
86 |
|