Skip to content

Commit

Permalink
Make Exception and KafkaAdapterManager public vis
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Glustein <[email protected]>
  • Loading branch information
AdamGlustein committed Nov 11, 2024
1 parent 9168324 commit 4d826a6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
strategy:
matrix:
os:
- ubuntu-24.04
- macos-14
- macos-12
# - ubuntu-24.04
# - macos-14
# - macos-12
- windows-2019
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion cpp/csp/adapters/kafka/KafkaAdapterManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct KafkaStatusMessageTypeTraits
using KafkaStatusMessageType = csp::Enum<KafkaStatusMessageTypeTraits>;

//Top level AdapterManager object for all kafka adapters in the engine
class CSPKAFKAADAPTERIMPL_EXPORT KafkaAdapterManager final : public csp::AdapterManager
class CSP_PUBLIC KafkaAdapterManager final : public csp::AdapterManager
{
public:
KafkaAdapterManager( csp::Engine * engine, const Dictionary & properties );
Expand Down
2 changes: 1 addition & 1 deletion cpp/csp/core/Exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace csp
{

class CSPCORE_EXPORT Exception : public std::exception
class CSP_PUBLIC Exception : public std::exception
{
public:
Exception( const char * exType, const std::string & description, const char * file, const char * func, int line ) :
Expand Down
3 changes: 2 additions & 1 deletion cpp/csp/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ generate_export_header(csp_types
EXPORT_MACRO_NAME CSPTYPES_EXPORT
)
set_target_properties(csp_types PROPERTIES PUBLIC_HEADER "${CSP_TYPES_PUBLIC_HEADERS}")
target_link_libraries(csp_types csp_core)

add_library(csp_engine STATIC ${ENGINE_SOURCE_FILES})
add_library(csp_engine SHARED ${ENGINE_SOURCE_FILES})
generate_export_header(csp_engine
BASE_NAME cspengine
EXPORT_MACRO_NAME CSPENGINE_EXPORT
Expand Down
2 changes: 1 addition & 1 deletion cpp/csp/engine/TimeSeries.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CSPENGINE_EXPORT TimeSeries
{
public:
// Should match the DuplicatePolicy enum in python!!!
struct DuplicatePolicyTraits {
struct CSPENGINE_EXPORT DuplicatePolicyTraits {
enum _enum : uint8_t {
UNKNOWN = 0,
LAST_VALUE = 1,
Expand Down
2 changes: 1 addition & 1 deletion cpp/csp/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ message(STATUS "\n\n\nBinary directory: ${CMAKE_CURRENT_BINARY_DIR}\n\n\n")
generate_export_header(csptypesimpl)
set_target_properties(csptypesimpl PROPERTIES PUBLIC_HEADER "${CSPTYPESIMPL_PUBLIC_HEADERS}")
target_compile_definitions(csptypesimpl PUBLIC RAPIDJSON_HAS_STDSTRING=1)
target_link_libraries(csptypesimpl csp_core csp_types)
target_link_libraries(csptypesimpl csp_core csp_types csp_engine)
target_compile_definitions(csptypesimpl PRIVATE CSPTYPESIMPL_EXPORTS=1)


Expand Down

0 comments on commit 4d826a6

Please sign in to comment.