First commit
This commit is contained in:
35
framework/node_modules/node-gpp/how to install
generated
vendored
Normal file
35
framework/node_modules/node-gpp/how to install
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
# Fetch the latest version of the emsdk (not needed the first time you clone)
|
||||
git pull
|
||||
|
||||
# Download and install the latest SDK tools.
|
||||
./emsdk install latest
|
||||
|
||||
# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
|
||||
./emsdk activate latest
|
||||
|
||||
# Activate PATH and other environment variables in the current terminal
|
||||
source ./emsdk_env.sh
|
||||
|
||||
|
||||
|
||||
|
||||
./emsdk install 1.38.45
|
||||
|
||||
|
||||
|
||||
# Fetch the latest registry of available tools.
|
||||
./emsdk update
|
||||
|
||||
# Download and install the latest SDK tools.
|
||||
./emsdk install latest
|
||||
|
||||
# Set up the compiler configuration to point to the "latest" SDK.
|
||||
./emsdk activate latest
|
||||
|
||||
# Activate PATH and other environment variables in the current terminal
|
||||
source ./emsdk_env.sh
|
||||
|
||||
To build
|
||||
|
||||
emcc -Wimplicit-function-declaration ./gpp.c -o api_example.js -sMODULARIZE -sEXPORTED_RUNTIME_METHODS=ccall,cwrap --preload-file asset_dir
|
||||
Reference in New Issue
Block a user