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:
Markus Makela
2016-09-05 07:06:51 +03:00
parent 741ba5e444
commit 4e3de4c56d
11 changed files with 24 additions and 19 deletions

View File

@ -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()

View 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})

View File

@ -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()