Changeset 25946


Ignore:
Timestamp:
2016-04-06T06:33:21+02:00 (8 years ago)
Author:
adrpo
Message:
  • add scripts to build both 32bit and 64bit OpenModelica on Windows
Location:
installers/windows/OpenModelicaSetup
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • installers/windows/OpenModelicaSetup/BuildWindowsRelease.sh

    r25945 r25946  
    55#
    66# expects to have these things installed:
    7 #  python 2.7.x (you need to run easy_install joblib simplejson requests in the cmd line in python\Scripts)
    87#  nsis installer
    98#  TortoiseSVN command line tools
    10 #  Qt 4.8.0
    119#  jdk
    1210#  git command line clients (PUT IT LAST IN THE PATH!) http://git-scm.com/downloads
     
    1715export SSHUSER=$1
    1816export MAKETHREADS=$2
    19 export GIT_BRANCH=$3
     17export PLATFORM=$3 # 32bit or 64bit
     18export GIT_BRANCH=$4
    2019
    2120# set the path to our tools
    22 export PATH=$PATH:/c/bin/python273:/c/Program\ Files/TortoiseSVN/bin/:/c/bin/jdk/bin:/c/bin/nsis/:/c/bin/QtSDK/Desktop/Qt/4.8.0/mingw/bin:/c/bin/git/bin:
     21export PATH=$PATH:/c/Program\ Files/TortoiseSVN/bin/:/c/bin/jdk/bin:/c/bin/nsis/:/c/bin/git/bin:
    2322
    2423# set the OPENMODELICAHOME and OPENMODELICALIBRARY
     
    5150# Directory prefix
    5251export OMC_INSTALL_PREFIX="/c/dev/OpenModelica_releases/${REVISION}/"
     52# make the file prefix
     53export OMC_INSTALL_FILE_PREFIX="${OMC_INSTALL_PREFIX}OpenModelica-${REVISION}-${PLATFORM}"
    5354
    5455# test if exists and exit if it does
    55 if [ -d "${OMC_INSTALL_PREFIX}" ]; then
    56   echo "Revision ${OMC_INSTALL_PREFIX} already exists! Exiting ..."
     56if [ -f "${OMC_INSTALL_FILE_PREFIX}.exe" ]; then
     57  echo "Revision ${OMC_INSTALL_FILE_PREFIX}.exe already exists! Exiting ..."
    5758  exit 0
    5859fi
     
    6061# create the revision directory
    6162mkdir -p ${OMC_INSTALL_PREFIX}
    62 # make the file prefix
    63 export OMC_INSTALL_FILE_PREFIX="${OMC_INSTALL_PREFIX}OpenModelica-${REVISION}"
    6463
    6564# update OpenModelicaSetup
     
    7271rm -rf build/
    7372mkdir build/
     73make -f 'Makefile.omdev.mingw' ${MAKETHREADS} gitclean || true
    7474make -f 'Makefile.omdev.mingw' ${MAKETHREADS} clean
    7575cd /c/dev/OpenModelica
    76 echo "Building OpenModelica"
    77 make -f 'Makefile.omdev.mingw' ${MAKETHREADS}
    78 echo "Building OpenModelica libraries"
    79 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} omlibrary-all
     76echo "Building OpenModelica and OpenModelica libraries"
     77make -f 'Makefile.omdev.mingw' ${MAKETHREADS} omc omc-diff omlibrary-all qtclients
    8078cd /c/dev/OpenModelica
    8179echo "Installing Python scripting"
    8280rm -rf OMPython
    8381git clone https://github.com/OpenModelica/OMPython -q -b master /c/dev/OpenModelica/OMPython
    84 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} install-python
    85 #build OMClients
    86 echo "Cleaning OMClients"
    87 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} clean-qtclients
    88 echo "Building OMClients"
    89 make -f 'Makefile.omdev.mingw' -j2 qtclients
     82make -k -f 'Makefile.omdev.mingw' ${MAKETHREADS} install-python
    9083cd /c/dev/OpenModelica
    9184echo "Building MSVC compiled runtime"
    92 make -f 'Makefile.omdev.mingw' simulationruntimecmsvc
     85make -f 'Makefile.omdev.mingw' ${MAKETHREADS} simulationruntimecmsvc
    9386echo "Building MSVC CPP runtime"
    94 make -f 'Makefile.omdev.mingw' BUILDTYPE=Release runtimeCPPmsvcinstall
     87make -f 'Makefile.omdev.mingw' ${MAKETHREADS} BUILDTYPE=Release runtimeCPPmsvcinstall
    9588echo "Building CPP runtime"
    96 make -f 'Makefile.omdev.mingw' BUILDTYPE=Release runtimeCPPinstall
     89make -f 'Makefile.omdev.mingw' ${MAKETHREADS} BUILDTYPE=Release runtimeCPPinstall
    9790
    9891# wget the html & pdf versions of OpenModelica users guide
     
    109102# build the installer
    110103cd /c/dev/OpenModelica/OpenModelicaSetup
    111 makensis OpenModelicaSetup.nsi > trace.txt 2>&1
     104makensis OpenModelicaSetup${PLATFORM}.nsi > trace.txt 2>&1
    112105cat trace.txt
    113106# move the installer
    114 mv OpenModelica.exe ${OMC_INSTALL_FILE_PREFIX}.exe
     107mv OpenModelica${PLATFORM}.exe ${OMC_INSTALL_FILE_PREFIX}.exe
    115108
    116109# gather the svn log
     
    126119echo "See also (match revision ${REVISION} to build jobs):" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt
    127120echo "  https://test.openmodelica.org/hudson/" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt
    128 echo "  http://test.openmodelica.org/~marsj/MSL31/BuildModelRecursive.html" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt
    129121echo "  http://test.openmodelica.org/~marsj/MSL32/BuildModelRecursive.html" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt
    130122echo " " >> ${OMC_INSTALL_FILE_PREFIX}-README.txt
     
    180172ssh ${SSHUSER}@build.openmodelica.org <<ENDSSH
    181173#commands to run on remote host
    182 cd public_html/omc/builds/windows/nightly-builds/
     174cd public_html/omc/builds/windows/nightly-builds/${PLATFORM}/
    183175mv -f OpenModelica* older/
    184176ENDSSH
    185 scp OpenModelica* ${SSHUSER}@build.openmodelica.org:public_html/omc/builds/windows/nightly-builds/
     177scp OpenModelica* ${SSHUSER}@build.openmodelica.org:public_html/omc/builds/windows/nightly-builds/${PLATFORM}/
    186178echo "All done!"
  • installers/windows/OpenModelicaSetup/OpenModelicaSetup32bit.nsi

    r25945 r25946  
    22# 2011-jul-29 21:01:29
    33
    4 Name OpenModelica1.10.0-dev
     4Name OpenModelica1.10.0-dev-32bit
    55
    66# General Symbol Definitions
    77!define REGKEY "SOFTWARE\OpenModelica"
    8 !define VERSION 1.10.0-dev
     8!define VERSION 1.10.0-dev-32bit
    99!define COMPANY "Open Source Modelica Consortium (OSMC) and Linköping University (LiU)."
    1010!define URL "http://www.openmodelica.org/"
     
    103103  SetOutPath "$INSTDIR\bin"
    104104  File "..\build\bin\*"
    105   File /r /x "*.svn" /x "qsvgicon4.dll" "$%OMDEV%\tools\OMTools\dll\*"
    106   File "$%OMDEV%\lib\omniORB-4.1.6-mingw\bin\x86_win32\omniORB416_rt.dll"
    107   File "$%OMDEV%\lib\omniORB-4.1.6-mingw\bin\x86_win32\omniDynamic416_rt.dll"
    108   File "$%OMDEV%\lib\omniORB-4.1.6-mingw\bin\x86_win32\omnithread34_rt.dll"
    109105  File "..\OMCompiler\OSMC-License.txt"
    110106  # Copy the openssl binaries
     
    112108  File "bin\libssl32.dll"
    113109  File "bin\ssleay32.dll"
    114   # Create bin\iconengines directory and copy files in it
    115   SetOutPath "$INSTDIR\bin\iconengines"
    116   File "$%OMDEV%\tools\OMTools\dll\qsvgicon4.dll"
     110  # Create bin\plugings\* directories
     111  File /r /x "*.svn" "$%OMDEV%\tools\msys\mingw32\share\qt5\plugins\*"
    117112  # Create icons directory and copy files in it
    118113  SetOutPath "$INSTDIR\icons"
     
    129124  SetOutPath "$INSTDIR\lib"
    130125  File /r /x "*.svn" /x "*.git" "..\build\lib\*"
    131   # Create MinGW directory and copy files in it
    132   SetOutPath "$INSTDIR\MinGW"
    133   File /r /x "*.svn" "$%OMDEV%\tools\MinGW\*"
    134126  # Create msys directory and copy files in it
    135   SetOutPath "$INSTDIR\msys"
    136   File /r /x "*.svn" "$%OMDEV%\tools\msys\*"
     127  SetOutPath "$INSTDIR\tools\msys"
     128  File /r /x "group" /x "passwd" /x "mingw64" /x "pacman.log" "$%OMDEV%\tools\msys\*"
    137129  # Create share directory and copy files in it
    138130  SetOutPath "$INSTDIR\share"
     
    181173
    182174Section -post SEC0001
    183   # create the file with InstallMode
    184   FileOpen $4 "$INSTDIR\msys\etc\fstab" w
    185   FileWrite $4 "$INSTDIR\MinGW   /mingw"
    186   FileClose $4
     175  # generate group and passwd files for this machine!
     176  Exec '"$INSTDIR\tools\msys\usr\bin\mkpasswd.exe" -l -c > $INSTDIR\tools\msys\etc\passwd'
     177  Exec '"$INSTDIR\tools\msys\usr\bin\mkgroup.exe" -l -c > $INSTDIR\tools\msys\etc\group'
    187178  # do post installation actions
    188179  WriteRegStr SHCTX "${REGKEY}" Path $INSTDIR
Note: See TracChangeset for help on using the changeset viewer.