Skip to content

Commit

Permalink
Adding Base.xcconfig and changing build settings to use it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Weiß committed Nov 18, 2011
1 parent 2b29863 commit bc3fec6
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 16 deletions.
31 changes: 31 additions & 0 deletions Configs/Base.xcconfig
@@ -0,0 +1,31 @@
ARCHS = x86_64 i386
SDKROOT = macosx10.6
GCC_VERSION = com.apple.compilers.llvm.clang.1_0
GCC_C_LANGUAGE_STANDARD = c99

PREBINDING = NO
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES
GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO
GCC_WARN_SHADOW = YES
GCC_TREAT_WARNINGS_AS_ERRORS = NO // Enable once the current warnings have been eliminated
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
GCC_WARN_ABOUT_RETURN_TYPE = YES
GCC_WARN_MISSING_PARENTHESES = YES
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
GCC_WARN_ABOUT_MISSING_NEWLINE = YES
GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES
GCC_WARN_SIGN_COMPARE = YES
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
GCC_WARN_UNDECLARED_SELECTOR = YES
GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES
GCC_WARN_UNINITIALIZED_AUTOS = YES
GCC_WARN_UNKNOWN_PRAGMAS = YES
GCC_WARN_UNUSED_FUNCTION = YES
GCC_WARN_UNUSED_LABEL = YES
GCC_WARN_UNUSED_PARAMETER = NO
GCC_WARN_UNUSED_VALUE = YES
GCC_WARN_UNUSED_VARIABLE = YES

28 changes: 12 additions & 16 deletions webarchiver.xcodeproj/project.pbxproj
Expand Up @@ -33,6 +33,7 @@
08FB7796FE84155DC02AAC07 /* webarchiver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = webarchiver.m; sourceTree = "<group>"; };
08FB779EFE84155DC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
32A70AAB03705E1F00C91783 /* webarchiver_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = webarchiver_Prefix.pch; sourceTree = "<group>"; };
3D94A3E81476954F00DDA4AA /* Base.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = "<group>"; };
8DD76FA10486AA7600D96B5E /* webarchiver */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = webarchiver; sourceTree = BUILT_PRODUCTS_DIR; };
C6859EA3029092ED04C91782 /* webarchiver.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = webarchiver.1; sourceTree = "<group>"; };
CAA258780B918EC800697B39 /* KBWebArchiver.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = KBWebArchiver.m; sourceTree = "<group>"; };
Expand All @@ -59,6 +60,7 @@
08FB7795FE84155DC02AAC07 /* Source */,
C6859EA2029092E104C91782 /* Documentation */,
08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */,
3D94A3E71476954F00DDA4AA /* Configs */,
1AB674ADFE9D54B511CA2CBB /* Products */,
);
name = webarchiver;
Expand Down Expand Up @@ -92,6 +94,14 @@
name = Products;
sourceTree = "<group>";
};
3D94A3E71476954F00DDA4AA /* Configs */ = {
isa = PBXGroup;
children = (
3D94A3E81476954F00DDA4AA /* Base.xcconfig */,
);
path = Configs;
sourceTree = "<group>";
};
C6859EA2029092E104C91782 /* Documentation */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -192,29 +202,15 @@
};
1DEB927908733DD40010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 3D94A3E81476954F00DDA4AA /* Base.xcconfig */;
buildSettings = {
ARCHS = (
ppc,
i386,
);
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
};
name = Debug;
};
1DEB927A08733DD40010E9CD /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 3D94A3E81476954F00DDA4AA /* Base.xcconfig */;
buildSettings = {
ARCHS = (
ppc,
i386,
);
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
};
name = Release;
};
Expand Down

0 comments on commit bc3fec6

Please sign in to comment.