Skip to content

Commit 357f4d8

Browse files
committed
Merge branch 'connect/10.1' into 10.1
2 parents 4040565 + 4a62480 commit 357f4d8

File tree

15 files changed

+4614
-108
lines changed

15 files changed

+4614
-108
lines changed

storage/connect/CMakeLists.txt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,27 @@ int main() {
232232
ENDIF(UNIX)
233233
ENDIF(CONNECT_WITH_ODBC)
234234

235+
#
236+
# JDBC
237+
#
238+
239+
OPTION(CONNECT_WITH_JDBC "Compile CONNECT storage engine with JDBC support" ON)
240+
241+
IF(CONNECT_WITH_JDBC)
242+
# TODO: detect Java SDK and the presence of JDBC connectors
243+
# Find required libraries and include directories
244+
# Find how to compile and install the JdbcInterface.java class
245+
246+
IF(JDBC_OK)
247+
INCLUDE_DIRECTORIES(${JDBC_INCLUDE_DIR})
248+
add_definitions(-DJDBC_SUPPORT)
249+
SET(CONNECT_SOURCES ${CONNECT_SOURCES}
250+
JdbcInterface.java tabjdbc.cpp jdbconn.cpp jdbccat.h jdbconn.h tabjdbc.h)
251+
ELSE()
252+
SET(JDBC_LIBRARY "")
253+
ENDIF()
254+
ENDIF(CONNECT_WITH_JDBC)
255+
235256

236257
#
237258
# XMAP
@@ -252,5 +273,5 @@ MYSQL_ADD_PLUGIN(connect ${CONNECT_SOURCES}
252273
COMPONENT connect-engine
253274
RECOMPILE_FOR_EMBEDDED
254275
LINK_LIBRARIES ${ZLIB_LIBRARY} ${XML_LIBRARY} ${ICONV_LIBRARY}
255-
${ODBC_LIBRARY} ${IPHLPAPI_LIBRARY})
276+
${ODBC_LIBRARY} ${JDBC_LIBRARY} ${IPHLPAPI_LIBRARY})
256277

0 commit comments

Comments
 (0)