Kraken IOS Build now generates a framework rather than a static library.

Xcode 6 now required
This commit is contained in:
2014-09-15 00:33:14 -07:00
parent 1afe308047
commit 2ea641c28c
8 changed files with 556 additions and 416 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -218,9 +218,12 @@ void kraken::set_debug_text(const std::string &print_text)
NSString *bundleName = @"kraken_standard_assets_osx";
#endif
// NSString *bundlePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:bundleName];
NSString *bundlePath = [[NSBundle mainBundle] pathForResource:bundleName ofType:@"bundle"];
NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier: @"com.krakenengine.kraken"];
//NSString *bundlePath = [[frameworkBundle bundlePath] stringByAppendingPathComponent:bundleName];
NSString *bundlePath = [frameworkBundle pathForResource:bundleName ofType:@"bundle"];
NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
if(bundle == nil) {
KRContext::Log(KRContext::LOG_LEVEL_ERROR, "%s", "ERROR - Standard asset bundle could not be found.");
} else {

26
kraken_ios/Info.plist Normal file
View File

@@ -0,0 +1,26 @@
<?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>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.krakenengine.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

19
kraken_ios/kraken.h Normal file
View File

@@ -0,0 +1,19 @@
//
// kraken.h
// kraken
//
// Created by Kearwood Gilbert on 2014-09-13.
// Copyright (c) 2014 Kearwood Software. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for kraken.
FOUNDATION_EXPORT double krakenVersionNumber;
//! Project version string for kraken.
FOUNDATION_EXPORT const unsigned char krakenVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <kraken/PublicHeader.h>

View File

@@ -1,5 +1,5 @@
//
// Prefix header for all source files of the 'krengine_osx' target in the 'krengine_osx' project
// Prefix header for all source files of the 'kraken' target in the 'kraken' project
//
#ifdef __OBJC__

View File

@@ -1,6 +1,6 @@
//
// krengine_osx.h
// krengine_osx
// kraken.h
// Kraken OSX Framework
//
// Created by Kearwood Gilbert on 12-03-15.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
@@ -8,6 +8,6 @@
#include <Foundation/Foundation.h>
@interface krengine_osx : NSObject
@interface kraken : NSObject
@end

View File

@@ -1,13 +1,13 @@
//
// krengine_osx.m
// krengine_osx
// kraken.mm
// Kraken OSX Framework
//
// Created by Kearwood Gilbert on 12-03-15.
// Copyright (c) 2012 Kearwood Software. All rights reserved.
//
#include "krengine_osx.h"
#include "kraken.h"
@implementation krengine_osx
@implementation kraken
@end

View File

@@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.kearwood.kraken.assets</string>
<string>com.krakenengine.standardassets</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>