Skip to content

Commit

Permalink
remove unused XmlPropertyReader from FMU build (#3522)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranke committed Oct 20, 2015
1 parent 860b463 commit 5ad900c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -6014,13 +6014,15 @@ case SIMCODE(modelInfo = MODELINFO(__),makefileParams = MAKEFILE_PARAMS(__)) th
{
initializeMemory();

#if !defined(FMU_BUILD)
#if defined(__vxworks)
_reader = shared_ptr<IPropertyReader>(new XmlPropertyReader("/SYSTEM/bundles/com.boschrexroth.<%modelname%>/OMCpp<%fileNamePrefix%>Init.xml"));
#else
_reader = shared_ptr<IPropertyReader>(new XmlPropertyReader("<%makefileParams.compileDir%>/OMCpp<%fileNamePrefix%>Init.xml"));
#endif
_reader->readInitialValues(*this, _sim_vars);
initializeFreeVariables();
#endif
initializeFreeVariables();
/*Start complex expressions */
<%complexStartExpressions%>
/* End complex expression */
Expand Down
3 changes: 1 addition & 2 deletions Compiler/Template/CodegenFMUCpp.tpl
Expand Up @@ -102,7 +102,6 @@ template fmuCalcHelperMainfile(SimCode simCode)
#include <Core/Modelica.h>
#include <Core/System/FactoryExport.h>
#include <Core/DataExchange/SimData.h>
#include <Core/DataExchange/XmlPropertyReader.h>
#include <Core/System/SimVars.h>
#include <Core/System/DiscreteEvents.h>
#include <Core/System/EventHandling.h>
Expand Down Expand Up @@ -741,7 +740,7 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simula
DLLEXT=<%makefileParams.dllext%>
CFLAGS_BASED_ON_INIT_FILE=<%extraCflags%>

FMU_CFLAGS=$(SYSTEM_CFLAGS:-O0=$(SIM_OR_DYNLOAD_OPT_LEVEL))
FMU_CFLAGS=$(SYSTEM_CFLAGS:-O0=$(SIM_OR_DYNLOAD_OPT_LEVEL)) -DFMU_BUILD
CFLAGS=$(CFLAGS_BASED_ON_INIT_FILE) -Winvalid-pch $(FMU_CFLAGS) -DRUNTIME_STATIC_LINKING -I"$(OMHOME)/include/omc/cpp" -I"$(UMFPACK_INCLUDE)" -I"$(SUNDIALS_INCLUDE)" -I"$(BOOST_INCLUDE)" <%makefileParams.includes ; separator=" "%> <%additionalCFlags_GCC%>

ifeq ($(USE_LOGGER),ON)
Expand Down

0 comments on commit 5ad900c

Please sign in to comment.