TurboModule Android: compile TurboModule C++ Core into ReactAndroid

Summary:
This is to prepare for enabling TurboModule on Android. This commit compiles in all the core files (C++) into the ReactAndroid NDK build step. This doesn't yet enable TurboModule by default, just compiling in the infra, just like for iOS.

New shared libs:
* libreact_nativemodule_core.so: The TurboModule Android core
* libreact_nativemodule_manager.so: The TurboModule manager/delegate

To be compatible with `<ReactCommon/` .h include prefix, the files had to move to local `ReactCommon` subdirs.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D23805717

fbshipit-source-id: b41c392a592dd095ae003f7b2a689f4add2c37a9
This commit is contained in:
Kevin Gozali
2020-09-20 14:23:43 -07:00
committed by Facebook GitHub Bot
parent 412fc7d324
commit 5be44456f2
20 changed files with 76 additions and 11 deletions
+3 -3
View File
@@ -49,13 +49,13 @@ Pod::Spec.new do |s|
ss.dependency "glog"
ss.subspec "core" do |sss|
sss.source_files = "react/nativemodule/core/*.{cpp,h}",
"react/nativemodule/core/platform/ios/*.{mm,cpp,h}"
sss.source_files = "react/nativemodule/core/ReactCommon/**/*.{cpp,h}",
"react/nativemodule/core/platform/ios/**/*.{mm,cpp,h}"
end
ss.subspec "samples" do |sss|
sss.source_files = "react/nativemodule/samples/*.{cpp,h}",
"react/nativemodule/samples/platform/ios/*.{mm,cpp,h}"
"react/nativemodule/samples/platform/ios/**/*.{mm,cpp,h}"
sss.dependency "ReactCommon/turbomodule/core", version
end
end