diff options
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r-- | Source/cmXCodeObject.h | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/Source/cmXCodeObject.h b/Source/cmXCodeObject.h index d69d8c0..e20631f 100644 --- a/Source/cmXCodeObject.h +++ b/Source/cmXCodeObject.h @@ -2,20 +2,24 @@ #define cmXCodeObject_h #include "cmStandardIncludes.h" +class cmTarget; class cmXCodeObject { public: enum Type { OBJECT_LIST, STRING, ATTRIBUTE_GROUP, OBJECT_REF, OBJECT }; enum PBXType { PBXGroup, PBXBuildStyle, PBXProject, PBXHeadersBuildPhase, - PBXSourcesBuildPhase, PBXFrameworksBuildPhase, PBXNativeTarget, - PBXFileReference, PBXBuildFile, PBXContainerItemProxy, PBXTargetDependency, - PBXShellScriptBuildPhase, PBXResourcesBuildPhase, PBXApplicationReference, - PBXExecutableFileReference, PBXLibraryReference, PBXToolTarget, PBXLibraryTarget, + PBXSourcesBuildPhase, PBXFrameworksBuildPhase, + PBXNativeTarget, PBXFileReference, PBXBuildFile, + PBXContainerItemProxy, PBXTargetDependency, + PBXShellScriptBuildPhase, PBXResourcesBuildPhase, + PBXApplicationReference, PBXExecutableFileReference, + PBXLibraryReference, PBXToolTarget, PBXLibraryTarget, + PBXAggregateTarget, None }; static const char* PBXTypeNames[]; - + ~cmXCodeObject(); cmXCodeObject(PBXType ptype, Type type); void SetString(const char* s) { @@ -44,7 +48,25 @@ public: { return m_Id.c_str(); } + cmTarget* GetcmTarget() + { + return m_cmTarget; + } + void SetcmTarget(cmTarget* t) + { + m_cmTarget = t; + } + cmXCodeObject* GetObject(const char* name) + { + if(m_ObjectAttributes.count(name)) + { + return m_ObjectAttributes[name]; + } + return 0; + } + private: + cmTarget* m_cmTarget; Type m_Type; cmStdString m_Id; PBXType m_IsA; |