Changeset c251417 in OpenModelica


Ignore:
Timestamp:
2020-10-21T14:04:15+02:00 (4 years ago)
Author:
Mahder Gebremedhin <mahder.gebremedhin@…>
Children:
0476685a
Parents:
bca8c1e
git-author:
Mahder Gebremedhin <mahder.gebremedhin@…> (07/12/20 20:34:30)
git-committer:
Mahder Gebremedhin <mahder.gebremedhin@…> (10/21/20 14:04:15)
Message:

[cmake] Add runtime/omcbackendruntime compilation.

Location:
OMCompiler/Compiler/runtime
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/runtime/BackendDAEEXT_omc.cpp

    r818a8f24 rc251417  
    4141 */
    4242
    43 #include "meta_modelica.h"
     43#include "meta/meta_modelica.h"
    4444#include "BackendDAEEXT.cpp"
    4545#include <stdlib.h>
  • OMCompiler/Compiler/runtime/CMakeLists.txt

    rb9156e9 rc251417  
    33find_package(Intl REQUIRED)
    44find_package(Iconv REQUIRED)
    5 # find_package(ZLIB REQUIRED)
     5# find_package(ZLIB REQUIRED) # We use the minizip lib from 3rdParty/FMIL
    66
    77set(OMC_RUNTIIME_SOURCES Error_omc.cpp Print_omc.c ErrorMessage.cpp
     
    3434
    3535target_include_directories(omcruntime PRIVATE ${OMCompiler_SOURCE_DIR}/Compiler) #for OpenModelicaBootstrappingHeader.h :/
     36
     37
     38
     39
     40
     41set(OMC_BACKENDRUNTIIME_SOURCES HpcOmSchedulerExt_omc.cpp HpcOmBenchmarkExt_omc.cpp
     42                                TaskGraphResults_omc.cpp BackendDAEEXT_omc.cpp
     43                                matching.c matching_cheap.c Dynload_omc.cpp FMI_omc.c cJSON.c
     44                            )
     45add_library(omcbackendruntime STATIC ${OMC_BACKENDRUNTIIME_SOURCES})
     46add_library(omc::compiler::backendruntime ALIAS omcbackendruntime)
     47# target_compile_features(omcbackendruntime PRIVATE cxx_std_11)
     48
     49target_link_libraries(omcbackendruntime PUBLIC OpenModelicaRuntimeC)
     50target_link_libraries(omcbackendruntime PUBLIC omc::3rd::fmilib::shared) # We use the minizip lib from 3rdParty/FMIL
     51target_link_libraries(omcbackendruntime PUBLIC omc::3rd::gc)
     52
     53
     54target_include_directories(omcbackendruntime PRIVATE ${SimulationRuntimeC_SOURCE_DIR}) #for openmodelica.h :/
     55target_include_directories(omcbackendruntime PRIVATE ${OMCompiler_SOURCE_DIR}) #for revision.h
     56target_include_directories(omcbackendruntime PRIVATE ${OMCompiler_SOURCE_DIR}/Compiler) #for OpenModelicaBootstrappingHeader.h :/
     57
  • OMCompiler/Compiler/runtime/Dynload.cpp

    r818a8f24 rc251417  
    4242#include "systemimpl.h"
    4343#include "errorext.h"
    44 #include "meta_modelica_builtin.h"
     44#include "meta/meta_modelica_builtin.h"
    4545
    4646#define MMC_NUM_ARGS 32
  • OMCompiler/Compiler/runtime/Dynload_omc.cpp

    r818a8f24 rc251417  
    3838
    3939#include "openmodelica.h"
    40 #include "meta_modelica.h"
     40#include "meta/meta_modelica.h"
    4141#define ADD_METARECORD_DEFINITIONS static
    4242#include "OpenModelicaBootstrappingHeader.h"
  • OMCompiler/Compiler/runtime/FMIImpl.c

    r818a8f24 rc251417  
    5959#include "systemimpl.h"
    6060#include "errorext.h"
    61 #include "modelica_string.h"
     61#include "util/modelica_string.h"
    6262
    6363#define FMILIB_BUILDING_LIBRARY
  • OMCompiler/Compiler/runtime/FMI_omc.c

    r818a8f24 rc251417  
    2929 */
    3030
    31 #include "meta_modelica.h"
     31#include "meta/meta_modelica.h"
    3232#define ADD_METARECORD_DEFINITIONS static
    3333#include "OpenModelicaBootstrappingHeader.h"
  • OMCompiler/Compiler/runtime/HpcOmBenchmarkExt_omc.cpp

    r818a8f24 rc251417  
    11#include "openmodelica.h"
    2 #include "meta_modelica.h"
     2#include "meta/meta_modelica.h"
    33#define ADD_METARECORD_DEFINITIONS static
    44#include "OpenModelicaBootstrappingHeader.h"
  • OMCompiler/Compiler/runtime/HpcOmSchedulerExt_omc.cpp

    r818a8f24 rc251417  
    11#include "openmodelica.h"
    2 #include "meta_modelica.h"
     2#include "meta/meta_modelica.h"
    33#define ADD_METARECORD_DEFINITIONS static
    44#include "OpenModelicaBootstrappingHeader.h"
  • OMCompiler/Compiler/runtime/TaskGraphResults_omc.cpp

    r818a8f24 rc251417  
    22extern "C" {
    33#include "openmodelica.h"
    4 #include "meta_modelica.h"
     4#include "meta/meta_modelica.h"
    55#define ADD_METARECORD_DEFINITIONS static
    66#include "OpenModelicaBootstrappingHeader.h"
  • OMCompiler/Compiler/runtime/matching_cheap.c

    r818a8f24 rc251417  
    2222#include <stdlib.h>
    2323#include <ctype.h>
    24 #include <tinymt64.h>
     24#include "util/tinymt64.h"
    2525
    2626#include "matchmaker.h"
Note: See TracChangeset for help on using the changeset viewer.