Skip to content

Commit

Permalink
use Optimized Architecture to successfully deploy on the iPad and iPh…
Browse files Browse the repository at this point in the history
…one OS4 Beta
  • Loading branch information
caged committed Apr 10, 2010
1 parent 8d166de commit 894f765
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
21 changes: 12 additions & 9 deletions HTTPRiot.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -901,9 +901,9 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.6.9;
CURRENT_PROJECT_VERSION = 0.6.10;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 0.6.9;
DYLIB_CURRENT_VERSION = 0.6.10;
FRAMEWORK_VERSION = A;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
Expand All @@ -921,6 +921,7 @@
"-framework",
Foundation,
"-lxml2",
"-fobjc-exceptions",
);
PRODUCT_NAME = HTTPRiot;
VERSIONING_SYSTEM = "apple-generic";
Expand All @@ -933,10 +934,11 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CURRENT_PROJECT_VERSION = 0.6.9;
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
CURRENT_PROJECT_VERSION = 0.6.10;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DYLIB_COMPATIBILITY_VERSION = 0.1.0;
DYLIB_CURRENT_VERSION = 0.6.9;
DYLIB_CURRENT_VERSION = 0.6.10;
FOO_BAR = 1;
FRAMEWORK_VERSION = A;
GCC_MODEL_TUNING = G5;
Expand All @@ -952,6 +954,7 @@
"-framework",
Foundation,
"-lxml2",
"-fobjc-exceptions",
);
PRODUCT_NAME = HTTPRiot;
VERSIONING_SYSTEM = "apple-generic";
Expand Down Expand Up @@ -990,11 +993,11 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)$(IPHONEOS_DEPLOYMENT_TARGET)";
CONFIGURATION_TEMP_DIR = "$(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)$(IPHONEOS_DEPLOYMENT_TARGET)";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.6.9;
CURRENT_PROJECT_VERSION = 0.6.10;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_ENABLE_OBJC_GC = unsupported;
Expand All @@ -1019,14 +1022,14 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
ARCHS = "$(ARCHS_UNIVERSAL_IPHONE_OS)";
CONFIGURATION_BUILD_DIR = "$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)$(IPHONEOS_DEPLOYMENT_TARGET)";
CONFIGURATION_TEMP_DIR = "$(PROJECT_TEMP_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)$(IPHONEOS_DEPLOYMENT_TARGET)";
COPY_PHASE_STRIP = YES;
CURRENT_PROJECT_VERSION = 0.6.9;
CURRENT_PROJECT_VERSION = 0.6.10;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DYLIB_COMPATIBILITY_VERSION = 0.1.0;
DYLIB_CURRENT_VERSION = 0.6.9;
DYLIB_CURRENT_VERSION = 0.6.10;
GCC_ENABLE_FIX_AND_CONTINUE = NO;
GCC_ENABLE_OBJC_GC = unsupported;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand Down
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace :sdk do
end

OSX_BUILD_TARGETS.each do |version|
system("ARCHS='i386' xcodebuild -target libhttpriot -configuration #{CONFIGURATION} -sdk macosx#{version}")
#system("ARCHS='i386' xcodebuild -target libhttpriot -configuration #{CONFIGURATION} -sdk macosx#{version}")
system("ARCHS='i386' xcodebuild -target HTTPRiot -configuration #{CONFIGURATION} -sdk macosx#{version}")
end
end
Expand Down Expand Up @@ -243,7 +243,7 @@ class SDKPackage < Rake::PackageTask
@project_dir = Project.project_dir
@package_dir = File.join(@project_dir, 'pkg')
@build_dir = Project.build_dir
@sdks = %w(iphoneos iphonesimulator macosx)
@sdks = %w(iphoneos iphonesimulator)
@configuration = 'Release'
@targets = Project.targets
end
Expand Down Expand Up @@ -277,7 +277,7 @@ class SDKPackage < Rake::PackageTask
end

# Copy the header files over
if sdk == 'macosx' && File.exists?(File.join(@build_dir, @configuration, "usr"))
if sdk == 'macosx' && File.exists?(File.join(@build_dir, @configuration))
built_sdk_dir = File.join(@build_dir, @configuration)
else
built_sdk_dir = File.join(@build_dir, "#{@configuration}-#{sdk}#{target}")
Expand Down
10 changes: 5 additions & 5 deletions Source/HTTPRiot/HROperationQueue.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
#import "HROperationQueue.h"
#import "HRGlobal.h"

static HROperationQueue *sharedHROperationQueue = nil;
static HROperationQueue *sharedOperationQueue = nil;


@implementation HROperationQueue
+ (HROperationQueue *)sharedOperationQueue {
@synchronized(self) {
if (sharedHROperationQueue == nil) {
sharedHROperationQueue = [[HROperationQueue alloc] init];
sharedHROperationQueue.maxConcurrentOperationCount = 3;
if (sharedOperationQueue == nil) {
sharedOperationQueue = [[HROperationQueue alloc] init];
sharedOperationQueue.maxConcurrentOperationCount = 3;
}
}

return sharedHROperationQueue;
return sharedOperationQueue;
}
@end

0 comments on commit 894f765

Please sign in to comment.