Skip to content

Commit

Permalink
mac: xcode project for the test app
Browse files Browse the repository at this point in the history
  • Loading branch information
aras-p committed Aug 4, 2010
1 parent c5ac755 commit d163ef6
Show file tree
Hide file tree
Showing 2 changed files with 260 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/glsl/glsl_optimizer_main.cpp
Expand Up @@ -142,6 +142,11 @@ static bool ReadStringFromFile (const char* pathName, std::string& output)
return true;
}

bool EndsWith (const std::string& str, const std::string& sub)
{
return (str.size() >= sub.size()) && (strncmp (str.c_str()+str.size()-sub.size(), sub.c_str(), sub.size())==0);
}

typedef std::vector<std::string> StringVector;

static StringVector GetFiles (const std::string& folder, const std::string& endsWith)
Expand Down
255 changes: 255 additions & 0 deletions src/glsl/xcode/glsl-optimizer-test.xcodeproj/project.pbxproj
@@ -0,0 +1,255 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 45;
objects = {

/* Begin PBXBuildFile section */
2B47D9AB1209C6AC00937F2C /* glsl_optimizer_main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2B47D9AA1209C6AC00937F2C /* glsl_optimizer_main.cpp */; };
2B47D9BA1209C71700937F2C /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B47D9B91209C71700937F2C /* OpenGL.framework */; };
2B47D9C01209C72100937F2C /* AGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B47D9BF1209C72100937F2C /* AGL.framework */; };
2B47D9EE1209C81200937F2C /* libmesaglsl2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2B47D9CF1209C72F00937F2C /* libmesaglsl2.a */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
2B47D9CE1209C72F00937F2C /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 2B47D9C51209C72F00937F2C /* mesaglsl2.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = D2AAC046055464E500DB518D /* libmesaglsl2.a */;
remoteInfo = mesaglsl2;
};
2B47D9D21209C76500937F2C /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 2B47D9C51209C72F00937F2C /* mesaglsl2.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = D2AAC045055464E500DB518D /* mesaglsl2 */;
remoteInfo = mesaglsl2;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
8DD76FAF0486AB0100D96B5E /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 8;
dstPath = /usr/share/man/man1/;
dstSubfolderSpec = 0;
files = (
);
runOnlyForDeploymentPostprocessing = 1;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
2B47D9AA1209C6AC00937F2C /* glsl_optimizer_main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = glsl_optimizer_main.cpp; path = ../glsl_optimizer_main.cpp; sourceTree = SOURCE_ROOT; };
2B47D9B91209C71700937F2C /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; };
2B47D9BF1209C72100937F2C /* AGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AGL.framework; path = System/Library/Frameworks/AGL.framework; sourceTree = SDKROOT; };
2B47D9C51209C72F00937F2C /* mesaglsl2.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = mesaglsl2.xcodeproj; sourceTree = SOURCE_ROOT; };
8DD76FB20486AB0100D96B5E /* glsl-optimizer-test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "glsl-optimizer-test"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
8DD76FAD0486AB0100D96B5E /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2B47D9EE1209C81200937F2C /* libmesaglsl2.a in Frameworks */,
2B47D9BA1209C71700937F2C /* OpenGL.framework in Frameworks */,
2B47D9C01209C72100937F2C /* AGL.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
08FB7794FE84155DC02AAC07 /* glsl-optimizer-test */ = {
isa = PBXGroup;
children = (
08FB7795FE84155DC02AAC07 /* Source */,
1AB674ADFE9D54B511CA2CBB /* Products */,
2B47D9C51209C72F00937F2C /* mesaglsl2.xcodeproj */,
2B47D9B91209C71700937F2C /* OpenGL.framework */,
2B47D9BF1209C72100937F2C /* AGL.framework */,
);
name = "glsl-optimizer-test";
sourceTree = "<group>";
};
08FB7795FE84155DC02AAC07 /* Source */ = {
isa = PBXGroup;
children = (
2B47D9AA1209C6AC00937F2C /* glsl_optimizer_main.cpp */,
);
name = Source;
sourceTree = "<group>";
};
1AB674ADFE9D54B511CA2CBB /* Products */ = {
isa = PBXGroup;
children = (
8DD76FB20486AB0100D96B5E /* glsl-optimizer-test */,
);
name = Products;
sourceTree = "<group>";
};
2B47D9CB1209C72F00937F2C /* Products */ = {
isa = PBXGroup;
children = (
2B47D9CF1209C72F00937F2C /* libmesaglsl2.a */,
);
name = Products;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
8DD76FA90486AB0100D96B5E /* glsl-optimizer-test */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1DEB928508733DD80010E9CD /* Build configuration list for PBXNativeTarget "glsl-optimizer-test" */;
buildPhases = (
8DD76FAB0486AB0100D96B5E /* Sources */,
8DD76FAD0486AB0100D96B5E /* Frameworks */,
8DD76FAF0486AB0100D96B5E /* CopyFiles */,
);
buildRules = (
);
dependencies = (
2B47D9D31209C76500937F2C /* PBXTargetDependency */,
);
name = "glsl-optimizer-test";
productInstallPath = "$(HOME)/bin";
productName = "glsl-optimizer-test";
productReference = 8DD76FB20486AB0100D96B5E /* glsl-optimizer-test */;
productType = "com.apple.product-type.tool";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "glsl-optimizer-test" */;
compatibilityVersion = "Xcode 3.1";
hasScannedForEncodings = 1;
mainGroup = 08FB7794FE84155DC02AAC07 /* glsl-optimizer-test */;
projectDirPath = "";
projectReferences = (
{
ProductGroup = 2B47D9CB1209C72F00937F2C /* Products */;
ProjectRef = 2B47D9C51209C72F00937F2C /* mesaglsl2.xcodeproj */;
},
);
projectRoot = "";
targets = (
8DD76FA90486AB0100D96B5E /* glsl-optimizer-test */,
);
};
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
2B47D9CF1209C72F00937F2C /* libmesaglsl2.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libmesaglsl2.a;
remoteRef = 2B47D9CE1209C72F00937F2C /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */

/* Begin PBXSourcesBuildPhase section */
8DD76FAB0486AB0100D96B5E /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2B47D9AB1209C6AC00937F2C /* glsl_optimizer_main.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
2B47D9D31209C76500937F2C /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = mesaglsl2;
targetProxy = 2B47D9D21209C76500937F2C /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
1DEB928608733DD80010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = "glsl-optimizer-test";
};
name = Debug;
};
1DEB928708733DD80010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
GCC_MODEL_TUNING = G5;
INSTALL_PATH = /usr/local/bin;
PRODUCT_NAME = "glsl-optimizer-test";
};
name = Release;
};
1DEB928A08733DD80010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = i386;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_VERSION = 4.0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
SDKROOT = macosx10.4;
};
name = Debug;
};
1DEB928B08733DD80010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = i386;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_VERSION = 4.0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = macosx10.4;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
1DEB928508733DD80010E9CD /* Build configuration list for PBXNativeTarget "glsl-optimizer-test" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1DEB928608733DD80010E9CD /* Debug */,
1DEB928708733DD80010E9CD /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1DEB928908733DD80010E9CD /* Build configuration list for PBXProject "glsl-optimizer-test" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1DEB928A08733DD80010E9CD /* Debug */,
1DEB928B08733DD80010E9CD /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
}

0 comments on commit d163ef6

Please sign in to comment.