Skip to content

Commit

Permalink
Merge branch 'connect/10.1' into 10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed May 4, 2016
2 parents 4040565 + 4a62480 commit 357f4d8
Show file tree
Hide file tree
Showing 15 changed files with 4,614 additions and 108 deletions.
23 changes: 22 additions & 1 deletion storage/connect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,27 @@ int main() {
ENDIF(UNIX)
ENDIF(CONNECT_WITH_ODBC)

#
# JDBC
#

OPTION(CONNECT_WITH_JDBC "Compile CONNECT storage engine with JDBC support" ON)

IF(CONNECT_WITH_JDBC)
# TODO: detect Java SDK and the presence of JDBC connectors
# Find required libraries and include directories
# Find how to compile and install the JdbcInterface.java class

IF(JDBC_OK)
INCLUDE_DIRECTORIES(${JDBC_INCLUDE_DIR})
add_definitions(-DJDBC_SUPPORT)
SET(CONNECT_SOURCES ${CONNECT_SOURCES}
JdbcInterface.java tabjdbc.cpp jdbconn.cpp jdbccat.h jdbconn.h tabjdbc.h)
ELSE()
SET(JDBC_LIBRARY "")
ENDIF()
ENDIF(CONNECT_WITH_JDBC)


#
# XMAP
Expand All @@ -252,5 +273,5 @@ MYSQL_ADD_PLUGIN(connect ${CONNECT_SOURCES}
COMPONENT connect-engine
RECOMPILE_FOR_EMBEDDED
LINK_LIBRARIES ${ZLIB_LIBRARY} ${XML_LIBRARY} ${ICONV_LIBRARY}
${ODBC_LIBRARY} ${IPHLPAPI_LIBRARY})
${ODBC_LIBRARY} ${JDBC_LIBRARY} ${IPHLPAPI_LIBRARY})

Loading

0 comments on commit 357f4d8

Please sign in to comment.