Skip to content

Commit

Permalink
updated Rakefile and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ebertolazzi committed Jan 28, 2022
1 parent dd60abf commit 4280993
Show file tree
Hide file tree
Showing 25 changed files with 147 additions and 101 deletions.
35 changes: 18 additions & 17 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cmd_cmake_build += " -DEB_INSTALL_LOCAL=ON "

FileUtils.cp './cmake/CMakeLists-cflags.txt', 'submodules/Utils/cmake/CMakeLists-cflags.txt'
FileUtils.cp './cmake/CMakeLists-cflags.txt', 'submodules/quarticRootsFlocke/cmake/CMakeLists-cflags.txt'
FileUtils.cp './cmake/CMakeLists-cflags.txt', 'submodules/GenericContainer/CMakeLists-cflags.txt'
FileUtils.cp './cmake/CMakeLists-cflags.txt', 'submodules/GenericContainer/cmake/CMakeLists-cflags.txt'

desc "run tests"
task :test do
Expand Down Expand Up @@ -97,14 +97,18 @@ task :build_win, [:year, :bits] do |t, args|
sh 'cmake --build . --config Release --target install '+PARALLEL+QUIET
end

if RUN_CPACK then
puts "run CPACK for SPLINES".yellow
sh 'cpack -C CPackConfig.cmake'
sh 'cpack -C CPackSourceConfig.cmake'
end

FileUtils.cd '..'
end


desc "compile for OSX"
task :build, [:os] do |t, args|

args.with_defaults( :os => "osx" )
desc "compile for OSX/LINUX"
task :build do

dir = "build"

Expand All @@ -120,29 +124,26 @@ task :build, [:os] do |t, args|
if COMPILE_DEBUG then
sh 'cmake --build . --config Debug --target install '+PARALLEL+QUIET
else
sh 'cmake --build . --config Release --target install '+PARALLEL+QUIET
sh 'cmake --build . --config Release --target install '+PARALLEL+QUIET
end

if RUN_CPACK then
puts "run CPACK for SPLINES".yellow
sh 'cpack -C CPackConfig.cmake'
sh 'cpack -C CPackSourceConfig.cmake'
end

FileUtils.cd '..'
end

desc "compile for LINUX"
task :build_linux do
Rake::Task[:build].invoke("linux")
Rake::Task[:build].invoke()
end

desc "compile for OSX"
task :build_osx do
Rake::Task[:build].invoke("osx")
end

desc 'pack for OSX/LINUX/WINDOWS'
task :cpack do
FileUtils.cd "build"
puts "run CPACK for ROOTS".yellow
sh 'cpack -C CPackConfig.cmake'
sh 'cpack -C CPackSourceConfig.cmake'
FileUtils.cd ".."
Rake::Task[:build].invoke()
end

task :clean_osx do
Expand Down
11 changes: 6 additions & 5 deletions Rakefile_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
if File.exists?(File.expand_path('../Rakefile_conf.rb', File.dirname(__FILE__))) then
require_relative '../Rakefile_conf.rb'
else
COMPILE_DEBUG = false
COMPILE_DYNAMIC = true
COMPILE_EXECUTABLE = true
USE_NMAKE = true

case RUBY_PLATFORM
when /mingw|mswin/
PARALLEL = ''
Expand All @@ -24,3 +19,9 @@
end
end
end

