mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-26 06:34:57 +00:00
stuff
This commit is contained in:
30
MaterialX/javascript/build_javascript_win.bat
Normal file
30
MaterialX/javascript/build_javascript_win.bat
Normal file
@@ -0,0 +1,30 @@
|
||||
@rem This script builds MaterialX JavaScript on Windows. The final command starts a local server, allowing you to
|
||||
@rem run the MaterialX Web Viewer locally by entering 'http://localhost:8080' in the search bar of your browser.
|
||||
@echo --------------------- Setup Emscripten ---------------------
|
||||
@echo on
|
||||
@rem Edit the following paths to match your local locations for the Emscripten and MaterialX projects.
|
||||
set EMSDK_LOCATION=C:/GitHub/emsdk
|
||||
set MATERIALX_LOCATION=C:/GitHub/MaterialX
|
||||
call %EMSDK_LOCATION%/emsdk.bat install 4.0.8
|
||||
call %EMSDK_LOCATION%/emsdk.bat activate 4.0.8
|
||||
if NOT ["%errorlevel%"]==["0"] pause
|
||||
@echo --------------------- Build MaterialX With JavaScript ---------------------
|
||||
@echo on
|
||||
cd %MATERIALX_LOCATION%
|
||||
cmake -S . -B javascript/build -DMATERIALX_BUILD_JS=ON -DMATERIALX_EMSDK_PATH=%EMSDK_LOCATION% -G Ninja
|
||||
cmake --build javascript/build --target install --config RelWithDebInfo --parallel 2
|
||||
if NOT ["%errorlevel%"]==["0"] pause
|
||||
@echo --------------------- Run JavaScript Tests ---------------------
|
||||
@echo on
|
||||
cd javascript/MaterialXTest
|
||||
call npm install
|
||||
call npm run test
|
||||
call npm run test:browser
|
||||
if NOT ["%errorlevel%"]==["0"] pause
|
||||
@echo --------------------- Run Interactive Viewer ---------------------
|
||||
@echo on
|
||||
cd ../MaterialXView
|
||||
call npm install
|
||||
call npm run build
|
||||
call npm run start
|
||||
if NOT ["%errorlevel%"]==["0"] pause
|
||||
Reference in New Issue
Block a user