summaryrefslogtreecommitdiffstats
path: root/Source/cmXCodeObject.h
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-02-03 22:42:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-02-03 22:42:55 (GMT)
commitfd0f29e6f4bb34cc10b41ba9df60be4948adef22 (patch)
treeb8296ad93bf8d4d03db6cef417ea0de2250181b8 /Source/cmXCodeObject.h
parentcecf8bf26a516354e1a937a8460940a54191e358 (diff)
downloadCMake-fd0f29e6f4bb34cc10b41ba9df60be4948adef22.zip
CMake-fd0f29e6f4bb34cc10b41ba9df60be4948adef22.tar.gz
CMake-fd0f29e6f4bb34cc10b41ba9df60be4948adef22.tar.bz2
ENH: depends work between targets
Diffstat (limited to 'Source/cmXCodeObject.h')
-rw-r--r--Source/cmXCodeObject.h32
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;