2016-03-07 19:37:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/sh
|
|
|
|
|
2016-05-07 17:25:45 +00:00
|
|
|
SOURCE="$1"
|
|
|
|
if [ -z "$SOURCE" ]
|
|
|
|
then
|
|
|
|
SOURCE="4coder_default_bindings.cpp"
|
|
|
|
fi
|
|
|
|
|
2016-07-08 13:48:47 +00:00
|
|
|
# NOTE(allen): This code here is pulled from stack exchange, it could totally be wrong
|
|
|
|
# but I just don't know. The goal is to get the path to the buildsuper.sh script so that
|
|
|
|
# path can be used as an include path which allows a file in any folder to be built in plcace.
|
|
|
|
SCRIPT_FILE=$(readlink -f "$0")
|
|
|
|
CODE_HOME=$(dirname "$SCRIPT")
|
|
|
|
|
|
|
|
g++ -I"$CODE_HOME" -Wno-write-strings -std=gnu++0x $SOURCE -shared -o 4coder_custom.so -fPIC
|
2016-03-07 19:37:48 +00:00
|
|
|
|