|
| 1 | +# Copyright (C) 2006 MySQL AB |
| 2 | +# |
| 3 | +# This program is free software; you can redistribute it and/or modify |
| 4 | +# it under the terms of the GNU General Public License as published by |
| 5 | +# the Free Software Foundation; version 2 of the License. |
| 6 | +# |
| 7 | +# This program is distributed in the hope that it will be useful, |
| 8 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | +# GNU General Public License for more details. |
| 11 | +# |
| 12 | +# You should have received a copy of the GNU General Public License |
| 13 | +# along with this program; if not, write to the Free Software |
| 14 | +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 15 | + |
| 16 | +# This is CMakeLists.txt for semi-sync replication plugins |
| 17 | + |
| 18 | +SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX") |
| 19 | +SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX") |
| 20 | + |
| 21 | +# Add common include directories |
| 22 | +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/zlib |
| 23 | + ${CMAKE_SOURCE_DIR}/sql |
| 24 | + ${CMAKE_SOURCE_DIR}/regex |
| 25 | + ${CMAKE_SOURCE_DIR}/extra/yassl/include) |
| 26 | + |
| 27 | +SET(SEMISYNC_MASTER_SOURCES semisync.cc semisync_master.cc semisync_master_plugin.cc) |
| 28 | +SET(SEMISYNC_SLAVE_SOURCES semisync.cc semisync_slave.cc semisync_slave_plugin.cc) |
| 29 | + |
| 30 | +ADD_DEFINITIONS(-DMYSQL_DYNAMIC_PLUGIN) |
| 31 | +ADD_LIBRARY(semisync_master SHARED ${SEMISYNC_MASTER_SOURCES}) |
| 32 | +TARGET_LINK_LIBRARIES(semisync_master mysqld) |
| 33 | +ADD_LIBRARY(semisync_slave SHARED ${SEMISYNC_SLAVE_SOURCES}) |
| 34 | +TARGET_LINK_LIBRARIES(semisync_slave mysqld) |
| 35 | +MESSAGE("build SEMISYNC as DLL") |
0 commit comments