1
# Copyright (C) 2006 MySQL AB
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.
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.
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
16
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
17
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
18
ADD_DEFINITIONS(-DMYSQL_SERVER -D_WIN32 -D_LIB)
20
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/zlib
21
${CMAKE_SOURCE_DIR}/storage/innobase/include
22
${CMAKE_SOURCE_DIR}/storage/innobase/handler
23
${CMAKE_SOURCE_DIR}/sql
24
${CMAKE_SOURCE_DIR}/regex
25
${CMAKE_SOURCE_DIR}/extra/yassl/include)
27
SET(INNOBASE_SOURCES btr/btr0btr.c btr/btr0cur.c btr/btr0pcur.c btr/btr0sea.c
28
buf/buf0buddy.c buf/buf0buf.c buf/buf0flu.c buf/buf0lru.c buf/buf0rea.c
29
data/data0data.c data/data0type.c
30
dict/dict0boot.c dict/dict0crea.c dict/dict0dict.c dict/dict0load.c dict/dict0mem.c
32
eval/eval0eval.c eval/eval0proc.c
35
fut/fut0fut.c fut/fut0lst.c
36
ha/ha0ha.c ha/hash0hash.c ha/ha0storage.c
38
pars/lexyy.c pars/pars0grm.c pars/pars0opt.c pars/pars0pars.c pars/pars0sym.c
39
lock/lock0lock.c lock/lock0iter.c
40
log/log0log.c log/log0recv.c
42
mem/mem0mem.c mem/mem0pool.c
43
mtr/mtr0log.c mtr/mtr0mtr.c
44
os/os0file.c os/os0proc.c os/os0sync.c os/os0thread.c
45
page/page0cur.c page/page0page.c page/page0zip.c
47
handler/ha_innodb.cc handler/handler0alter.cc handler/i_s.cc handler/mysql_addons.cc
49
rem/rem0cmp.c rem/rem0rec.c
50
row/row0ext.c row/row0ins.c row/row0merge.c row/row0mysql.c
51
row/row0purge.c row/row0row.c row/row0sel.c row/row0uins.c
52
row/row0umod.c row/row0undo.c row/row0upd.c row/row0vers.c
53
srv/srv0que.c srv/srv0srv.c srv/srv0start.c
54
sync/sync0arr.c sync/sync0rw.c sync/sync0sync.c
56
trx/trx0i_s.c trx/trx0purge.c trx/trx0rec.c trx/trx0roll.c trx/trx0rseg.c
57
trx/trx0sys.c trx/trx0trx.c trx/trx0undo.c
59
ut/ut0byte.c ut/ut0dbg.c ut/ut0mem.c ut/ut0rnd.c ut/ut0ut.c ut/ut0vec.c ut/ut0list.c ut/ut0wqueue.c)
61
IF(NOT SOURCE_SUBLIBS)
62
ADD_LIBRARY(innobase ${INNOBASE_SOURCES})
63
ADD_DEPENDENCIES(innobase GenError)
64
ENDIF(NOT SOURCE_SUBLIBS)