Skip to content

Commit

Permalink
Merge pull request cocos2d#2486 from minggo/master
Browse files Browse the repository at this point in the history
fix some bugs
  • Loading branch information
minggo committed Apr 28, 2013
2 parents 716ee19 + 093f275 commit 4a9984a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@
"$(SRCROOT)/../../../../extensions",
);
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../../../..//cocos2dx/platform/third_party/ios/libraries\"",
Expand All @@ -956,7 +957,6 @@
"\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/lib\"",
);
OTHER_LDFLAGS = (
"-lxml2",
"-lz",
"-lsqlite3",
);
Expand Down Expand Up @@ -993,6 +993,7 @@
"$(SRCROOT)/../../../../extensions",
);
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)/../../../..//cocos2dx/platform/third_party/ios/libraries\"",
Expand All @@ -1001,7 +1002,6 @@
"\"$(SRCROOT)/../../../../scripting/javascript/spidermonkey-ios/lib\"",
);
OTHER_LDFLAGS = (
"-lxml2",
"-lz",
"-lsqlite3",
);
Expand Down
2 changes: 2 additions & 0 deletions samples/Cpp/HelloCpp/proj.android/jni/hellocpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <jni.h>
#include <android/log.h>

#include "cocos2d.h"

#define LOG_TAG "main"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)

Expand Down
2 changes: 2 additions & 0 deletions samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ bool AppDelegate::applicationDidFinishLaunching()
// set FPS. the default value is 1.0/60 if you don't call this
pDirector->setAnimationInterval(1.0 / 60);

CCEGLView::sharedOpenGLView()->setDesignResolutionSize(480, 320, kResolutionFixedHeight);

ScriptingCore* sc = ScriptingCore::getInstance();
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_all_cocos2dx_extension);
Expand Down
30 changes: 20 additions & 10 deletions samples/Lua/TestLua/proj.ios/TestLua.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
Expand Down Expand Up @@ -1530,6 +1531,8 @@
"$(SRCROOT)/../../../cocos2dx/include",
);
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;
};
name = Debug;
Expand All @@ -1538,6 +1541,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_PREPROCESSOR_DEFINITIONS = (
Expand All @@ -1563,6 +1567,8 @@
);
IPHONEOS_DEPLOYMENT_TARGET = 5.1;
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
SDKROOT = iphoneos;
};
name = Release;
Expand All @@ -1571,7 +1577,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = TestLua_Prefix.pch;
Expand Down Expand Up @@ -1601,17 +1610,16 @@
"\"$(SRCROOT)/../../../../cocos2dx/platform/ios/Simulation\"",
);
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../../../../cocos2dx/platform/third_party/ios/libraries",
"\"$(SRCROOT)/../../../../scripting/lua/luajit/ios\"",
);
OTHER_LDFLAGS = (
"-lxml2",
"-lz",
);
OTHER_LDFLAGS = "-lz";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
TARGETED_DEVICE_FAMILY = "1,2";
WRAPPER_EXTENSION = app;
};
Expand All @@ -1621,7 +1629,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = TestLua_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = (
Expand Down Expand Up @@ -1649,17 +1660,16 @@
"\"$(SRCROOT)/../../../../cocos2dx/platform/ios/Simulation\"",
);
INFOPLIST_FILE = Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../../../../cocos2dx/platform/third_party/ios/libraries",
"\"$(SRCROOT)/../../../../scripting/lua/luajit/ios\"",
);
OTHER_LDFLAGS = (
"-lxml2",
"-lz",
);
OTHER_LDFLAGS = "-lz";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
WRAPPER_EXTENSION = app;
Expand Down

0 comments on commit 4a9984a

Please sign in to comment.