Skip to content

Commit

Permalink
Merge branch 'ob-10.0' into 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Buggynours committed May 12, 2016
2 parents 10de438 + 4a1ffc3 commit ab62154
Show file tree
Hide file tree
Showing 18 changed files with 5,424 additions and 171 deletions.
28 changes: 27 additions & 1 deletion storage/connect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,32 @@ 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
# TODO: Find how to compile and install the JdbcInterface.java class
# Find required libraries and include directories

FIND_PACKAGE(Java)
FIND_PACKAGE(JNI)
IF (JAVA_FOUND AND JNI_FOUND)
INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH})
INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH2})
# SET(JDBC_LIBRARY ${JAVA_JVM_LIBRARY})
SET(CONNECT_SOURCES ${CONNECT_SOURCES}
JdbcInterface.java JdbcInterface.class
jdbconn.cpp tabjdbc.cpp jdbconn.h tabjdbc.h jdbccat.h)
add_definitions(-DJDBC_SUPPORT)
ELSE()
SET(JDBC_LIBRARY "")
ENDIF()
ENDIF(CONNECT_WITH_JDBC)


#
# XMAP
Expand All @@ -277,5 +303,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})

Binary file added storage/connect/JdbcInterface.class
Binary file not shown.
Loading

0 comments on commit ab62154

Please sign in to comment.