Rename and relocate CDC Python examples
Moved the CDC example scripts into the protocol directory and added the .py suffix. Fixed all references to these scripts.
This commit is contained in:
@ -34,4 +34,5 @@ if(BUILD_CDC)
|
||||
target_link_libraries(CDC maxscale-common)
|
||||
set_target_properties(CDC PROPERTIES VERSION "1.0.1")
|
||||
install(TARGETS CDC DESTINATION ${MAXSCALE_LIBDIR})
|
||||
add_subdirectory(examples)
|
||||
endif()
|
||||
|
||||
5
server/modules/protocol/examples/CMakeLists.txt
Normal file
5
server/modules/protocol/examples/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
install(PROGRAMS cdc.py DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(PROGRAMS cdc_users.py DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(PROGRAMS cdc_last_transaction.py DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(PROGRAMS cdc_kafka_producer.py DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(FILES cdc_schema.go DESTINATION ${MAXSCALE_SHAREDIR})
|
||||
@ -5,11 +5,6 @@ if(AVRO_FOUND)
|
||||
set_target_properties(avrorouter PROPERTIES LINK_FLAGS -Wl,-z,defs)
|
||||
target_link_libraries(avrorouter maxscale-common jansson ${AVRO_LIBRARIES} maxavro sqlite3 lzma)
|
||||
install(TARGETS avrorouter DESTINATION ${MAXSCALE_LIBDIR})
|
||||
install(PROGRAMS cdc DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(PROGRAMS cdc_users DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(PROGRAMS cdc_last_transaction DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(PROGRAMS cdc_kafka_producer DESTINATION ${MAXSCALE_BINDIR})
|
||||
install(FILES cdc_schema.go DESTINATION ${MAXSCALE_SHAREDIR})
|
||||
else()
|
||||
message(STATUS "Avro C libraries were not found, avrorouter will not be built.")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user