Orb/Doxygen/src/libdoxycfg.t
changeset 0 42188c7ea2d9
child 4 468f4c8d3d5b
equal deleted inserted replaced
-1:000000000000 0:42188c7ea2d9
       
     1 #
       
     2 # 
       
     3 #
       
     4 # Copyright (C) 1997-2008 by Dimitri van Heesch.
       
     5 #
       
     6 # Permission to use, copy, modify, and distribute this software and its
       
     7 # documentation under the terms of the GNU General Public License is hereby 
       
     8 # granted. No representations are made about the suitability of this software 
       
     9 # for any purpose. It is provided "as is" without express or implied warranty.
       
    10 # See the GNU General Public License for more details.
       
    11 #
       
    12 # Documents produced by Doxygen are derivative works derived from the
       
    13 # input used in their production; they are not affected by this license.
       
    14 #!
       
    15 #! doxygen.t: This is a custom template for building Doxygen
       
    16 #!
       
    17 #$ IncludeTemplate("lib.t");
       
    18 
       
    19 LEX     =   flex
       
    20 YACC    =   bison
       
    21 
       
    22 #${
       
    23 sub GenerateDep {
       
    24     my($obj,$src,$dep) = @_;
       
    25     my(@objv,$srcv,$i,$s,$o,$d,$c);
       
    26     @objv = split(/\s+/,$obj);
       
    27     @srcv = split(/\s+/,$src);
       
    28     for $i ( 0..$#objv ) {
       
    29         $s = $srcv[$i];
       
    30         $o = $objv[$i];
       
    31         next if $s eq "";
       
    32         $text .= $o . ": " . $s;
       
    33 	$text .= " ${linebreak}\n\t\t" . $dep if $dep ne "";
       
    34         if ( $moc_output{$s} ne "" ) {
       
    35             $text .= " ${linebreak}\n\t\t" . $moc_output{$s};
       
    36         }
       
    37         $d = &make_depend($s);
       
    38         $text .= " ${linebreak}\n\t\t" . $d if $d ne "";
       
    39 	$text .= "\n";
       
    40     }
       
    41     chop $text;
       
    42 }
       
    43 #$} 
       
    44 
       
    45 ####################
       
    46 
       
    47 #$ GenerateDep("config.cpp","config.l");
       
    48 	$(LEX) -PconfigYY -t config.l >config.cpp 
       
    49 
       
    50 configoptions.cpp: config.xml
       
    51 	python configgen.py config.xml >configoptions.cpp
       
    52