make iOS template work ok on armv7s devices

build only active architecture only
This commit is contained in:
minggo 2013-07-27 21:20:25 +08:00
parent cf7aed8789
commit b6b56a252c
3 changed files with 6 additions and 0 deletions

View File

@ -605,6 +605,7 @@
"\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"",
"\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = "-O2";
PRODUCT_NAME = HelloCpp;
PROVISIONING_PROFILE = "";
@ -655,6 +656,7 @@
"\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"",
"\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"",
);
ONLY_ACTIVE_ARCH = YES;
PRODUCT_NAME = HelloCpp;
PROVISIONING_PROFILE = "";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";

View File

@ -693,6 +693,7 @@
"\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"",
"\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-lxml2",
"-lz",
@ -741,6 +742,7 @@
"\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"",
"\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-lxml2",
"-lz",

View File

@ -735,6 +735,7 @@
"\"$(SRCROOT)/../../../scripting/lua/luajit/ios\"",
"\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
@ -784,6 +785,7 @@
"\"$(SRCROOT)/../../../scripting/lua/luajit/ios\"",
"\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"",
);
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";