Changeset 21926


Ignore:
Timestamp:
08/09/17 17:34:24 (8 years ago)
Author:
dlcheng
Message:

CHG: Addressing JS compilation issues.

Location:
issm/trunk-jpl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/emscripten/install.sh

    r20870 r21926  
    2020./emsdk install latest
    2121./emsdk activate latest
     22
     23cd ../
     24mv src install
     25cd install
     26
     27source ./emsdk_env.sh
  • issm/trunk-jpl/jenkins/jenkins.sh

    r21869 r21926  
    3030MATLAB_TEST=0
    3131PYTHON_TEST=0
     32JAVASCRIPT_TEST=0
    3233
    3334#source configuration script
     
    141142
    142143        #install if requested or if previous install has not been successful
    143         if [ "$ISSM_EXTERNALPACKAGES" == "yes" ] || [ ! -d ./install ] || [ ! "$(ls -A ./install)" ]; then
     144        if [ "$ISSM_EXTERNALPACKAGES" == "yes" ] || [ ! -d ./install -a ! -d ./install-javascript ] || ([ -d ./install ] && [ ! "$(ls -A ./install)" ]) || ([ -d ./install-javascript ] && [ ! "$(ls -A ./install-javascript)" ]); then
    144145                echo "======================================================";
    145146                echo "       Installing $PACKAGENAME                        ";
     
    181182fi
    182183
     184#Set CXX/CC flags for JS runs after exnteralpackages to avoid conflicts during their compilation
     185CXX_PREVIOUS=$CXX
     186CC_PREVIOUS=$CC
     187if [ $JAVASCRIPT_TEST -eq 1 ]; then
     188        export CXX=em++
     189        export CC=emcc
     190fi
     191
    183192source $ISSM_DIR/etc/environment.sh
    184193
    185 if [ "$OS" == "win" ]
    186 then
     194if [ "$OS" == "win" ]; then
    187195        echo " == WINDOWS ENVIRONMENT DETECTED =="
    188196        source $ISSM_DIR/externalpackages/windows/windows_environment.sh
     
    238246#}}}
    239247
     248#Restore CXX/CC to their previous values
     249export CXX=$CXX_PREVIOUS
     250export CC=$CC_PREVIOUS
     251
    240252#matlab tests
    241253# {{{
  • issm/trunk-jpl/jenkins/linux64_ross_javascript

    r21922 r21926  
    2424
    2525#List of external pakages to be installed and their installation scripts
    26 EXTERNALPACKAGES="gsl                     install-javascript.sh   
     26EXTERNALPACKAGES="autotools     install.sh
     27                                                cmake         install.sh
     28                                                emscripten    install.sh       
     29                                                gsl           install-javascript.sh   
    2730                                                triangle      install-javascript.sh       
    28                                                 shell2junit   install.sh
    29                                                 emscripten        install.sh"
     31                                                shell2junit   install.sh"
    3032
    3133#-----------------#
  • issm/trunk-jpl/src/m/Makefile.am

    r21530 r21926  
    135135                                ${ISSM_DIR}/src/m/io/savemodel.js \
    136136                                ${ISSM_DIR}/src/m/io/loadmodel.js \
    137                                 ${ISSM_DIR}/src/m/io/saveAsFile.js \
    138137                                ${ISSM_DIR}/src/m/io/writetofile.js \
    139                                 ${ISSM_DIR}/src/m/io/download.js \
    140138                                ${ISSM_DIR}/src/m/io/writetofile.js \
    141139                                ${ISSM_DIR}/src/m/materials/paterson.js \
Note: See TracChangeset for help on using the changeset viewer.