First try for swig packaging

This commit is contained in:
Ian Bell
2015-09-01 23:20:39 -06:00
parent fde81d387e
commit d343f585da
2 changed files with 12 additions and 4 deletions

View File

@@ -804,6 +804,11 @@ def swig_matlab_builder(platform, build_args = [], cmake_args = [], ctest_args =
workdir= "build/build" , haltOnFailure = True))
# Run simple integration test, but only on platforms other than windows
factory.addStep(ShellCommand(command=["ctest", "--extra-verbose"] + ctest_args, workdir = "build/build", haltOnFailure = True))
# Package a zip file from the swigged sources
factory.addStep(ShellCommand(
command=prepend_path('chmod +x build_swigged_matlab.sh && ./build_swigged_matlab.sh'),
workdir= "build/dev/scripts", env = cmake_env, haltOnFailure = True))
# Upload the files
factory.addStep(DirectoryUpload(slavesrc="install_root",masterdest=master_loc_rel,url="binaries",compress="bz2"))
fixPermissions(factory)

View File

@@ -1,3 +1,4 @@
set -o verbose
rm -rf coolprop
git clone --recursive https://github.com/coolprop/coolprop
rm -rf coolprop/.git
@@ -5,8 +6,10 @@ cd coolprop/dev
python generate_headers.py
mkdir -p ../build
cd ../build
../../swig-matlab/swig-matlab-bin/bin/swig -matlab -c++ -I../../../../include -outcurrentdir ../../../../src/CoolProp.i
swig -matlab -c++ -I../../../../include -outcurrentdir ../../../../src/CoolProp.i
cd ../..
7z a install_root/MATLAB/swigged_MATLAB_src.7z coolprop
# afterwards
cmake .. -DCOOLPROP_MATLAB_SWIGAUTOGENERATED=ON
cmake --build .
# afterwards in the coolprop/build directory
# cmake .. -DCOOLPROP_MATLAB_SWIGAUTOGENERATED=ON
# cmake --build .