home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 November / CDVD1105.ISO / Software / Freeware / programare / akide / akide0297setup.exe / programs.xml < prev    next >
Extensible Markup Language  |  2005-08-08  |  6KB  |  74 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. savedocuments - 0=none 1=all 2=active
  4. runshaders - 0=none 1=once 2=first time + once for every file
  5. valuepos - -1=end >=0=pos
  6. -->
  7. <programs>
  8.     <tools>
  9.         <tool0 description="Help contents" icon="112" initialdir="$getdir($app.path)" path="akhelp.exe" command="$if($eq($document.type,editor),$if($exists($set(msdn,C:\Program Files\Microsoft Visual Studio\MSDN98\98VS\1033\MSDNVS98.COL)),$sq$get(msdn)$sq,$if($exists($set(win32,$program.initialdir\..\win32.hlp)),$get(win32))) $document.word)" next="" justrun="1" showprogram="0" captureoutput="0" cleanoutput="0" needallparameters="0" warnings="1" runon="" checkoutputdate="0" errorpattern="" errorfile="" errorline="" output="" maxerrors="0" prompt="" />
  10.         <tool1 description="Browser preview" icon="-1" initialdir="" path="" command="$if($eq($document.type,editor),$document.open($document.path,browser))" next="" showprogram="1" captureoutput="0" justrun="1" cleanoutput="0" needallparameters="1" warnings="1" checkoutputdate="0" runon="" errorpattern="" errorfile="" errorline="" output="" maxerrors="0" prompt="" />
  11.         <tool2 description="Browser preview (external)" icon="-1" command="$if($eq($document.type,editor),$shellopen($document.path))" showprogram="1" justrun="1" needallparameters="1" warnings="1" />
  12.     </tools>
  13.     <compilers>
  14.         <dmd description="Digital Mars D" defaultprogram="dmd_compiler" executable="dmd_linker" revision="2">
  15.             <dmd_compiler description="DMD Compiler" initialdir="$project.basedir" path="dmd.exe" command=""$file.path" $group.output -I"$program.initialdir" -c" next="dmd_linker" showprogram="0" captureoutput="1" cleanoutput="0" needallparameters="1" warnings="1" checkoutputdate="1" runon="(*.d)" errorpattern="^(warning - ){0,1}(.+)\(([0-9].*)\): .+$" errorfile="$2" errorline="$3" output="$group.value(output,outputfile)" intermediate="" maxerrors="1" prompt="Compiling $getfiletitle($file.path) ...$eol" savedocuments="0" cancelnextonoverride="1" >
  16.                 <groups>
  17.                     <output description="Output">
  18.                         <outputfile description="Output file:" command='-of""' valuepos="4" type="input" maxvalues="1" allowempty="0" />
  19.                         <objdir description="Objects output directory:" command='-od""' valuepos="4" type="input" maxvalues="1" allowempty="1" />
  20.                         <importdir description="Import directories:" command='-I""' valuepos="3" type="input" maxvalues="0" allowempty="1" />
  21.                         <config description="Configuration:" command="" valuepos="-1" type="list" maxvalues="1" allowempty="1">
  22.                             <option name="Debug" value="-debug" />
  23.                             <option name="Release" value="-release" />
  24.                         </config> 
  25.                         <debuglevel description="Debug level/indent:" command="-debug=" valuepos="-1" type="input" maxvalues="1" allowempty="1" />
  26.                         <versionlevel description="Version level/indent:" command="-version=" valuepos="-1" type="input" maxvalues="1" allowempty="1" />
  27.                         <debug description="Generate debug information" command="-g" type="bool" />
  28.                         <optimize description="Optimize" command="-O" type="bool" />
  29.                         <profile description="Profile" command="-profile" type="bool" />
  30.                         <warnings description="Warnings" command="-w" type="bool" />
  31.                         <inline description="Do function inlining" command="-inline" type="bool" />
  32.                         <deprecated description="Allow deprecated features" command="-d" type="bool" />
  33.                         <dontstrip description="Do not strip paths from source file" command="-op" type="bool" />
  34.                         <quiet description="Suppress unnecessary messages" command="-quiet" type="bool" />
  35.                         <unittest description="Compile in unit tests" command="-unittest" type="bool" />
  36.                         <verbose description="Verbose" command="-v" type="bool" />
  37.                     </output>
  38.                 </groups>
  39.             </dmd_compiler>
  40.             <dmd_linker description="DMD Linker" initialdir="$project.basedir" path="dmd.exe" command='$program.output($null,"," ",") $group.output' next="" showprogram="0" captureoutput="1" cleanoutput="0" needallparameters="1" warnings="1" checkoutputdate="1" runon="" errorpattern="" errorfile="" errorline="" output="$group.value(output,outputfile)" intermediate="($program.initialdir\$getfilename($group.value(output,outputfile)).map)" maxerrors="" prompt="Linking ...$eol$eol" runshaders="1" >
  41.                 <shaders>
  42.                     var p=new Program;
  43.                     var out=p.getOptionValue("output","outputfile");
  44.                     var save=0;
  45.                     if(out!=undefined && getFileExt(out)=="lib")
  46.                     {
  47.                         p.path="lib.exe";
  48.                         p.command='-c -n "$group.value(output,outputfile)" $program.output($null,"," ",")';
  49.                         p.intermediate=null;
  50.                         save=1;
  51.                     }
  52.                     var addfiles=p.getOptionValue("output","addfile");
  53.                     var arr=p.intermediate;
  54.                     if(!arr || !arr.length) arr=new Array();
  55.                     for(var c=0;c<addfiles.length;c++)
  56.                     {
  57.                         if(getFileExt(addfiles[c])=="d") arr.push("$program.initialdir\\"+getFileName(addfiles[c])+".obj");
  58.                         save=1;
  59.                     }
  60.                     p.intermediate=arr;
  61.                     if(save) p.Save();
  62.                 </shaders>
  63.                 <groups>
  64.                     <output description="Output">
  65.                         <outputfile description="Output file:" command='-of""' valuepos="4" type="input" maxvalues="1" allowempty="0" />
  66.                         <objdir description="Intermediates output directory:" command='-od""' valuepos="4" type="input" maxvalues="1" allowempty="1" />
  67.                         <addfile description="Additional files to link:" command='""' valuepos="1" type="input" maxvalues="0" allowempty="1" />
  68.                         <linkerflag description="Linker flags:" command="-L" valuepos="-1" type="input" maxvalues="0" allowempty="1" />
  69.                     </output>
  70.                 </groups>
  71.             </dmd_linker>
  72.         </dmd>
  73.     </compilers>
  74. </programs>