File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Modules/@babylonjs/react-native Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ const os = require ( "os" ) ;
2+ const { exec } = require ( 'child_process' ) ;
3+
4+ function iosCMake ( ) {
5+ process . stdout . write ( 'ffffff' ) ;
6+ console . log ( "Running CMake for iOS..." ) ;
7+ exec ( "cmake -S ios -B Build/iOS -G Xcode -DFETCHCONTENT_FULLY_DISCONNECTED=ON -DBABYLON_NATIVE_BUILD_APPS=OFF -DBABYLON_NATIVE_PLUGIN_TESTUTILS=OFF -DBABYLON_NATIVE_INSTALL=OFF -DFETCHCONTENT_SOURCE_DIR_BGFX.CMAKE=./shared/BabylonNative/deps/bgfx.cmake-src -DFETCHCONTENT_SOURCE_DIR_ARCANA.CPP=./shared/BabylonNative/deps/arcana.cpp-src -DFETCHCONTENT_SOURCE_DIR_CMAKEEXTENSIONS=./shared/BabylonNative/deps/cmakeextensions-src -DFETCHCONTENT_SOURCE_DIR_JSRUNTIMEHOST=./shared/BabylonNative/deps/jsruntimehost-src -DFETCHCONTENT_SOURCE_DIR_URLLIB=./shared/BabylonNative/deps/urllib-src -DFETCHCONTENT_SOURCE_DIR_SPIRV-CROSS=./shared/BabylonNative/deps/spirv-cross-src -DFETCHCONTENT_SOURCE_DIR_LIBWEBP=./shared/BabylonNative/deps/libwebp-src -DFETCHCONTENT_SOURCE_DIR_GLSLANG=./shared/BabylonNative/deps/glslang-src -DFETCHCONTENT_SOURCE_DIR_BASE-N=./shared/BabylonNative/deps/base-n-src -DFETCHCONTENT_SOURCE_DIR_IOS-CMAKE=./shared/BabylonNative/deps/ios-cmake-src" ,
8+ ( error , stdout , stderr ) => {
9+ if ( error ) {
10+ console . error ( `Error: ${ error . message } ` ) ;
11+ return ;
12+ }
13+ if ( stderr ) {
14+ console . error ( `Stderr: ${ stderr } ` ) ;
15+ return ;
16+ }
17+ console . error ( `Output: ${ stdout } ` ) ;
18+
19+ } ) ;
20+ }
21+
22+ function postInstall ( ) {
23+ if ( os . platform ( ) === "darwin" ) {
24+ iosCMake ( ) ;
25+
26+
27+ /*exec("npm install && npx gulp buildIOSRNTA", {
28+ cwd: "../../Package",
29+ });*/
30+
31+ //console.log(chalk.black.bgCyan("Installing iOS pods..."));
32+ //exec("pod install", { cwd: "ios" });
33+ }
34+ }
35+
36+ postInstall ( ) ;
You can’t perform that action at this time.
0 commit comments