Skip to content

Commit

Permalink
fix for debug msvc cpp runtime build
Browse files Browse the repository at this point in the history
  • Loading branch information
niklwors committed May 21, 2015
1 parent 1b90621 commit 8a7b5a0
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 61 deletions.
2 changes: 1 addition & 1 deletion 3rdParty
Submodule 3rdParty updated 96 files
+30 −30 FMIL/Config.cmake/fmilib.h
+26 −26 FMIL/LICENSE.md
+39 −39 FMIL/Test/FMI1/compress_test_fmu_zip.c
+80 −80 FMIL/Test/FMI1/fmi1_import_test.c
+210 −210 FMIL/Test/FMI1/fmi1_logger_test.c
+229 −229 FMIL/Test/FMI1/fmi_import_cs_test.c
+275 −275 FMIL/Test/FMI1/fmi_import_me_test.c
+268 −268 FMIL/Test/FMI1/fmu_dummy/fmu1_model.h
+162 −162 FMIL/Test/FMI1/fmu_dummy/fmu1_model_cs.c
+68 −68 FMIL/Test/FMI1/fmu_dummy/fmu1_model_defines.h
+157 −157 FMIL/Test/FMI1/fmu_dummy/fmu1_model_me.c
+98 −98 FMIL/Test/FMI2/fmi2_import_test.c
+248 −248 FMIL/Test/FMI2/fmu_dummy/fmu2_model.h
+180 −180 FMIL/Test/FMI2/fmu_dummy/fmu2_model_cs.c
+60 −60 FMIL/Test/FMI2/fmu_dummy/fmu2_model_defines.h
+185 −185 FMIL/Test/FMI2/fmu_dummy/fmu2_model_me.c
+38 −38 FMIL/Test/fmi_zip_unzip_test.c
+45 −45 FMIL/Test/fmi_zip_zip_test.c
+1 −1 FMIL/ThirdParty/Minizip/minizip/miniunz.c
+332 −332 FMIL/src/CAPI/include/FMI1/fmi1_capi.h
+275 −275 FMIL/src/CAPI/include/FMI2/fmi2_capi.h
+1 −1 FMIL/src/CAPI/src/FMI1/fmi1_capi.c
+90 −90 FMIL/src/CAPI/src/FMI1/fmi1_capi_cs.c
+127 −127 FMIL/src/CAPI/src/FMI1/fmi1_capi_me.c
+107 −107 FMIL/src/CAPI/src/FMI2/fmi2_capi.c
+59 −59 FMIL/src/CAPI/src/FMI2/fmi2_capi_cs.c
+11 −11 FMIL/src/CAPI/src/FMI2/fmi2_capi_impl.h
+92 −92 FMIL/src/CAPI/src/FMI2/fmi2_capi_me.c
+120 −120 FMIL/src/Import/include/FMI/fmi_import_context.h
+59 −59 FMIL/src/Import/include/FMI/fmi_import_util.h
+220 −220 FMIL/src/Import/include/FMI1/fmi1_import.h
+7 −7 FMIL/src/Import/include/FMI1/fmi1_import_capabilities.h
+363 −363 FMIL/src/Import/include/FMI1/fmi1_import_capi.h
+22 −22 FMIL/src/Import/include/FMI1/fmi1_import_convenience.h
+13 −13 FMIL/src/Import/include/FMI1/fmi1_import_type.h
+11 −11 FMIL/src/Import/include/FMI1/fmi1_import_unit.h
+38 −38 FMIL/src/Import/include/FMI1/fmi1_import_variable.h
+127 −127 FMIL/src/Import/include/FMI1/fmi1_import_variable_list.h
+18 −18 FMIL/src/Import/include/FMI1/fmi1_import_vendor_annotations.h
+357 −357 FMIL/src/Import/include/FMI2/fmi2_import.h
+577 −577 FMIL/src/Import/include/FMI2/fmi2_import_capi.h
+22 −22 FMIL/src/Import/include/FMI2/fmi2_import_convenience.h
+13 −13 FMIL/src/Import/include/FMI2/fmi2_import_type.h
+11 −11 FMIL/src/Import/include/FMI2/fmi2_import_unit.h
+21 −21 FMIL/src/Import/include/FMI2/fmi2_import_variable.h
+126 −126 FMIL/src/Import/include/FMI2/fmi2_import_variable_list.h
+7 −7 FMIL/src/Import/src/FMI/fmi_import_context.c
+42 −42 FMIL/src/Import/src/FMI/fmi_import_context_impl.h
+54 −54 FMIL/src/Import/src/FMI/fmi_import_util.c
+5 −5 FMIL/src/Import/src/FMI1/fmi1_import_capi.c
+55 −55 FMIL/src/Import/src/FMI1/fmi1_import_impl.h
+6 −6 FMIL/src/Import/src/FMI1/fmi1_import_variable.c
+14 −14 FMIL/src/Import/src/FMI2/fmi2_import.c
+26 −26 FMIL/src/Import/src/FMI2/fmi2_import_capi.c
+48 −48 FMIL/src/Import/src/FMI2/fmi2_import_impl.h
+6 −6 FMIL/src/Import/src/FMI2/fmi2_import_variable.c
+11 −11 FMIL/src/Util/include/FMI/fmi_util.h
+8 −8 FMIL/src/Util/include/FMI/fmi_version.h
+53 −53 FMIL/src/Util/include/FMI1/fmi1_enums.h
+121 −121 FMIL/src/Util/include/FMI1/fmi1_functions.h
+66 −66 FMIL/src/Util/include/FMI1/fmi1_types.h
+85 −85 FMIL/src/Util/include/FMI2/fmi2_enums.h
+146 −146 FMIL/src/Util/include/FMI2/fmi2_functions.h
+66 −66 FMIL/src/Util/include/FMI2/fmi2_types.h
+5 −5 FMIL/src/Util/include/JM/jm_callbacks.h
+111 −111 FMIL/src/Util/include/JM/jm_portability.h
+37 −37 FMIL/src/Util/src/FMI/fmi_util.c
+11 −11 FMIL/src/Util/src/FMI/fmi_version.c
+45 −45 FMIL/src/Util/src/FMI1/fmi1_enums.c
+74 −74 FMIL/src/XML/include/FMI/fmi_xml_context.h
+229 −229 FMIL/src/XML/include/FMI1/fmi1_xml_model_description.h
+253 −253 FMIL/src/XML/include/FMI2/fmi2_xml_model_description.h
+16 −16 FMIL/src/XML/include/FMI2/fmi2_xml_model_structure.h
+2 −2 FMIL/src/XML/src/FMI/fmi_xml_context.c
+2 −2 FMIL/src/XML/src/FMI/fmi_xml_context_impl.h
+25 −25 FMIL/src/XML/src/FMI1/fmi1_xml_model_description.c
+1 −1 FMIL/src/XML/src/FMI1/fmi1_xml_query.c
+114 −114 FMIL/src/XML/src/FMI2/fmi2_xml_model_description_impl.h
+2 −2 FMIL/src/XML/src/FMI2/fmi2_xml_parser.c
+7 −7 FMIL/src/XML/src/FMI2/fmi2_xml_parser.h
+1 −1 FMIL/src/XML/src/FMI2/fmi2_xml_query.c
+4 −4 FMIL/src/ZIP/src/fmi_zip_unzip.c
+12 −12 FMIL/src/ZIP/src/fmi_zip_zip.c
+1 −1 Ipopt/Ipopt/src/Algorithm/IpIpoptAlg.cpp
+90 −90 ModelicaExternalC/C-Sources/gconstructor.h
+4 −4 graphstream/Makefile
+71 −71 graphstream/gs-netstream/c++/Makefile
+224 −224 graphstream/gs-netstream/c++/src/netstream-constants.h
+143 −143 graphstream/gs-netstream/c++/src/netstream-main.cpp
+330 −330 graphstream/gs-netstream/c++/src/netstream-sender.cpp
+211 −211 graphstream/gs-netstream/c++/src/netstream-sender.h
+40 −40 graphstream/gs-netstream/c++/src/netstream-sizes.h
+638 −638 graphstream/gs-netstream/c++/src/netstream-socket.cpp
+131 −131 graphstream/gs-netstream/c++/src/netstream-socket.h
+540 −540 graphstream/gs-netstream/c++/src/netstream-storage.cpp
+130 −130 graphstream/gs-netstream/c++/src/netstream-storage.h
59 changes: 16 additions & 43 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -466,10 +466,6 @@ template simulationFactoryFile(SimCode simCode ,Text& extraFuncs,Text& extraFunc
match simCode
case SIMCODE(modelInfo=MODELINFO()) then
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>Extension.h" */

#if defined(__TRICORE__) || defined(__vxworks)
#include <Core/System/FactoryExport.h>
#include <Core/DataExchange/SimData.h>
Expand Down Expand Up @@ -534,9 +530,6 @@ template simulationInitCppFile(SimCode simCode ,Text& extraFuncs,Text& extraFunc
match simCode
case SIMCODE(modelInfo = MODELINFO(__)) then
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>Initialize.h" */
#include <Core/System/EventHandling.h>
#include <Core/System/DiscreteEvents.h>
<%algloopfilesInclude(listAppend(allEquations,initialEquations),simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace)%>
Expand Down Expand Up @@ -679,9 +672,7 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
initialAnalyticJacobians(jacIndex, mat, vars, name, sparsepattern, colorList,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace)
;separator="";empty)
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>Jacobian.h" */

<% (jacobianMatrixes |> (mat, _, _, _, _, _, _) hasindex index0 =>
(mat |> (eqs,_,_) => algloopfilesInclude(eqs,simCode , &extraFuncs , &extraFuncsDecl, extraFuncsNamespace) ;separator="")
;separator="")
Expand Down Expand Up @@ -720,9 +711,7 @@ template simulationStateSelectionCppFile(SimCode simCode, Text& extraFuncs, Text
match simCode
case SIMCODE(modelInfo = MODELINFO(__)) then
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>StateSelection.h" */

<%lastIdentOfPath(modelInfo.name)%>StateSelection::<%lastIdentOfPath(modelInfo.name)%>StateSelection(IGlobalSettings* globalSettings, boost::shared_ptr<IAlgLoopSolverFactory> nonlinsolverfactory, boost::shared_ptr<ISimData> sim_data, boost::shared_ptr<ISimVars> sim_vars)
: <%lastIdentOfPath(modelInfo.name)%>(globalSettings, nonlinsolverfactory, sim_data,sim_vars)
{
Expand All @@ -744,9 +733,7 @@ template simulationWriteOutputCppFile(SimCode simCode ,Text& extraFuncs,Text& ex
match simCode
case SIMCODE(modelInfo = MODELINFO(__)) then
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>WriteOutput.h" */


<%lastIdentOfPath(modelInfo.name)%>WriteOutput::<%lastIdentOfPath(modelInfo.name)%>WriteOutput(IGlobalSettings* globalSettings, boost::shared_ptr<IAlgLoopSolverFactory> nonlinsolverfactory, boost::shared_ptr<ISimData> sim_data, boost::shared_ptr<ISimVars> sim_vars)
: <%lastIdentOfPath(modelInfo.name)%>(globalSettings, nonlinsolverfactory, sim_data,sim_vars)
Expand Down Expand Up @@ -989,9 +976,7 @@ match simCode
case SIMCODE(modelInfo = MODELINFO(vars=SIMVARS(__))) then
let classname = lastIdentOfPath(modelInfo.name)
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>Extension.h" */

<%classname%>Extension::<%classname%>Extension(IGlobalSettings* globalSettings, boost::shared_ptr<IAlgLoopSolverFactory> nonlinsolverfactory, boost::shared_ptr<ISimData> sim_data, boost::shared_ptr<ISimVars> sim_vars)
: <%classname%>(globalSettings, nonlinsolverfactory, sim_data,sim_vars)
, <%classname%>WriteOutput(globalSettings,nonlinsolverfactory, sim_data,sim_vars)
Expand Down Expand Up @@ -2168,10 +2153,8 @@ template calcHelperMainfile(SimCode simCode ,Text& extraFuncs,Text& extraFuncsDe
* This file is generated by the OpenModelica Compiler and produced to speed-up the compile time.
*
*****************************************************************************/

#include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>

#include <Core/Modelica.h>
#include "OMCpp<%fileNamePrefix%>Types.h"
#include "OMCpp<%fileNamePrefix%>Extension.h"
#include "OMCpp<%fileNamePrefix%>Extension.cpp"
Expand All @@ -2192,9 +2175,9 @@ template calcHelperMainfile2(SimCode simCode ,Text& extraFuncs,Text& extraFuncsD
* This file is generated by the OpenModelica Compiler and produced to speed-up the compile time.
*
*****************************************************************************/

#include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include <Core/Modelica.h>


#include "OMCpp<%fileNamePrefix%>Types.h"
#include "OMCpp<%fileNamePrefix%>Extension.h"
Expand All @@ -2218,9 +2201,9 @@ template calcHelperMainfile3(SimCode simCode ,Text& extraFuncs,Text& extraFuncsD
* This file is generated by the OpenModelica Compiler and produced to speed-up the compile time.
*
*****************************************************************************/

#include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include <Core/Modelica.h>


#include "OMCpp<%fileNamePrefix%>Types.h"
#include "OMCpp<%fileNamePrefix%>Functions.h"
Expand All @@ -2242,9 +2225,9 @@ template calcHelperMainfile4(SimCode simCode ,Text& extraFuncs,Text& extraFuncsD
* This file is generated by the OpenModelica Compiler and produced to speed-up the compile time.
*
*****************************************************************************/

#include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include <Core/Modelica.h>


#include "OMCpp<%fileNamePrefix%>Types.h"
#include "OMCpp<%fileNamePrefix%>Functions.h"
Expand All @@ -2268,9 +2251,9 @@ template calcHelperMainfile5(SimCode simCode ,Text& extraFuncs,Text& extraFuncsD
* This file is generated by the OpenModelica Compiler and produced to speed-up the compile time.
*
*****************************************************************************/

#include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include <Core/Modelica.h>


#include "OMCpp<%fileNamePrefix%>Types.h"
#include "OMCpp<%fileNamePrefix%>Functions.h"
Expand Down Expand Up @@ -2301,9 +2284,7 @@ template simulationFunctionsFile(SimCode simCode, Text& extraFuncs, Text& extraF
match simCode
case SIMCODE(modelInfo=MODELINFO(__)) then
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>Functions.h" */


<%externalFunctionIncludes(includes)%>

Expand Down Expand Up @@ -3289,11 +3270,7 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
match eq
case SES_LINEAR(lSystem = ls as LINEARSYSTEM(__)) then
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>Extension.h"
#include "OMCpp<%filename%>Algloop<%ls.index%>.h"
#include "OMCpp<%modelfilename%>.h" */

<%if Flags.isSet(Flags.WRITE_TO_BUFFER) then '#include "Math/ArrayOperations.h"'%>


Expand Down Expand Up @@ -3355,11 +3332,7 @@ match eq

case SES_NONLINEAR(nlSystem = nls as NONLINEARSYSTEM(__)) then
<<
/* #include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include "OMCpp<%fileNamePrefix%>Extension.h"
#include "OMCpp<%filename%>Algloop<%nls.index%>.h"
#include "OMCpp<%modelfilename%>.h" */

<%if Flags.isSet(Flags.WRITE_TO_BUFFER) then '#include "Math/ArrayOperations.h"'%>


Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/cpp/Core/Solver/FactoryExport.cpp
@@ -1,6 +1,5 @@
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#include <Core/ModelicaDefine.h>
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/cpp/Core/Solver/SimulationMonitor.cpp
@@ -1,6 +1,5 @@
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#include <Core/ModelicaDefine.h>
Expand Down
@@ -1,6 +1,5 @@
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#include <Core/ModelicaDefine.h>
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/cpp/Core/Solver/SolverSettings.cpp
@@ -1,6 +1,5 @@
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#include <Core/ModelicaDefine.h>
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/cpp/Core/Solver/SystemStateSelection.cpp
@@ -1,6 +1,5 @@
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#include <Core/ModelicaDefine.h>
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/cpp/Include/Core/Solver/IAlgLoopSolver.h
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
class IAlgLoop;
Expand Down
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/

Expand Down
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
/*****************************************************************************/
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/cpp/Include/Core/Solver/ISolver.h
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
/*****************************************************************************/
Expand Down
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/

Expand Down
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#if defined(__vxworks) || defined (__TRICORE__)
Expand Down
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#include <Core/Solver/SystemStateSelection.h>
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/cpp/Include/Core/Solver/SolverSettings.h
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/

Expand Down
@@ -1,7 +1,6 @@
#pragma once
/** @addtogroup coreSolver
*
* More documentation for the first group.
* @{
*/
#if defined(__TRICORE__) || defined(__vxworks)
Expand Down
4 changes: 2 additions & 2 deletions SimulationRuntime/cpp/Makefile.omdev.mingw
Expand Up @@ -9,9 +9,9 @@ builddir_lib=$(OMBUILDDIR)/lib/omc
builddir_inc=$(OMBUILDDIR)/include/omc

#use this call to use precompiled headers
BUILDTPYE = Release
#BUILDTPYE = Release
#use this call if you want to debug the cpp runtime
#BUILDTPYE = Debug
BUILDTPYE = Debug

CMAKE = $(OMDEV)/bin/cmake/bin/cmake -DCMAKE_VERBOSE_MAKEFILE:Bool=ON

Expand Down
2 changes: 1 addition & 1 deletion common

0 comments on commit 8a7b5a0

Please sign in to comment.