2 * Copyright (C) 2005 Casper S. Hornstrup
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 Right ( const string
& s
, size_t n
)
31 return string ( &s
[s
.size()-n
] );
35 Replace ( const string
& s
, const string
& find
, const string
& with
)
38 const char* p
= s
.c_str();
41 const char* p2
= strstr ( p
, find
.c_str() );
45 ret
+= string ( p
, p2
-p
);
55 FixSeparator ( const string
& s
)
58 char* p
= strchr ( &s2
[0], CBAD_SEP
);
62 p
= strchr ( p
, CBAD_SEP
);
68 DosSeparator ( const string
& s
)
71 char* p
= strchr ( &s2
[0], '/' );
75 p
= strchr ( p
, '/' );
82 const string
& filename
,
83 const string
& newExtension
)
85 size_t index
= filename
.find_last_of ( '/' );
86 if ( index
== string::npos
)
88 size_t index2
= filename
.find_last_of ( '\\' );
89 if ( index2
!= string::npos
&& index2
> index
)
91 string tmp
= filename
.substr( index
/*, filename.size() - index*/ );
92 size_t ext_index
= tmp
.find_last_of( '.' );
93 if ( ext_index
!= string::npos
)
94 return filename
.substr ( 0, index
+ ext_index
) + newExtension
;
95 return filename
+ newExtension
;
100 const string
& location
,
102 const string
& att_value
)
104 if ( !att_value
.size() )
105 throw InvalidBuildFileException (
107 "<directory> tag has empty 'name' attribute" );
108 if ( strpbrk ( att_value
.c_str (), "/\\?*:<>|" ) )
109 throw InvalidBuildFileException (
111 "<directory> tag has invalid characters in 'name' attribute" );
114 return FixSeparator(path
+ CSEP
+ att_value
);
118 GetExtension ( const string
& filename
)
120 size_t index
= filename
.find_last_of ( '/' );
121 if (index
== string::npos
) index
= 0;
122 string tmp
= filename
.substr( index
, filename
.size() - index
);
123 size_t ext_index
= tmp
.find_last_of( '.' );
124 if (ext_index
!= string::npos
)
125 return filename
.substr ( index
+ ext_index
, filename
.size() );
130 GetDirectory ( const string
& filename
)
132 size_t index
= filename
.find_last_of ( CSEP
);
133 if ( index
== string::npos
)
136 return filename
.substr ( 0, index
);
140 GetFilename ( const string
& filename
)
142 size_t index
= filename
.find_last_of ( CSEP
);
143 if ( index
== string::npos
)
146 return filename
.substr ( index
+ 1, filename
.length () - index
);
150 NormalizeFilename ( const string
& filename
)
152 if ( filename
== "" )
155 string normalizedPath
= path
.Fixup ( filename
, true );
156 string relativeNormalizedPath
= path
.RelativeFromWorkingDirectory ( normalizedPath
);
157 return FixSeparator ( relativeNormalizedPath
);
161 GetBooleanValue ( const string
& value
)
169 IfableData::~IfableData()
172 for ( i
= 0; i
< files
.size(); i
++ )
174 for ( i
= 0; i
< includes
.size(); i
++ )
176 for ( i
= 0; i
< defines
.size(); i
++ )
178 for ( i
= 0; i
< libraries
.size(); i
++ )
180 for ( i
= 0; i
< properties
.size(); i
++ )
181 delete properties
[i
];
182 for ( i
= 0; i
< compilerFlags
.size(); i
++ )
183 delete compilerFlags
[i
];
184 for ( i
= 0; i
< ifs
.size(); i
++ )
188 void IfableData::ProcessXML ()
191 for ( i
= 0; i
< files
.size (); i
++ )
192 files
[i
]->ProcessXML ();
193 for ( i
= 0; i
< includes
.size (); i
++ )
194 includes
[i
]->ProcessXML ();
195 for ( i
= 0; i
< defines
.size (); i
++ )
196 defines
[i
]->ProcessXML ();
197 for ( i
= 0; i
< libraries
.size (); i
++ )
198 libraries
[i
]->ProcessXML ();
199 for ( i
= 0; i
< properties
.size(); i
++ )
200 properties
[i
]->ProcessXML ();
201 for ( i
= 0; i
< compilerFlags
.size(); i
++ )
202 compilerFlags
[i
]->ProcessXML ();
203 for ( i
= 0; i
< ifs
.size (); i
++ )
204 ifs
[i
]->ProcessXML ();
207 Module::Module ( const Project
& project
,
208 const XMLElement
& moduleNode
,
209 const string
& modulePath
)
212 importLibrary (NULL
),
218 if ( node
.name
!= "module" )
219 throw InvalidOperationException ( __FILE__
,
221 "Module created with non-<module> node" );
223 xmlbuildFile
= Path::RelativeFromWorkingDirectory ( moduleNode
.xmlFile
->filename () );
225 path
= FixSeparator ( modulePath
);
229 const XMLAttribute
* att
= moduleNode
.GetAttribute ( "if", false );
231 enabled
= GetBooleanValue ( project
.ResolveProperties ( att
->value
) );
233 att
= moduleNode
.GetAttribute ( "ifnot", false );
235 enabled
= !GetBooleanValue ( project
.ResolveProperties ( att
->value
) );
237 att
= moduleNode
.GetAttribute ( "name", true );
241 att
= moduleNode
.GetAttribute ( "type", true );
243 type
= GetModuleType ( node
.location
, *att
);
245 att
= moduleNode
.GetAttribute ( "extension", false );
247 extension
= att
->value
;
249 extension
= GetDefaultModuleExtension ();
251 att
= moduleNode
.GetAttribute ( "unicode", false );
254 const char* p
= att
->value
.c_str();
255 if ( !stricmp ( p
, "true" ) || !stricmp ( p
, "yes" ) )
257 else if ( !stricmp ( p
, "false" ) || !stricmp ( p
, "no" ) )
261 throw InvalidAttributeValueException (
268 att
= moduleNode
.GetAttribute ( "entrypoint", false );
270 entrypoint
= att
->value
;
272 entrypoint
= GetDefaultModuleEntrypoint ();
274 att
= moduleNode
.GetAttribute ( "baseaddress", false );
276 baseaddress
= att
->value
;
278 baseaddress
= GetDefaultModuleBaseaddress ();
280 att
= moduleNode
.GetAttribute ( "mangledsymbols", false );
283 const char* p
= att
->value
.c_str();
284 if ( !stricmp ( p
, "true" ) || !stricmp ( p
, "yes" ) )
285 mangledSymbols
= true;
286 else if ( !stricmp ( p
, "false" ) || !stricmp ( p
, "no" ) )
287 mangledSymbols
= false;
290 throw InvalidAttributeValueException (
297 mangledSymbols
= false;
299 att
= moduleNode
.GetAttribute ( "host", false );
302 const char* p
= att
->value
.c_str();
303 if ( !stricmp ( p
, "true" ) || !stricmp ( p
, "yes" ) )
305 else if ( !stricmp ( p
, "false" ) || !stricmp ( p
, "no" ) )
309 throw InvalidAttributeValueException (
316 att
= moduleNode
.GetAttribute ( "prefix", false );
320 att
= moduleNode
.GetAttribute ( "installbase", false );
322 installBase
= att
->value
;
326 att
= moduleNode
.GetAttribute ( "installname", false );
328 installName
= att
->value
;
332 att
= moduleNode
.GetAttribute ( "usewrc", false );
334 useWRC
= att
->value
== "true";
338 att
= moduleNode
.GetAttribute ( "allowwarnings", false );
341 att
= moduleNode
.GetAttribute ( "warnings", false );
344 printf ( "%s: WARNING: 'warnings' attribute of <module> is deprecated, use 'allowwarnings' instead\n",
345 moduleNode
.location
.c_str() );
349 allowWarnings
= att
->value
== "true";
351 allowWarnings
= false;
353 att
= moduleNode
.GetAttribute ( "aliasof", false );
354 if ( type
== Alias
&& att
!= NULL
)
355 aliasedModuleName
= att
->value
;
357 aliasedModuleName
= "";
363 for ( i
= 0; i
< invocations
.size(); i
++ )
364 delete invocations
[i
];
365 for ( i
= 0; i
< dependencies
.size(); i
++ )
366 delete dependencies
[i
];
367 for ( i
= 0; i
< compilerFlags
.size(); i
++ )
368 delete compilerFlags
[i
];
369 for ( i
= 0; i
< linkerFlags
.size(); i
++ )
370 delete linkerFlags
[i
];
371 for ( i
= 0; i
< stubbedComponents
.size(); i
++ )
372 delete stubbedComponents
[i
];
382 if ( aliasedModuleName
== name
)
383 throw InvalidBuildFileException (
385 "module '%s' cannot link against itself",
387 const Module
* m
= project
.LocateModule ( aliasedModuleName
);
389 throw InvalidBuildFileException (
391 "module '%s' trying to alias non-existant module '%s'",
393 aliasedModuleName
.c_str() );
397 for ( i
= 0; i
< node
.subElements
.size(); i
++ )
398 ProcessXMLSubElement ( *node
.subElements
[i
], path
);
399 for ( i
= 0; i
< invocations
.size(); i
++ )
400 invocations
[i
]->ProcessXML ();
401 for ( i
= 0; i
< dependencies
.size(); i
++ )
402 dependencies
[i
]->ProcessXML ();
403 for ( i
= 0; i
< compilerFlags
.size(); i
++ )
404 compilerFlags
[i
]->ProcessXML();
405 for ( i
= 0; i
< linkerFlags
.size(); i
++ )
406 linkerFlags
[i
]->ProcessXML();
407 for ( i
= 0; i
< stubbedComponents
.size(); i
++ )
408 stubbedComponents
[i
]->ProcessXML();
409 non_if_data
.ProcessXML();
415 Module::ProcessXMLSubElement ( const XMLElement
& e
,
419 bool subs_invalid
= false;
420 string
subpath ( path
);
421 if ( e
.name
== "file" && e
.value
.size () > 0 )
424 const XMLAttribute
* att
= e
.GetAttribute ( "first", false );
427 if ( !stricmp ( att
->value
.c_str(), "true" ) )
429 else if ( stricmp ( att
->value
.c_str(), "false" ) )
430 throw InvalidBuildFileException (
432 "attribute 'first' of <file> element can only be 'true' or 'false'" );
434 string switches
= "";
435 att
= e
.GetAttribute ( "switches", false );
437 switches
= att
->value
;
440 // check for c++ file
441 string ext
= GetExtension ( e
.value
);
442 if ( !stricmp ( ext
.c_str(), ".cpp" ) )
444 else if ( !stricmp ( ext
.c_str(), ".cc" ) )
446 else if ( !stricmp ( ext
.c_str(), ".cxx" ) )
449 File
* pFile
= new File ( FixSeparator ( path
+ CSEP
+ e
.value
),
454 pIf
->data
.files
.push_back ( pFile
);
456 non_if_data
.files
.push_back ( pFile
);
459 else if ( e
.name
== "library" && e
.value
.size () )
461 Library
* pLibrary
= new Library ( e
, *this, e
.value
);
463 pIf
->data
.libraries
.push_back ( pLibrary
);
465 non_if_data
.libraries
.push_back ( pLibrary
);
468 else if ( e
.name
== "directory" )
470 const XMLAttribute
* att
= e
.GetAttribute ( "name", true );
472 subpath
= GetSubPath ( e
.location
, path
, att
->value
);
474 else if ( e
.name
== "include" )
476 Include
* include
= new Include ( project
, this, &e
);
478 pIf
->data
.includes
.push_back ( include
);
480 non_if_data
.includes
.push_back ( include
);
483 else if ( e
.name
== "define" )
485 Define
* pDefine
= new Define ( project
, this, e
);
487 pIf
->data
.defines
.push_back ( pDefine
);
489 non_if_data
.defines
.push_back ( pDefine
);
492 else if ( e
.name
== "invoke" )
495 throw InvalidBuildFileException (
497 "<invoke> is not a valid sub-element of <if>" );
498 invocations
.push_back ( new Invoke ( e
, *this ) );
499 subs_invalid
= false;
501 else if ( e
.name
== "dependency" )
504 throw InvalidBuildFileException (
506 "<dependency> is not a valid sub-element of <if>" );
507 dependencies
.push_back ( new Dependency ( e
, *this ) );
510 else if ( e
.name
== "importlibrary" )
513 throw InvalidBuildFileException (
515 "<importlibrary> is not a valid sub-element of <if>" );
517 throw InvalidBuildFileException (
519 "Only one <importlibrary> is valid per module" );
520 importLibrary
= new ImportLibrary ( e
, *this );
523 else if ( e
.name
== "if" )
526 pIf
= new If ( e
, project
, this );
528 pOldIf
->data
.ifs
.push_back ( pIf
);
530 non_if_data
.ifs
.push_back ( pIf
);
531 subs_invalid
= false;
533 else if ( e
.name
== "ifnot" )
536 pIf
= new If ( e
, project
, this, true );
538 pOldIf
->data
.ifs
.push_back ( pIf
);
540 non_if_data
.ifs
.push_back ( pIf
);
541 subs_invalid
= false;
543 else if ( e
.name
== "compilerflag" )
545 CompilerFlag
* pCompilerFlag
= new CompilerFlag ( project
, this, e
);
547 pIf
->data
.compilerFlags
.push_back ( pCompilerFlag
);
549 non_if_data
.compilerFlags
.push_back ( pCompilerFlag
);
552 else if ( e
.name
== "linkerflag" )
554 linkerFlags
.push_back ( new LinkerFlag ( project
, this, e
) );
557 else if ( e
.name
== "component" )
559 stubbedComponents
.push_back ( new StubbedComponent ( this, e
) );
560 subs_invalid
= false;
562 else if ( e
.name
== "property" )
564 throw InvalidBuildFileException (
566 "<property> is not a valid sub-element of <module>" );
568 else if ( e
.name
== "bootstrap" )
570 bootstrap
= new Bootstrap ( project
, this, e
);
573 else if ( e
.name
== "pch" )
576 throw InvalidBuildFileException (
578 "<pch> is not a valid sub-element of <if>" );
580 throw InvalidBuildFileException (
582 "Only one <pch> is valid per module" );
584 e
, *this, File ( FixSeparator ( path
+ CSEP
+ e
.value
), false, "", true ) );
587 if ( subs_invalid
&& e
.subElements
.size() > 0 )
588 throw InvalidBuildFileException (
590 "<%s> cannot have sub-elements",
592 for ( size_t i
= 0; i
< e
.subElements
.size (); i
++ )
593 ProcessXMLSubElement ( *e
.subElements
[i
], subpath
, pIf
);
597 Module::GetModuleType ( const string
& location
, const XMLAttribute
& attribute
)
599 if ( attribute
.value
== "buildtool" )
601 if ( attribute
.value
== "staticlibrary" )
602 return StaticLibrary
;
603 if ( attribute
.value
== "objectlibrary" )
604 return ObjectLibrary
;
605 if ( attribute
.value
== "kernel" )
607 if ( attribute
.value
== "kernelmodedll" )
608 return KernelModeDLL
;
609 if ( attribute
.value
== "kernelmodedriver" )
610 return KernelModeDriver
;
611 if ( attribute
.value
== "nativedll" )
613 if ( attribute
.value
== "nativecui" )
615 if ( attribute
.value
== "win32dll" )
617 if ( attribute
.value
== "win32cui" )
619 if ( attribute
.value
== "win32gui" )
621 if ( attribute
.value
== "bootloader" )
623 if ( attribute
.value
== "bootsector" )
625 if ( attribute
.value
== "iso" )
627 if ( attribute
.value
== "liveiso" )
629 if ( attribute
.value
== "test" )
631 if ( attribute
.value
== "rpcserver" )
633 if ( attribute
.value
== "rpcclient" )
635 if ( attribute
.value
== "alias" )
637 throw InvalidAttributeValueException ( location
,
643 Module::GetDefaultModuleExtension () const
662 case KernelModeDriver
:
679 throw InvalidOperationException ( __FILE__
,
684 Module::GetDefaultModuleEntrypoint () const
689 return "_NtProcessStartup";
691 return "_DriverEntry@8";
693 return "_DllMainCRTStartup@12";
695 return "_NtProcessStartup@4";
697 return "_DllMain@12";
701 return "_wmainCRTStartup";
703 return "_mainCRTStartup";
706 return "_wWinMainCRTStartup";
708 return "_WinMainCRTStartup";
709 case KernelModeDriver
:
710 return "_DriverEntry@8";
723 throw InvalidOperationException ( __FILE__
,
728 Module::GetDefaultModuleBaseaddress () const
744 case KernelModeDriver
:
758 throw InvalidOperationException ( __FILE__
,
763 Module::HasImportLibrary () const
765 return importLibrary
!= NULL
;
769 Module::IsDLL () const
777 case KernelModeDriver
:
795 throw InvalidOperationException ( __FILE__
,
800 Module::GenerateInOutputTree () const
808 case KernelModeDriver
:
826 throw InvalidOperationException ( __FILE__
,
831 Module::GetTargetName () const
833 return name
+ extension
;
837 Module::GetDependencyPath () const
839 if ( HasImportLibrary () )
840 return ReplaceExtension ( GetPathWithPrefix ( "lib" ), ".a" );
846 Module::GetBasePath () const
852 Module::GetPath () const
854 if ( path
.length() > 0 )
855 return path
+ CSEP
+ GetTargetName ();
857 return GetTargetName ();
861 Module::GetPathWithPrefix ( const string
& prefix
) const
863 return path
+ CSEP
+ prefix
+ GetTargetName ();
867 Module::GetInvocationTarget ( const int index
) const
869 return ssprintf ( "%s_invoke_%d",
875 Module::HasFileWithExtension (
876 const IfableData
& data
,
877 const std::string
& extension
) const
880 for ( i
= 0; i
< data
.files
.size (); i
++ )
882 File
& file
= *data
.files
[i
];
883 string file_ext
= GetExtension ( file
.name
);
884 if ( !stricmp ( file_ext
.c_str (), extension
.c_str () ) )
887 for ( i
= 0; i
< data
.ifs
.size (); i
++ )
889 if ( HasFileWithExtension ( data
.ifs
[i
]->data
, extension
) )
896 Module::InvokeModule () const
898 for ( size_t i
= 0; i
< invocations
.size (); i
++ )
900 Invoke
& invoke
= *invocations
[i
];
901 string command
= invoke
.invokeModule
->GetPath () + " " + invoke
.GetParameters ();
902 printf ( "Executing '%s'\n\n", command
.c_str () );
903 int exitcode
= system ( command
.c_str () );
905 throw InvocationFailedException ( command
,
911 File::File ( const string
& _name
, bool _first
,
912 std::string _switches
,
913 bool _isPreCompiledHeader
)
917 isPreCompiledHeader(_isPreCompiledHeader
)
927 File::IsGeneratedFile () const
929 string extension
= GetExtension ( name
);
930 return ( extension
== ".spec" || extension
== ".SPEC" );
934 Library::Library ( const XMLElement
& _node
,
935 const Module
& _module
,
936 const string
& _name
)
940 importedModule(_module
.project
.LocateModule(_name
))
942 if ( module
.name
== name
)
943 throw InvalidBuildFileException (
945 "module '%s' cannot link against itself",
947 if ( !importedModule
)
948 throw InvalidBuildFileException (
950 "module '%s' trying to import non-existant module '%s'",
956 Library::ProcessXML()
958 if ( !module
.project
.LocateModule ( name
) )
959 throw InvalidBuildFileException (
961 "module '%s' is trying to link against non-existant module '%s'",
967 Invoke::Invoke ( const XMLElement
& _node
,
968 const Module
& _module
)
977 const XMLAttribute
* att
= node
.GetAttribute ( "module", false );
979 invokeModule
= &module
;
982 invokeModule
= module
.project
.LocateModule ( att
->value
);
983 if ( invokeModule
== NULL
)
984 throw InvalidBuildFileException (
986 "module '%s' is trying to invoke non-existant module '%s'",
988 att
->value
.c_str() );
991 for ( size_t i
= 0; i
< node
.subElements
.size (); i
++ )
992 ProcessXMLSubElement ( *node
.subElements
[i
] );
996 Invoke::ProcessXMLSubElement ( const XMLElement
& e
)
998 bool subs_invalid
= false;
999 if ( e
.name
== "input" )
1001 for ( size_t i
= 0; i
< e
.subElements
.size (); i
++ )
1002 ProcessXMLSubElementInput ( *e
.subElements
[i
] );
1004 else if ( e
.name
== "output" )
1006 for ( size_t i
= 0; i
< e
.subElements
.size (); i
++ )
1007 ProcessXMLSubElementOutput ( *e
.subElements
[i
] );
1009 if ( subs_invalid
&& e
.subElements
.size() > 0 )
1010 throw InvalidBuildFileException ( e
.location
,
1011 "<%s> cannot have sub-elements",
1016 Invoke::ProcessXMLSubElementInput ( const XMLElement
& e
)
1018 bool subs_invalid
= false;
1019 if ( e
.name
== "inputfile" && e
.value
.size () > 0 )
1021 input
.push_back ( new InvokeFile ( e
, FixSeparator ( module
.path
+ CSEP
+ e
.value
) ) );
1022 subs_invalid
= true;
1024 if ( subs_invalid
&& e
.subElements
.size() > 0 )
1025 throw InvalidBuildFileException ( e
.location
,
1026 "<%s> cannot have sub-elements",
1031 Invoke::ProcessXMLSubElementOutput ( const XMLElement
& e
)
1033 bool subs_invalid
= false;
1034 if ( e
.name
== "outputfile" && e
.value
.size () > 0 )
1036 output
.push_back ( new InvokeFile ( e
, FixSeparator ( module
.path
+ CSEP
+ e
.value
) ) );
1037 subs_invalid
= true;
1039 if ( subs_invalid
&& e
.subElements
.size() > 0 )
1040 throw InvalidBuildFileException (
1042 "<%s> cannot have sub-elements",
1047 Invoke::GetTargets ( string_list
& targets
) const
1049 for ( size_t i
= 0; i
< output
.size (); i
++ )
1051 InvokeFile
& file
= *output
[i
];
1052 targets
.push_back ( NormalizeFilename ( file
.name
) );
1057 Invoke::GetParameters () const
1059 string
parameters ( "" );
1061 for ( i
= 0; i
< output
.size (); i
++ )
1063 if ( parameters
.length () > 0)
1065 InvokeFile
& invokeFile
= *output
[i
];
1066 if ( invokeFile
.switches
.length () > 0 )
1068 parameters
+= invokeFile
.switches
+ " ";
1070 parameters
+= invokeFile
.name
;
1073 for ( i
= 0; i
< input
.size (); i
++ )
1075 if ( parameters
.length () > 0 )
1077 InvokeFile
& invokeFile
= *input
[i
];
1078 if ( invokeFile
.switches
.length () > 0 )
1080 parameters
+= invokeFile
.switches
;
1083 parameters
+= invokeFile
.name
;
1090 InvokeFile::InvokeFile ( const XMLElement
& _node
,
1091 const string
& _name
)
1095 const XMLAttribute
* att
= _node
.GetAttribute ( "switches", false );
1097 switches
= att
->value
;
1103 InvokeFile::ProcessXML()
1108 Dependency::Dependency ( const XMLElement
& _node
,
1109 const Module
& _module
)
1112 dependencyModule (NULL
)
1117 Dependency::ProcessXML()
1119 dependencyModule
= module
.project
.LocateModule ( node
.value
);
1120 if ( dependencyModule
== NULL
)
1121 throw InvalidBuildFileException ( node
.location
,
1122 "module '%s' depend on non-existant module '%s'",
1123 module
.name
.c_str(),
1124 node
.value
.c_str() );
1128 ImportLibrary::ImportLibrary ( const XMLElement
& _node
,
1129 const Module
& _module
)
1133 const XMLAttribute
* att
= _node
.GetAttribute ( "basename", false );
1135 basename
= att
->value
;
1137 basename
= module
.name
;
1139 att
= _node
.GetAttribute ( "definition", true );
1141 definition
= FixSeparator(att
->value
);
1145 If::If ( const XMLElement
& node_
,
1146 const Project
& project_
,
1147 const Module
* module_
,
1148 const bool negated_
)
1149 : node(node_
), project(project_
), module(module_
), negated(negated_
)
1151 const XMLAttribute
* att
;
1153 att
= node
.GetAttribute ( "property", true );
1155 property
= att
->value
;
1157 att
= node
.GetAttribute ( "value", true );
1172 Property::Property ( const XMLElement
& node_
,
1173 const Project
& project_
,
1174 const Module
* module_
)
1175 : node(node_
), project(project_
), module(module_
)
1177 const XMLAttribute
* att
;
1179 att
= node
.GetAttribute ( "name", true );
1183 att
= node
.GetAttribute ( "value", true );
1189 Property::ProcessXML()
1195 const XMLElement
& node_
,
1196 const Module
& module_
,
1198 : node(node_
), module(module_
), file(file_
)
1203 PchFile::ProcessXML()