Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions JavaScriptCore-iOS.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Pod::Spec.new do |s|
s.name = "JavaScriptCore-iOS"
s.version = "0.0.1"
s.summary = "Apple's JavaScript Engine, with modified project files for iOS."
s.description = "Apple's JavaScript Engine, with modified project files for iOS. Also includes JavaScript's Typed Arrays which are normally a part of WebKit, not of JavaScriptCore."
s.homepage = "https://github.com/phoboslab/JavaScriptCore-iOS"
s.authors = "WebKit Team"
s.license = { :type => 'LGPL', :file => 'JavaScriptCore/COPYING.LIB' }
s.source = { :git => "https://github.com/phoboslab/JavaScriptCore-iOS.git", :tag => "#{s.version}" }
s.platform = :ios, '5.0'
s.source_files = 'JavaScriptCore/API/*.h'
s.header_dir = 'JavaScriptCore'
s.preserve_paths = 'Build/libJavaScriptCore.a'
s.libraries = 'stdc++', 'icucore', 'JavaScriptCore'
s.requires_arc = false
s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '"$(PODS_ROOT)/JavaScriptCore-iOS/Build"' }


def s.pre_install(pod, target_definition)
Dir.chdir(pod.root) do
system <<CMD
mkdir Build

xcodebuild -project WTF/WTF.xcodeproj -alltargets clean
xcodebuild -project WTF/WTF.xcodeproj -target "WTF iOS" -configuration Release -sdk iphoneos
xcodebuild -project WTF/WTF.xcodeproj -target "WTF iOS" -configuration Release -sdk iphonesimulator -arch i386
xcodebuild -project WTF/WTF.xcodeproj -target "Combine iOS lib" -configuration Release

xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -alltargets clean
xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -target "JavaScriptCore iOS" -configuration Release -sdk iphoneos
xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -target "JavaScriptCore iOS" -configuration Release -sdk iphonesimulator -arch i386
xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -target "Combine iOS lib" -configuration Release

echo "DONE!"
CMD
end
end
end

16 changes: 8 additions & 8 deletions JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -5195,7 +5195,7 @@
OTHER_LDFLAGS = "";
PRODUCT_NAME = JavaScriptCore;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Debug;
};
Expand All @@ -5219,7 +5219,7 @@
OTHER_LDFLAGS = "";
PRODUCT_NAME = JavaScriptCore;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Release;
};
Expand All @@ -5243,7 +5243,7 @@
OTHER_LDFLAGS = "";
PRODUCT_NAME = JavaScriptCore;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Profiling;
};
Expand All @@ -5267,7 +5267,7 @@
OTHER_LDFLAGS = "";
PRODUCT_NAME = JavaScriptCore;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Production;
};
Expand All @@ -5286,7 +5286,7 @@
LIBRARY_SEARCH_PATHS = "$(SOURCE_ROOT)/../WTF";
PRODUCT_NAME = JSCLLIntOffsetsExtractor;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Debug;
};
Expand All @@ -5305,7 +5305,7 @@
LIBRARY_SEARCH_PATHS = "$(SOURCE_ROOT)/../WTF";
PRODUCT_NAME = JSCLLIntOffsetsExtractor;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Release;
};
Expand All @@ -5324,7 +5324,7 @@
LIBRARY_SEARCH_PATHS = "$(SOURCE_ROOT)/../WTF";
PRODUCT_NAME = JSCLLIntOffsetsExtractor;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Profiling;
};
Expand All @@ -5343,7 +5343,7 @@
LIBRARY_SEARCH_PATHS = "$(SOURCE_ROOT)/../WTF";
PRODUCT_NAME = JSCLLIntOffsetsExtractor;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Production;
};
Expand Down
15 changes: 12 additions & 3 deletions WTF/WTF.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1754,13 +1754,15 @@
baseConfigurationReference = 5D247B7314689C4700E78B76 /* WTF.xcconfig */;
buildSettings = {
DEBUG_DEFINES = "$(DEBUG_DEFINES_debug)";
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
};
name = Debug;
};
5D247B6814689B8600E78B76 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 5D247B7314689C4700E78B76 /* WTF.xcconfig */;
buildSettings = {
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
};
name = Release;
};
Expand All @@ -1775,6 +1777,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 5D247B7314689C4700E78B76 /* WTF.xcconfig */;
buildSettings = {
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
};
name = Production;
};
Expand All @@ -1791,10 +1794,11 @@
"$(GCC_PREPROCESSOR_DEFINITIONS)",
"UCONFIG_NO_COLLATION=1",
);
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
PRODUCT_NAME = WTF;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Debug;
};
Expand All @@ -1810,10 +1814,11 @@
"$(GCC_PREPROCESSOR_DEFINITIONS)",
"UCONFIG_NO_COLLATION=1",
);
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
PRODUCT_NAME = WTF;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Release;
};
Expand All @@ -1829,30 +1834,34 @@
"$(GCC_PREPROCESSOR_DEFINITIONS)",
"UCONFIG_NO_COLLATION=1",
);
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
PRODUCT_NAME = WTF;
SDKROOT = iphoneos;
VALID_ARCHS = armv7;
VALID_ARCHS = "armv7 i386";
};
name = Production;
};
B6E69980166BD499005EF4B1 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
B6E69981166BD499005EF4B1 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
B6E69982166BD499005EF4B1 /* Production */ = {
isa = XCBuildConfiguration;
buildSettings = {
GCC_TREAT_WARNINGS_AS_ERRORS = NO;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Production;
Expand Down