From 8fceb4f0fd36bad99def97e770edeeb0487ab40e Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Mon, 21 Oct 2024 21:15:57 +0200 Subject: [PATCH] refs #4484: Restore ModelicaUtilities.h Revert "refs #3867: Remove LICENSE_ModelicaUtilities.txt" This reverts commit 7fe506f5217f69f03ba8336e5ed446a522f044c4. Revert "refs #3867: Remove ModelicaUtilities.h" This reverts commit 1bb1d40d50ee1547d0c052babb6f099bb87f0362. --- .CI/Jenkinsfile | 6 ++--- .CI/Test/Common.c | 2 +- .github/workflows/checkCI.yml | 2 +- .../VisualStudio2005/ModelicaIO.vcproj | 16 ++++++----- .../VisualStudio2005/ModelicaMatIO.vcproj | 12 ++++++--- .../ModelicaStandardTables.vcproj | 12 ++++++--- Modelica/Resources/BuildProjects/readme.txt | 8 ++---- .../Resources/C-Sources}/ModelicaUtilities.h | 0 .../Licenses/LICENSE_ModelicaUtilities.txt | 27 +++++++++++++++++++ Modelica/Utilities/Streams.mo | 2 +- 10 files changed, 60 insertions(+), 27 deletions(-) rename {.CI/Test => Modelica/Resources/C-Sources}/ModelicaUtilities.h (100%) create mode 100644 Modelica/Resources/Licenses/LICENSE_ModelicaUtilities.txt diff --git a/.CI/Jenkinsfile b/.CI/Jenkinsfile index 4018c1f6ee..ca8170359e 100644 --- a/.CI/Jenkinsfile +++ b/.CI/Jenkinsfile @@ -197,14 +197,14 @@ def allAutotools() { def autotools(CC, CPPFLAGS, config, nostatic, dotest) { sh label: "Build $CC $CPPFLAGS", script: """ export CC=$CC - export CPPFLAGS="$CPPFLAGS -I${WORKSPACE}/.CI/Test" + export CPPFLAGS=$CPPFLAGS export CFLAGS="-Os -fPIC" rm -rf Modelica/Resources/Library/* mkdir -p Modelica/Resources/Library/\$LIBDIR cd Modelica/Resources/BuildProjects/autotools git clean -fdx . ./autogen.sh - ./configure --libdir="${WORKSPACE}/Modelica/Resources/Library/\$LIBDIR" $config + ./configure --libdir="\$PWD/../../Library/\$LIBDIR" $config make --output-sync -j${numPhysicalCPU()} make install """ @@ -223,7 +223,7 @@ def makefile(CC, dotest) { rm -rf Modelica/Resources/Library/* mkdir -p "Modelica/Resources/Library/$LIBDIR" cd Modelica/Resources/BuildProjects/gcc - make --output-sync -j${numPhysicalCPU()} TARGETDIR="$LIBDIR" CPPFLAGS="-I${WORKSPACE}/.CI/Test" + make --output-sync -j${numPhysicalCPU()} TARGETDIR="$LIBDIR" """ sh label: "Test $CC", script: """ export CC=$CC diff --git a/.CI/Test/Common.c b/.CI/Test/Common.c index e5b6600f82..6454689ed9 100644 --- a/.CI/Test/Common.c +++ b/.CI/Test/Common.c @@ -1,4 +1,4 @@ -#include "ModelicaUtilities.h" +#include "../../Modelica/Resources/C-Sources/ModelicaUtilities.h" #include #include #include diff --git a/.github/workflows/checkCI.yml b/.github/workflows/checkCI.yml index bca5cc58b4..55dfefdddb 100644 --- a/.github/workflows/checkCI.yml +++ b/.github/workflows/checkCI.yml @@ -17,7 +17,7 @@ jobs: pushd Modelica/Resources/BuildProjects/autotools git clean -fdx . ./autogen.sh - ./configure --libdir="$PWD/../../Library/$LIBDIR" --enable-static --disable-shared --enable-static-zlib --disable-hdf5 CPPFLAGS="-I${GITHUB_WORKSPACE}/.CI/Test" + ./configure --libdir="$PWD/../../Library/$LIBDIR" --enable-static --disable-shared --enable-static-zlib --disable-hdf5 make --output-sync sudo make install popd diff --git a/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaIO.vcproj b/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaIO.vcproj index 2cd3e4eedb..b6e0a79592 100644 --- a/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaIO.vcproj +++ b/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaIO.vcproj @@ -43,7 +43,7 @@ + + @@ -297,6 +301,4 @@ > - - diff --git a/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaMatIO.vcproj b/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaMatIO.vcproj index 8c02967f5a..0e08ee6da4 100644 --- a/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaMatIO.vcproj +++ b/Modelica/Resources/BuildProjects/VisualStudio2005/ModelicaMatIO.vcproj @@ -43,7 +43,7 @@ + + + +