common/tools/BuildEnv.xml
changeset 365 95e054b2bec1
parent 358 61571c10c5d0
child 824 6b6a916ded0c
equal deleted inserted replaced
364:4dc3b5b1577c 365:95e054b2bec1
       
     1 <?xml version="1.0"?>
       
     2 <!DOCTYPE BuildEnv [
       
     3 
       
     4         
       
     5 <!ELEMENT BuildEnv (context*)>
       
     6     <!ATTLIST BuildEnv name CDATA #REQUIRED
       
     7 			revision CDATA #REQUIRED>
       
     8 
       
     9 <!ELEMENT context (context*, tool+)>
       
    10     <!ATTLIST context id (system|p4|cbr) "system">
       
    11 
       
    12 <!ELEMENT tool (location?, verify*)>
       
    13 	<!ATTLIST tool name CDATA #REQUIRED>
       
    14 	<!ELEMENT location EMPTY>
       
    15 	<!ATTLIST location strict (true|false) "true" value CDATA #REQUIRED>
       
    16 	<!ELEMENT verify (check+)>
       
    17 	<!ATTLIST verify version CDATA #REQUIRED showstopper (true|false) "false">
       
    18 	<!ELEMENT check EMPTY>
       
    19 	<!ATTLIST check exclusive (false|true) "false"
       
    20 			 values  CDATA #REQUIRED
       
    21 			 locator CDATA #IMPLIED
       
    22 			 var     CDATA #IMPLIED
       
    23 			 execute CDATA #IMPLIED
       
    24 			 name    CDATA #IMPLIED
       
    25 			 silent	 (false|true) "false"
       
    26 			 log	 (false|true) "false">
       
    27 
       
    28 	]>
       
    29 
       
    30 
       
    31 <BuildEnv name="BuildEnv" revision="1">
       
    32 
       
    33 <!-- OS-dependant contexts -->
       
    34 <context id="Common">
       
    35 	<tool name="Perl">
       
    36 		<location strict="false" value="C:\apps\perl\bin\perl.exe"/>
       
    37 		<verify version="5.6.1" showstopper="true" >
       
    38 			<check name="version" execute="%location% -v" values="v5\.6\.1" locator="This is perl, (.*) built"/>
       
    39 			<check name="build" execute="%location% -v" values="build 633|build 635|build 638" locator="Binary (.*) provided by ActiveState" log="true"/>
       
    40 			<check name="module SAX version" execute="ppm query sax" values="0\.15" locator="XML-SAX \[(.*)\] Simple API" />
       
    41         </verify>
       
    42     </tool>
       
    43     <tool name="Mercurial">
       
    44 		<location strict="false" value="C:\Apps\mercurial\hg.exe"/>
       
    45 		<verify version="1.2" showstopper="false">
       
    46 			<check name="version" execute="%location% version" values="1\.2\.[1-9]" locator="Mercurial Distributed SCM \(version ([0-9\.]*)\)"/>
       
    47         </verify>
       
    48     </tool>
       
    49     <tool name="Python">
       
    50 		<location strict="false" value="c:\apps\python25\python.exe"/>
       
    51 		<verify version="2.5" showstopper="false">
       
    52 			<check name="version" execute="%location% -V" values="2\.5\.[0-9]" locator="Python (.*)"/>
       
    53         </verify>
       
    54     </tool>
       
    55     <tool name="Java Compiler">
       
    56 		<location strict="false" value="C:\apps\jdk1.6.0_14\bin\javac"/>
       
    57 		<verify version="1.6" showstopper="true">
       
    58 			<check var="JAVA_6_HOME" values="jdk1\.6"/>
       
    59 			<check name="version" execute="%JAVA_6_HOME%\bin\javac -version" values="1\.6\.[0-9]_[0-9]+" locator="javac (.*)"/>
       
    60 		</verify>
       
    61 		<verify version="default" showstopper="false">
       
    62 			<check var="JAVA_HOME" values="jdk1\.6"/>
       
    63 		</verify>
       
    64     </tool>
       
    65 	<tool name="7-Zip">
       
    66 		<location strict="false" value="C:\apps\7-zip\7z.exe"/>
       
    67 		<verify version="4.65" showstopper="false">
       
    68 			<check name="version" execute="%location% -h" values="4\.65" locator="7-Zip (.*)  Copyright"/>
       
    69 		</verify>
       
    70     </tool>
       
    71 	<tool name="PDT Home">
       
    72 		<location strict="false" value="C:\Symbian\Tools\PDT_1.0\helium\hlm.bat"/>
       
    73 		<verify version="1.0 [beta]" showstopper="false">
       
    74 			<check var="PDT_HOME" values="\\Tools\\PDT_\d"/>
       
    75 		</verify>
       
    76     </tool>
       
    77 	<tool name="EPOC">
       
    78 		<verify version="Environment Vars" showstopper="true">
       
    79 			<check var="EPOCROOT" values="^\\$"/>
       
    80 			<check var="PATH" values=";\\epoc32\\tools;" silent="true"/>
       
    81 		</verify>
       
    82     </tool>
       
    83 	<tool name="Helium">
       
    84 		<location strict="false" value="C:\Symbian\Tools\PDT_1.0\helium\hlm.bat"/>
       
    85 		<verify version="4.0 [patched]" showstopper="true">
       
    86 			<check var="HELIUM_HOME" values="[CD]:\\Symbian\\Tools\\PDT_1.0\\helium"/>
       
    87 			<check name="version" execute="%HELIUM_HOME%\hlm.bat -f %HELIUM_HOME%\build.xml version" values="4\.0" locator="Helium version: ([\d\.]+)"/>
       
    88 		</verify>
       
    89     </tool>
       
    90 	<tool name="Raptor">
       
    91 		<location strict="false" value="C:\apps\raptor2.7.2\bin\sbs.bat"/>
       
    92 		<verify version="2.7.2 [patched]" showstopper="true">
       
    93 			<check var="SBS_HOME" values="apps\\raptor"/>
       
    94 			<check name="version" execute="%SBS_HOME%\bin\sbs.bat -version" values="2\.7\.2" locator="sbs version (.*) \["/>
       
    95 			<check name="patch" execute="%SBS_HOME%\win32\python252\python.exe -V" values="2\.5\.4"/>
       
    96 		</verify>
       
    97     </tool>
       
    98 </context>
       
    99 
       
   100 <context id="ARMv5">
       
   101     <tool name="RVCT ARM Compiler">
       
   102 		<location strict="false" value="C:\apps\arm\RVCT2.2[616]\RVCT\Programs\2.2\349\win_32-pentium\armcc.exe"/>
       
   103 		<verify version="2.2" showstopper="true">
       
   104 			<check name="version" execute="%location% --help" values="RVCT2\.2\ \[Build 616\]" log="false" locator="ARM\/Thumb C\/C\+\+ Compiler, (.*)Usage"/>
       
   105 			<!-- <check execute="%RVCT22BIN%\armcc.exe" values="616" log="false"/> -->
       
   106 			<check var="RVCT22BIN" values="RVCT\\Programs\\2\.2\\349\\win_32-pentium" silent="true"/>
       
   107 			<check var="RVCT22INC" values="RVCT\\Data\\2\.2\\349\\include\\windows" silent="true"/>
       
   108 			<check var="RVCT22LIB" values="RVCT\\Data\\2\.2\\349\\lib" silent="true"/>
       
   109 			<check var="ARMLMD_LICENSE_FILE" values="8224@LON-ENGBUILD8[79]|8224@C10072[56]"/>
       
   110 		</verify>
       
   111 		<verify version="2.2 [options]" showstopper="false">
       
   112 			<check var="RVCT22_ASMOPT" values="--licretry" silent="true"/>
       
   113 			<check var="RVCT22_CCOPT" values="--licretry" silent="true"/>
       
   114 			<check var="RVCT22_LINKOPT" values="--licretry" silent="true"/>
       
   115 		</verify>
       
   116     </tool>
       
   117 </context>
       
   118 
       
   119 <context id="Test">
       
   120 	<tool name="cURL">
       
   121 		<location strict="false" value="C:\apps\curl_7.18.2\curl.exe"/>
       
   122 		<verify version="7.18.2" showstopper="false">
       
   123 			<check name="version" execute="%location% -V" values="7\.18\.2" locator="curl (.*) \(i386-pc-win32\)"/>
       
   124 		</verify>
       
   125     </tool>
       
   126 	<tool name="Junction">
       
   127 		<location strict="true" value="C:\Bin\junction.exe"/>
       
   128 		<verify version="1.0.5" showstopper="true">
       
   129 			<check name="version - local" execute="%location%" values="v1\.05" locator="Junction (.*) - Windows junction creator"/>
       
   130 			<check execute="junction - system" values="v1\.05" locator="Junction (.*) - Windows junction creator"/>
       
   131 		</verify>
       
   132     </tool>
       
   133 	<tool name="ATS3 Worker">
       
   134 		<location strict="true" value="C:\apps\ats3\bin\STAFEnv.bat"/>
       
   135 		<verify version="7.18.2" showstopper="false">
       
   136 			<check execute="%location%" values=".*"/>
       
   137 			<check var="ATS3_HOME" values="\w:\\\w+"/>
       
   138 		</verify>
       
   139     </tool>
       
   140 </context>
       
   141 
       
   142 <context id="Tools">
       
   143     <tool name="Microsoft Visual C++ compiler">
       
   144 		<location strict="false" value="C:\apps\MSVC6\VC98\bin\vcvars32.bat"/>
       
   145 		<verify version="6.00" showstopper="false">
       
   146 			<check var="PATH" values="MSVC6\\Common\\MSDev98\\bin" silent="true"/>
       
   147 			<check var="PATH" values="MSVC6\\Common\\Tools\\WinNT" silent="true"/>
       
   148 			<check var="PATH" values="MSVC6\\Common\\Tools" silent="true"/>
       
   149 			<check var="PATH" values="MSVC6\\VC98\\bin" silent="true"/>
       
   150 			<check var="INCLUDE" values="MSVC6\\VC98\\atl\\include" silent="true"/>
       
   151 			<check var="INCLUDE" values="MSVC6\\VC98\\mfc\\include" silent="true"/>
       
   152 			<check var="INCLUDE" values="MSVC6\\VC98\\include" silent="true"/>
       
   153 			<check var="LIB" values="MSVC6\\VC98\\mfc\\lib" silent="true"/>
       
   154 			<check var="LIB" values="MSVC6\\VC98\\lib" silent="true"/>
       
   155 			<check var="MSDEVDIR" values="msvc6\\Common\\MSDev98" silent="true"/>
       
   156 		</verify>
       
   157     </tool>
       
   158 </context>
       
   159 
       
   160 </BuildEnv>