-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to v8 110 with ios xcframework build
- Loading branch information
Showing
23 changed files
with
190 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: iOS build | ||
|
||
on: [push] | ||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: v8-android tools builder for macos host | ||
|
||
on: [push] | ||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
CACHE_KEY_SUFFIX: v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "v8-ios", | ||
"version": "11.110.0", | ||
"description": "Pre-build version of V8 to be used by React Native apps", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Kudo/v8-android-buildscripts.git", | ||
"directory": "packages/v8-ios" | ||
}, | ||
"keywords": [ | ||
"react-native", | ||
"ios", | ||
"v8" | ||
], | ||
"license": "BSD-2-Clause", | ||
"bugs": { | ||
"url": "https://github.com/Kudo/v8-android-buildscripts/issues" | ||
}, | ||
"homepage": "https://github.com/Kudo/v8-android-buildscripts#readme", | ||
"files": [ | ||
"v8-ios.podspec", | ||
"include/", | ||
"v8.xcframework/", | ||
"tools/" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require "json" | ||
|
||
package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) | ||
|
||
Pod::Spec.new do |s| | ||
s.name = package['name'] | ||
s.version = package['version'] | ||
s.summary = package['description'] | ||
s.license = package['license'] | ||
|
||
s.authors = package['author'] | ||
s.homepage = package['homepage'] | ||
s.platforms = { :ios => "12.0" } | ||
|
||
s.source = { :http => "https://registry.npmjs.org/v8-ios/-/v8-ios-#{s.version}.tgz" } | ||
|
||
s.vendored_framework = 'v8.xcframework' | ||
s.source_files = 'include/**/*.h' | ||
s.preserve_paths = 'include' | ||
s.header_mappings_dir = 'include' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/build/config/android/BUILD.gn b/build/config/android/BUILD.gn | ||
index efdd3826e..71d492424 100644 | ||
--- a/build/config/android/BUILD.gn | ||
+++ b/build/config/android/BUILD.gn | ||
@@ -55,9 +55,18 @@ config("compiler") { | ||
} | ||
} | ||
|
||
- # Instead of using an unwind lib from the toolchain, | ||
- # buildtools/third_party/libunwind will be built and used directly. | ||
- ldflags += [ "--unwindlib=none" ] | ||
+ if (current_cpu == "x86") { | ||
+ arch_dir = "i386" | ||
+ } else if (current_cpu == "x64") { | ||
+ arch_dir = "x86_64" | ||
+ } else if (current_cpu == "arm") { | ||
+ arch_dir = "arm" | ||
+ } else if (current_cpu == "arm64") { | ||
+ arch_dir = "aarch64" | ||
+ } else { | ||
+ assert(false, "Unknown Android ABI: " + current_cpu) | ||
+ } | ||
+ lib_dirs = [ "$android_ndk_library_path/clang/12.0.9/lib/linux/$arch_dir"] | ||
|
||
# $compile_api_level corresponds to the API level used for the sysroot path | ||
# calculation in //build/config/android/config.gni |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.