Commit 713f328 1 parent 9921b59 commit 713f328 Copy full SHA for 713f328
File tree 10 files changed +24
-24
lines changed
matlab/AutogenerationExample_grt_rtw
include/BlockFactory/Core
10 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ Example:
58
58
#define BLOCKFACTORY_CORE_FACTORYSINGLETON_H
59
59
60
60
#include "BlockFactory/Core/Log.h"
61
- #include "shlibpp /SharedLibrary.h"
62
- #include "shlibpp /SharedLibraryClass.h"
61
+ #include "sharedlibpp /SharedLibrary.h"
62
+ #include "sharedlibpp /SharedLibraryClass.h"
63
63
64
64
#include <memory >
65
65
Original file line number Diff line number Diff line change 3
3
# GNU Lesser General Public License v2.1 or any later version.
4
4
5
5
cmake_minimum_required (VERSION 3.16...3.31)
6
- project (blockfactory LANGUAGES CXX VERSION 0.8.5 )
6
+ project (blockfactory LANGUAGES CXX VERSION 1.0.0 )
7
7
8
8
if (BUILD_DOCS)
9
9
add_subdirectory (doc )
@@ -109,16 +109,16 @@ endif()
109
109
# Handle unit tests support
110
110
option (BUILD_TESTING "Create tests using CMake" OFF )
111
111
112
- option (BLOCKFACTORY_USES_SYSTEM_SHLIBPP "If ON, find shlibpp with find_package(shlibpp )" OFF )
113
- if (BLOCKFACTORY_USES_SYSTEM_SHLIBPP )
114
- find_package (shlibpp REQUIRED)
112
+ option (BLOCKFACTORY_USES_SYSTEM_SHAREDLIBPP "If ON, find sharedlibpp with find_package(sharedlibpp )" OFF )
113
+ if (BLOCKFACTORY_USES_SYSTEM_SHAREDLIBPP )
114
+ find_package (sharedlibpp REQUIRED)
115
115
else ()
116
116
include (FetchContent)
117
117
FetchContent_Declare(
118
- shlibpp
119
- URL https://github.com/ami-iit/shlibpp /archive/refs/tags/v0.0.2 .zip
118
+ sharedlibpp
119
+ URL https://github.com/ami-iit/sharedlibpp /archive/refs/tags/v0.0.3 .zip
120
120
)
121
- FetchContent_MakeAvailable(shlibpp )
121
+ FetchContent_MakeAvailable(sharedlibpp )
122
122
endif ()
123
123
124
124
add_subdirectory (deps)
Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ A plugin library usually contains multiple classes used for multiple Blocks. The
521
521
#include "SignalMath.h"
522
522
523
523
// Class factory API
524
- #include <shlibpp /SharedLibraryClassApi.h>
524
+ #include <sharedlibpp /SharedLibraryClassApi.h>
525
525
526
526
// Add the example::SignalMath class to the plugin factory
527
527
SHLIBPP_DEFINE_SHARED_SUBCLASS(SignalMath, example::SignalMath, blockfactory::core::Block);
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ void AutogenerationExampleModelClass::initialize()
198
198
// TODO: find a better way to handle them.
199
199
{
200
200
// Create a new class. This object will be destroyed at the end of the scope.
201
- shlibpp ::SharedLibraryClass<blockfactory::core::Block> blockPtr (*factory);
201
+ sharedlibpp ::SharedLibraryClass<blockfactory::core::Block> blockPtr (*factory);
202
202
auto tmpCoderBlockInfo = std::unique_ptr<blockfactory::coder::CoderBlockInformation>(
203
203
new blockfactory::coder::CoderBlockInformation);
204
204
tmpCoderBlockInfo->storeRTWParameters (params);
Original file line number Diff line number Diff line change 1
1
#include " SignalMath.h"
2
2
3
3
// Class factory API
4
- #include < shlibpp /SharedLibraryClassApi.h>
4
+ #include < sharedlibpp /SharedLibraryClassApi.h>
5
5
6
6
// Add the example::SignalMath class to the plugin factory
7
7
SHLIBPP_DEFINE_SHARED_SUBCLASS (SignalMath, example::SignalMath, blockfactory::core::Block);
Original file line number Diff line number Diff line change 237
237
// TODO: find a better way to handle them.
238
238
{
239
239
// Create a new class. This object will be destroyed at the end of the scope.
240
- shlibpp ::SharedLibraryClass<blockfactory::core::Block> blockPtr(*factory);
240
+ sharedlibpp ::SharedLibraryClass<blockfactory::core::Block> blockPtr(*factory);
241
241
242
242
auto tmpCoderBlockInfo = std::unique_ptr<blockfactory::coder::CoderBlockInformation>(
243
243
new blockfactory::coder::CoderBlockInformation);
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ set(CORE_PRIVATE_HDR
27
27
add_library (Core ${CORE_SRC} ${CORE_PUBLIC_HDR} ${CORE_PRIVATE_HDR} )
28
28
add_library (BlockFactory::Core ALIAS Core)
29
29
30
- target_link_libraries (Core PUBLIC shlibpp::shlibpp )
30
+ target_link_libraries (Core PUBLIC sharedlibpp::sharedlibpp )
31
31
32
32
target_include_directories (Core PUBLIC
33
33
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
@@ -55,6 +55,6 @@ install_basic_package_files(BlockFactoryCore
55
55
COMPATIBILITY AnyNewerVersion
56
56
EXPORT BlockFactoryCoreExport
57
57
FIRST_TARGET Core
58
- DEPENDENCIES shlibpp
58
+ DEPENDENCIES sharedlibpp
59
59
NAMESPACE BlockFactory::
60
60
NO_CHECK_REQUIRED_COMPONENTS_MACRO)
Original file line number Diff line number Diff line change 10
10
#define BLOCKFACTORY_CORE_FACTORYSINGLETON_H
11
11
12
12
#include " BlockFactory/Core/Log.h"
13
- #include " shlibpp /SharedLibrary.h"
14
- #include " shlibpp /SharedLibraryClass.h"
13
+ #include " sharedlibpp /SharedLibrary.h"
14
+ #include " sharedlibpp /SharedLibraryClass.h"
15
15
16
16
#include < memory>
17
17
@@ -23,9 +23,9 @@ namespace blockfactory {
23
23
} // namespace blockfactory
24
24
25
25
/* *
26
- * @brief Class for interfacing with shlibpp plugin library
26
+ * @brief Class for interfacing with sharedlibpp plugin library
27
27
*
28
- * This helper class ease the integration of shlibpp within the BlockFactory framework. It is
28
+ * This helper class ease the integration of sharedlibpp within the BlockFactory framework. It is
29
29
* implemented with a singleton pattern.
30
30
*
31
31
* It can handle multiple plugin libraries together and provides support of destructing the related
@@ -41,7 +41,7 @@ class blockfactory::core::ClassFactorySingleton
41
41
#endif
42
42
43
43
public:
44
- using ClassFactory = shlibpp ::SharedLibraryClassFactory<blockfactory::core::Block>;
44
+ using ClassFactory = sharedlibpp ::SharedLibraryClassFactory<blockfactory::core::Block>;
45
45
using ClassFactoryPtr = std::shared_ptr<ClassFactory>;
46
46
47
47
// / @brief Name of the factory associated to the class specified during its registration
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.24")
13
13
include /BlockFactory/Simulink/Private /SimulinkBlockInformationImpl.h
14
14
src/BlockFactory.cpp
15
15
NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES
16
- LINK_TO ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY} BlockFactory::Core shlibpp::shlibpp mxpp)
16
+ LINK_TO ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY} BlockFactory::Core sharedlibpp::sharedlibpp mxpp)
17
17
else ()
18
18
matlab_add_mex(
19
19
NAME Simulink
23
23
src/SimulinkBlockInformationImpl.cpp
24
24
include /BlockFactory/Simulink/Private /SimulinkBlockInformationImpl.h
25
25
src/BlockFactory.cpp
26
- LINK_TO ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY} BlockFactory::Core shlibpp::shlibpp mxpp)
26
+ LINK_TO ${Matlab_MEX_LIBRARY} ${Matlab_MX_LIBRARY} BlockFactory::Core sharedlibpp::sharedlibpp mxpp)
27
27
endif ()
28
28
add_library (BlockFactory::Simulink ALIAS Simulink)
29
29
@@ -50,6 +50,6 @@ install_basic_package_files(BlockFactorySimulink
50
50
COMPATIBILITY AnyNewerVersion
51
51
EXPORT BlockFactorySimulinkExport
52
52
FIRST_TARGET Simulink
53
- DEPENDENCIES BlockFactoryCore mxpp shlibpp
53
+ DEPENDENCIES BlockFactoryCore mxpp sharedlibpp
54
54
NAMESPACE BlockFactory::
55
55
NO_CHECK_REQUIRED_COMPONENTS_MACRO)
Original file line number Diff line number Diff line change 9
9
#include " MockPlugin.h"
10
10
#include < BlockFactory/Core/Parameter.h>
11
11
12
- #include < shlibpp /SharedLibraryClassApi.h>
12
+ #include < sharedlibpp /SharedLibraryClassApi.h>
13
13
14
14
mock::MockBlock::MockBlock ()
15
15
{
You can’t perform that action at this time.
0 commit comments