Skip to content

Commit

Permalink
fix mixed static test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Nov 28, 2022
1 parent 1801879 commit a7b71d1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages.d/harfang/harfang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ emcmake cmake $HG_SRC_DIR \
-DPython3_Development.Embed_FOUND=TRUE \


#
if EMCC_CFLAGS="-DBX_CONFIG_DEBUG=0 -I${SDKROOT}/devices/emsdk/usr/include/python${PYBUILD} -Wno-unused-command-line-argument -lopenal" make -j4
# cannot use -fno-exceptions
if EMCC_CFLAGS="-sDISABLE_EXCEPTION_CATCHING=1 -fno-rtti -DBX_CONFIG_DEBUG=0 -I${SDKROOT}/devices/emsdk/usr/include/python${PYBUILD} -Wno-unused-command-line-argument -lopenal" make -j4
then
HG=$(pwd)

Expand Down
11 changes: 7 additions & 4 deletions vendor/vendor.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
if $STATIC
export PACKAGES="emsdk harfang"
if echo "$PACKAGES" |grep -q emsdk
then
# mixed static
export PACKAGES="$PACKAGES harfang"
else
export PACKAGES="emsdk"
# standalone
export PACKAGES="emsdk harfang"
fi
export VENDOR=harfang
export LD_VENDOR="-sUSE_WEBGL2 -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2 -sFULL_ES2 -sFULL_ES3"
export LD_VENDOR="$LD_VENDOR -sUSE_WEBGL2 -sMIN_WEBGL_VERSION=2 -sMAX_WEBGL_VERSION=2 -sFULL_ES2 -sFULL_ES3"

0 comments on commit a7b71d1

Please sign in to comment.