-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
5,859 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
project(RNFilament) | ||
cmake_minimum_required(VERSION 3.9.0) | ||
|
||
set(PACKAGE_NAME "RNFilament") | ||
set(BUILD_DIR ${CMAKE_SOURCE_DIR}/build) | ||
set(CMAKE_VERBOSE_MAKEFILE ON) | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
# Third party libraries (Prefabs) | ||
find_package(ReactAndroid REQUIRED CONFIG) | ||
find_package(fbjni REQUIRED CONFIG) | ||
find_library(LOG_LIB log) | ||
|
||
# Add react-native-filament sources | ||
add_library( | ||
${PACKAGE_NAME} | ||
SHARED | ||
# Shared C++ | ||
../cpp/MutableRawBuffer.cpp | ||
../cpp/FilamentProxy.cpp | ||
../cpp/jsi/Promise.cpp | ||
# Java JNI | ||
src/main/cpp/AndroidFilamentProxy.cpp | ||
src/main/cpp/Filament.cpp | ||
src/main/cpp/FilamentInstaller.cpp | ||
src/main/cpp/java-bindings/JFilamentProxy.cpp | ||
) | ||
|
||
# Header Search Paths (includes) | ||
target_include_directories( | ||
${PACKAGE_NAME} | ||
PRIVATE | ||
"../cpp" | ||
"src/main/cpp" | ||
"src/main/cpp/java-bindings" | ||
"${NODE_MODULES_DIR}/react-native/ReactCommon" | ||
"${NODE_MODULES_DIR}/react-native/ReactCommon/callinvoker" | ||
"${NODE_MODULES_DIR}/react-native/ReactAndroid/src/main/jni/react/turbomodule" # <-- CallInvokerHolder JNI wrapper | ||
) | ||
|
||
# Link everything together | ||
target_link_libraries( | ||
${PACKAGE_NAME} | ||
${LOG_LIB} # <-- Logcat logger | ||
android # <-- Android JNI core | ||
ReactAndroid::jsi # <-- RN: JSI | ||
ReactAndroid::reactnativejni # <-- RN: React Native JNI bindings | ||
fbjni::fbjni # <-- fbjni | ||
GLESv2 # <-- OpenGL (Core) | ||
EGL # <-- OpenGL (EGL) | ||
) |
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,3 +1,3 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.filament"> | ||
package="com.margelo.filament"> | ||
</manifest> |
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
5 changes: 5 additions & 0 deletions
5
package/android/src/main/java/com/margelo/filament/FilamentProxy.java
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,5 @@ | ||
package com.margelo.filament; | ||
|
||
class FilamentProxy { | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
package/android/src/main/java/com/margelo/filament/FilamentView.java
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,4 +1,4 @@ | ||
package com.filament; | ||
package com.margelo.filament; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
package/android/src/main/java/com/margelo/filament/FilamentViewManager.java
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,4 +1,4 @@ | ||
package com.filament; | ||
package com.margelo.filament; | ||
|
||
import android.graphics.Color; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
package/android/src/main/java/com/margelo/filament/FilamentViewPackage.java
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,4 +1,4 @@ | ||
package com.filament; | ||
package com.margelo.filament; | ||
|
||
import android.view.View; | ||
|
||
|
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,4 +1,4 @@ | ||
package com.filament; | ||
package com.margelo.filament; | ||
|
||
import android.view.View; | ||
|
||
|
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
2 changes: 1 addition & 1 deletion
2
package/example/android/app/src/main/java/com/filamentexample/MainActivity.kt
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
2 changes: 1 addition & 1 deletion
2
package/example/android/app/src/main/java/com/filamentexample/MainApplication.kt
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,2 @@ | ||
export NODE_BINARY=/Users/mrousavy/.nvm/versions/node/v18.17.0/bin/node | ||
|
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.