fix: Fix Frame Processors not building because of hasWorklets flag (#2137)

This commit is contained in:
Marc Rousavy 2023-11-09 11:56:41 +01:00 committed by GitHub
parent bb59c0a3b6
commit 24ddca3409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ android {
cppFlags "-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all" cppFlags "-O2 -frtti -fexceptions -Wall -Wno-unused-variable -fstack-protector-all"
arguments "-DANDROID_STL=c++_shared", arguments "-DANDROID_STL=c++_shared",
"-DNODE_MODULES_DIR=${nodeModules}", "-DNODE_MODULES_DIR=${nodeModules}",
"-DENABLE_FRAME_PROCESSORS=${hasWorklets}" "-DENABLE_FRAME_PROCESSORS=${hasWorklets ? "ON" : "OFF"}"
abiFilters (*reactNativeArchitectures()) abiFilters (*reactNativeArchitectures())
} }
} }