mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
First try for swig packaging
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 .
|
||||
Reference in New Issue
Block a user