COMPILE_DEBUG = false unless defined?(COMPILE_DEBUG)
COMPILE_DYNAMIC = true unless defined?(COMPILE_DYNAMIC)
COMPILE_EXECUTABLE = true unless defined?(COMPILE_EXECUTABLE)
USE_NMAKE = true unless defined?(USE_NMAKE)
RUN_CPACK = false unless defined?(RUN_CPACK)
5 changes: 2 additions & 3 deletions Splines.prj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<deployment-project plugin="plugin.toolbox" plugin-version="1.0">
<configuration build-checksum="2172842652" file="/Users/enrico/Ricerca/Software/REPOS/myReposGit/Splines/Splines.prj" location="/Users/enrico/Ricerca/Software/REPOS/myReposGit/Splines" name="Splines" target="target.toolbox" target-name="Package Toolbox">
<configuration build-checksum="369575358" file="/Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/Splines.prj" location="/Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines" name="Splines" target="target.toolbox" target-name="Package Toolbox">
<param.appname>Splines</param.appname>
<param.authnamewatermark>Enrico Bertolazzi</param.authnamewatermark>
<param.email>[email protected]</param.email>
Expand Down Expand Up @@ -117,7 +117,6 @@ setup.m</param.exclude.filters>
<fileset.rootfiles>
<file>${PROJECT_ROOT}/toolbox/bin</file>
<file>${PROJECT_ROOT}/toolbox/demos.xml</file>
<file>${PROJECT_ROOT}/toolbox/doc</file>
<file>${PROJECT_ROOT}/toolbox/icon.pdf</file>
<file>${PROJECT_ROOT}/toolbox/icon.png</file>
<file>${PROJECT_ROOT}/toolbox/icon.svg</file>
Expand All @@ -131,7 +130,7 @@ setup.m</param.exclude.filters>
<fileset.depfun.excluded />
<fileset.package />
<build-deliverables>
<file location="${PROJECT_ROOT}" name="Splines.mltbx" optional="false">/Users/enrico/Ricerca/Software/REPOS/myReposGit/Splines/Splines.mltbx</file>
<file location="${PROJECT_ROOT}" name="Splines.mltbx" optional="false">/Users/enrico/Ricerca/develop/PINS/pins-mechatronix/LibSources/submodules/Splines/Splines.mltbx</file>
</build-deliverables>
<workflow />
<matlab>
Expand Down
4 changes: 2 additions & 2 deletions docs/api-cpp/file_Splines.hh.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ <h2>Functions<a class="headerlink" href="#functions" title="Permalink to this he
<li><p><a class="reference internal" href="function_a00089_1aeb6c86ca718705bd71ad29b32c3f6d03.html#exhale-function-a00089-1aeb6c86ca718705bd71ad29b32c3f6d03"><span class="std std-ref">Function Splines::backtrace</span></a></p></li>
<li><p><a class="reference internal" href="function_a00089_1aeea9f9f28b21dbf93715fd27a7c7106c.html#exhale-function-a00089-1aeea9f9f28b21dbf93715fd27a7c7106c"><span class="std std-ref">Function Splines::FangHung</span></a></p></li>
<li><p><a class="reference internal" href="function_a00089_1ac5930dd87f51e2577e79a2bdd746c6b2.html#exhale-function-a00089-1ac5930dd87f51e2577e79a2bdd746c6b2"><span class="std std-ref">Function Splines::FoleyNielsen</span></a></p></li>
<li><p><a class="reference internal" href="function_a00089_1ab131f65c6191734b6f2e502257b57d0f.html#exhale-function-a00089-1ab131f65c6191734b6f2e502257b57d0f"><span class="std std-ref">Function Splines::Hermite3toPoly</span></a></p></li>
<li><p><a class="reference internal" href="function_a00089_1ac224d3e03da08343b0bf26eb4170d6a2.html#exhale-function-a00089-1ac224d3e03da08343b0bf26eb4170d6a2"><span class="std std-ref">Function Splines::Hermite5toPoly</span></a></p></li>
<li><p><a class="reference internal" href="function_a00089_1a4c90f8a2f98ee41ea44aecffd8e9b368.html#exhale-function-a00089-1a4c90f8a2f98ee41ea44aecffd8e9b368"><span class="std std-ref">Function Splines::Hermite3_to_poly</span></a></p></li>
<li><p><a class="reference internal" href="function_a00089_1ab3cfd1da3778cf0593bb6364ce28550c.html#exhale-function-a00089-1ab3cfd1da3778cf0593bb6364ce28550c"><span class="std std-ref">Function Splines::Hermite5_to_poly</span></a></p></li>
<li><p><a class="reference internal" href="function_a00089_1a9437a6461e2735153715bb43bc7d734f.html#exhale-function-a00089-1a9437a6461e2735153715bb43bc7d734f"><span class="std std-ref">Function Splines::universal</span></a></p></li>
</ul>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<title>Function Splines::Hermite3toPoly &#8212; Splines v1.1.1
<title>Function Splines::Hermite3_to_poly &#8212; Splines v1.1.1
</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="../_static/cloud.css" />
Expand Down Expand Up @@ -48,7 +48,7 @@

<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Function Splines::Hermite5toPoly" href="function_a00089_1ac224d3e03da08343b0bf26eb4170d6a2.html" />
<link rel="next" title="Function Splines::Hermite5_to_poly" href="function_a00089_1ab3cfd1da3778cf0593bb6364ce28550c.html" />
<link rel="prev" title="Function Splines::get_region" href="function_a00089_1a64d0e892133ce06e0a3577c3bea0f549.html" />
<meta name="viewport" content="width=device-width, initial-scale=1">
</head><body>
Expand All @@ -64,15 +64,15 @@ <h3>Navigation</h3>
<a href="../index.html" title="Table Of Contents"
accesskey="C">toc</a> &nbsp; &nbsp;</li>
<li class="right" >
<a href="function_a00089_1ac224d3e03da08343b0bf26eb4170d6a2.html" title="Function Splines::Hermite5toPoly"
<a href="function_a00089_1ab3cfd1da3778cf0593bb6364ce28550c.html" title="Function Splines::Hermite5_to_poly"
accesskey="N">next</a> &nbsp; &nbsp;</li>
<li class="right" >
<a href="function_a00089_1a64d0e892133ce06e0a3577c3bea0f549.html" title="Function Splines::get_region"
accesskey="P">previous</a> &nbsp; &nbsp;</li>
<li><a href="../index.html">Splines</a> &#187;</li>

<li class="nav-item nav-item-1"><a href="root.html" accesskey="U">C++ API</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Function Splines::Hermite3toPoly</a></li>
<li class="nav-item nav-item-this"><a href="">Function Splines::Hermite3_to_poly</a></li>
</ul>
</div>
</div>
Expand All @@ -83,8 +83,8 @@ <h3>Navigation</h3>
<div class="bodywrapper">
<div class="body" role="main">

