Skip to content

Commit

Permalink
Add new 4.2 based project templates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmorford committed Oct 18, 2010
1 parent e7bac46 commit 0a08add
Show file tree
Hide file tree
Showing 54 changed files with 1,919 additions and 0 deletions.
@@ -0,0 +1 @@
# placeholder
@@ -0,0 +1,36 @@

//
// ___PROJECTNAME___/Configurations/Library.xcconfig
//

#include "../../../Configurations/Library.xcconfig"
#include "../../../Configurations/Libraries.xcconfig"

// Product Name
PRODUCT_NAME = ___PROJECTNAME___

// Library Version
BUILD_LIBRARY_VERSION = A

// Library Resource Bundle
LIBRARY_RESOURCE_BUNDLE_NAME = ___PROJECTNAME___.bundle

// Clang
RUN_CLANG_STATIC_ANALYZER = YES

// Search Paths
HEADER_SEARCH_PATHS = $(STDLIB_HEADER_PATH)
LIBRARY_SEARCH_PATHS = $(STDLIB_LIBRARY_PATH)

//
// Cut and paste this to Configurations/Libraries.xcconfig
// and rename to match conventions
// FooKit to FOOKIT

// ___PROJECTNAME___

//___PROJECTNAMEASIDENTIFIER____HEADER_PATH = $(BUILD_PLATFORM_NAME_PATH)/___PROJECTNAMEASIDENTIFIER___/Headers/
//___PROJECTNAMEASIDENTIFIER____PRIVATEHEADER_PATH = $(BUILD_PLATFORM_NAME_PATH)/___PROJECTNAMEASIDENTIFIER___/PrivateHeaders/
//___PROJECTNAMEASIDENTIFIER____LIBRARY_PATH = $(BUILD_PLATFORM_NAME_PATH)/___PROJECTNAMEASIDENTIFIER___/
//___PROJECTNAMEASIDENTIFIER____LIBRARY_FLAG = -l___PROJECTNAMEASIDENTIFIER___
//___PROJECTNAMEASIDENTIFIER____RESOURCE_BUNDLE_NAME = ___PROJECTNAMEASIDENTIFIER___.bundle
@@ -0,0 +1,7 @@

//
// ___PROJECTNAME___/Configurations/Project.xcconfig
//

#include "../../../Configurations/Platform.xcconfig"
#include "../../../Configurations/Project.xcconfig"
@@ -0,0 +1,8 @@

//
// ___PROJECTNAME___/Configurations/Settings.xcconfig
//

#include "../../../Configurations/Settings.xcconfig"

INFOPLIST_ORGANIZATION_NAME = ___ORGANIZATIONNAME___
@@ -0,0 +1,27 @@

//
// ___PROJECTNAME___/Configurations/UnitTests.xcconfig
//

#include "../../../Configurations/UnitTests.xcconfig"
#include "../../../Configurations/Libraries.xcconfig"

// Bundle Name
PRODUCT_NAME = ___PROJECTNAME___UnitTests

// PropertyList
INFOPLIST_FILE = Source/UnitTests/Resources/PropertyLists/UnitTests-Info.plist

// Bundle Version
BUILD_BUNDLE_VERSION = 1.0
CURRENT_PROJECT_VERSION = $(BUILD_BUNDLE_VERSION)

// Clang
RUN_CLANG_STATIC_ANALYZER = YES

// Search Paths
HEADER_SEARCH_PATHS = $(STDLIB_HEADER_PATH) $(___PROJECTNAMEASIDENTIFIER____HEADER_PATH) $(___PROJECTNAMEASIDENTIFIER____PRIVATEHEADER_PATH)
LIBRARY_SEARCH_PATHS = $(STDLIB_LIBRARY_PATH) $(___PROJECTNAMEASIDENTIFIER____LIBRARY_PATH)

// Linker Flags
OTHER_LDFLAGS = $(OBJC_LIBRARY) $(OBJC_ALLLOAD) $(FOUNDATION_FX) $(SENTESTINGKIT_FX) $(___PROJECTNAMEASIDENTIFIER____LIBRARY_FLAG)
@@ -0,0 +1,5 @@

___PROJECTNAME___ Library

Author: ___FULLUSERNAME___
Created: ___DATE___
@@ -0,0 +1 @@
# placeholder
@@ -0,0 +1,11 @@

/*!
@header ___PROJECTNAMEASIDENTIFIER___Library.h
@project ___PROJECTNAME___
@copyright (c) ___YEAR___, ___ORGANIZATIONNAME___
*/

@class NSString;

NSString *
___PROJECTNAMEASIDENTIFIER___LibraryGetVersion();
@@ -0,0 +1,12 @@

/*!
@author ___FULLUSERNAME___
@created ___DATE___
*/

#import <___PROJECTNAMEASIDENTIFIER___/___PROJECTNAMEASIDENTIFIER___Library.h>

NSString *
___PROJECTNAMEASIDENTIFIER___LibraryGetVersion() {
return @"A";
}
@@ -0,0 +1,7 @@

/*!
@header ___PROJECTNAMEASIDENTIFIER___.h
@project ___PROJECTNAME___
@copyright (c) ___YEAR___, ___ORGANIZATIONNAME___
@created ___DATE___
*/
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleIdentifier</key>
<string>com.___ORGANIZATIONNAME___.___PROJECTNAMEASIDENTIFIER___.Resources</string>
</dict>
</plist>
@@ -0,0 +1,30 @@

/*!
@header ___PROJECTNAMEASIDENTIFIER___Library.h
@project ___PROJECTNAME___
@author ___FULLUSERNAME___
@copyright (c) ___YEAR___, ___ORGANIZATIONNAME___
@created ___DATE___
*/

#import <SenTestingKit/SenTestingKit.h>
#import <UIKit/UIKit.h>
#import <___PROJECTNAMEASIDENTIFIER___/___PROJECTNAMEASIDENTIFIER___.h>

@interface ___PROJECTNAMEASIDENTIFIER___LibraryUnitTest : SenTestCase {

}

-(void) testMath;

@end

#pragma mark -

@implementation ___PROJECTNAMEASIDENTIFIER___LibraryUnitTest

-(void) testMath {
STAssertTrue((1 + 1) == 2, @"Compiler isn't feeling well today :-(" );
}

@end
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.___ORGANIZATIONNAME___.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
Binary file not shown.
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>A BuildKit based for a static library and unit test bundle target. Links against the Foundation framework. Customized to work withing a Build Kit project tree structure. To use in an application, simple copy the generated declarations in this created projects Library.xcconfig file to Libraries.xccconfig in the Configuration folder of the source tree root. Then build, add the library to an Application.xcconfig, Library projects can be added as referenced projects to applications although the linker flag is not needed.</string>
</dict>
</plist>

0 comments on commit 0a08add

Please sign in to comment.