Kraken IOS Build now generates a framework rather than a static library.
Xcode 6 now required
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -218,9 +218,12 @@ void kraken::set_debug_text(const std::string &print_text)
|
|||||||
NSString *bundleName = @"kraken_standard_assets_osx";
|
NSString *bundleName = @"kraken_standard_assets_osx";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// NSString *bundlePath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:bundleName];
|
NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier: @"com.krakenengine.kraken"];
|
||||||
NSString *bundlePath = [[NSBundle mainBundle] pathForResource:bundleName ofType:@"bundle"];
|
|
||||||
|
//NSString *bundlePath = [[frameworkBundle bundlePath] stringByAppendingPathComponent:bundleName];
|
||||||
|
NSString *bundlePath = [frameworkBundle pathForResource:bundleName ofType:@"bundle"];
|
||||||
NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
|
NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
|
||||||
|
|
||||||
if(bundle == nil) {
|
if(bundle == nil) {
|
||||||
KRContext::Log(KRContext::LOG_LEVEL_ERROR, "%s", "ERROR - Standard asset bundle could not be found.");
|
KRContext::Log(KRContext::LOG_LEVEL_ERROR, "%s", "ERROR - Standard asset bundle could not be found.");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
26
kraken_ios/Info.plist
Normal file
26
kraken_ios/Info.plist
Normal 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
19
kraken_ios/kraken.h
Normal 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>
|
||||||
|
|
||||||
|
|
||||||
@@ -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__
|
#ifdef __OBJC__
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
//
|
//
|
||||||
// krengine_osx.h
|
// kraken.h
|
||||||
// krengine_osx
|
// Kraken OSX Framework
|
||||||
//
|
//
|
||||||
// Created by Kearwood Gilbert on 12-03-15.
|
// Created by Kearwood Gilbert on 12-03-15.
|
||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
@@ -8,6 +8,6 @@
|
|||||||
|
|
||||||
#include <Foundation/Foundation.h>
|
#include <Foundation/Foundation.h>
|
||||||
|
|
||||||
@interface krengine_osx : NSObject
|
@interface kraken : NSObject
|
||||||
|
|
||||||
@end
|
@end
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
//
|
//
|
||||||
// krengine_osx.m
|
// kraken.mm
|
||||||
// krengine_osx
|
// Kraken OSX Framework
|
||||||
//
|
//
|
||||||
// Created by Kearwood Gilbert on 12-03-15.
|
// Created by Kearwood Gilbert on 12-03-15.
|
||||||
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
// Copyright (c) 2012 Kearwood Software. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "krengine_osx.h"
|
#include "kraken.h"
|
||||||
|
|
||||||
@implementation krengine_osx
|
@implementation kraken
|
||||||
|
|
||||||
@end
|
@end
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string></string>
|
<string></string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.kearwood.kraken.assets</string>
|
<string>com.krakenengine.standardassets</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user