<section id="function-splines-hermite3topoly">
<span id="exhale-function-a00089-1ab131f65c6191734b6f2e502257b57d0f"></span><h1>Function Splines::Hermite3toPoly<a class="headerlink" href="#function-splines-hermite3topoly" title="Permalink to this headline"></a>
<section id="function-splines-hermite3-to-poly">
<span id="exhale-function-a00089-1a4c90f8a2f98ee41ea44aecffd8e9b368"></span><h1>Function Splines::Hermite3_to_poly<a class="headerlink" href="#function-splines-hermite3-to-poly" title="Permalink to this headline"></a>
</h1>
<ul class="simple">
<li><p>Defined in <a class="reference internal" href="file_Splines.hh.html#file-splines-hh"><span class="std std-ref">File Splines.hh</span></a></p></li>
Expand All @@ -93,8 +93,8 @@ <h3>Navigation</h3>
<h2>Function Documentation<a class="headerlink" href="#function-documentation" title="Permalink to this headline"></a>
</h2>
<dl class="cpp function">
<dt class="sig sig-object cpp" id="_CPPv4N7Splines14Hermite3toPolyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type">
<span id="_CPPv3N7Splines14Hermite3toPolyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type"></span><span id="_CPPv2N7Splines14Hermite3toPolyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type"></span><span id="Splines::Hermite3toPoly__real_type.real_type.real_type.real_type.real_type.real_typeR.real_typeR.real_typeR.real_typeR"></span><span class="target" id="a00089_1ab131f65c6191734b6f2e502257b57d0f"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="k"><span class="pre">inline</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-prename descclassname"><span class="n"><span class="pre">Splines</span></span><span class="p"><span class="pre">::</span></span></span><span class="sig-name descname"><span class="n"><span class="pre">Hermite3toPoly</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">H</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">P0</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">P1</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">DP0</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">DP1</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">A</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">B</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">C</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">D</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N7Splines14Hermite3toPolyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type" title="Permalink to this definition"></a><br>
<dt class="sig sig-object cpp" id="_CPPv4N7Splines16Hermite3_to_polyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type">
<span id="_CPPv3N7Splines16Hermite3_to_polyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type"></span><span id="_CPPv2N7Splines16Hermite3_to_polyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type"></span><span id="Splines::Hermite3_to_poly__real_type.real_type.real_type.real_type.real_type.real_typeR.real_typeR.real_typeR.real_typeR"></span><span class="target" id="a00089_1a4c90f8a2f98ee41ea44aecffd8e9b368"></span><span class="k"><span class="pre">static</span></span><span class="w"> </span><span class="k"><span class="pre">inline</span></span><span class="w"> </span><span class="kt"><span class="pre">void</span></span><span class="w"> </span><span class="sig-prename descclassname"><span class="n"><span class="pre">Splines</span></span><span class="p"><span class="pre">::</span></span></span><span class="sig-name descname"><span class="n"><span class="pre">Hermite3_to_poly</span></span></span><span class="sig-paren">(</span><a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">H</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">P0</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">P1</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">DP0</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="n sig-param"><span class="pre">DP1</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">A</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">B</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">C</span></span>, <a class="reference internal" href="typedef_a00089_1afabb8610fb01952c2fcf1f17337bd44a.html#_CPPv4N7Splines9real_typeE" title="Splines::real_type"><span class="n"><span class="pre">real_type</span></span></a><span class="w"> </span><span class="p"><span class="pre">&amp;</span></span><span class="n sig-param"><span class="pre">D</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv4N7Splines16Hermite3_to_polyE9real_type9real_type9real_type9real_type9real_typeR9real_typeR9real_typeR9real_typeR9real_type" title="Permalink to this definition"></a><br>
</dt>
<dd>
<p>Convert polynomial defined using Hermite base</p>
Expand Down Expand Up @@ -175,15 +175,15 @@ <h3>Navigation</h3>
<a href="../index.html" title="Table Of Contents"
>toc</a> &nbsp; &nbsp;</li>
<li class="right" >
<a href="function_a00089_1ac224d3e03da08343b0bf26eb4170d6a2.html" title="Function Splines::Hermite5toPoly"
<a href="function_a00089_1ab3cfd1da3778cf0593bb6364ce28550c.html" title="Function Splines::Hermite5_to_poly"
>next</a> &nbsp; &nbsp;</li>
<li class="right" >
<a href="function_a00089_1a64d0e892133ce06e0a3577c3bea0f549.html" title="Function Splines::get_region"
>previous</a> &nbsp; &nbsp;</li>
<li><a href="../index.html">Splines</a> &#187;</li>

<li class="nav-item nav-item-1"><a href="root.html" >C++ API</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Function Splines::Hermite3toPoly</a></li>
<li class="nav-item nav-item-this"><a href="">Function Splines::Hermite3_to_poly</a></li>
</ul>
</div>
</div>
Expand Down
Loading

0 comments on commit 4280993

Please sign in to comment.