~ubuntu-branches/ubuntu/vivid/mariadb-5.5/vivid-proposed

« back to all changes in this revision

Viewing changes to storage/tokudb/ft-index/ft/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2014-11-14 21:04:24 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20141114210424-xlyna0ozl11647o5
Tags: 5.5.40-0ubuntu0.14.10.1
* SECURITY UPDATE: Update to 5.5.40 to fix security issues (LP: #1391676)
  - CVE-2014-6507
  - CVE-2014-6491
  - CVE-2014-6500
  - CVE-2014-6469
  - CVE-2014-6555
  - CVE-2014-6559
  - CVE-2014-6494
  - CVE-2014-6496
  - CVE-2014-6464
* Add bsdutils as mariadb-server dependency like upstream does in 5.5.40.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  "${CMAKE_CURRENT_BINARY_DIR}/log_header.h"
8
8
  PROPERTIES GENERATED TRUE)
9
9
 
10
 
add_executable(logformat logformat.cc)
 
10
add_executable(logformat logger/logformat.cc)
11
11
target_link_libraries(logformat ${LIBTOKUPORTABILITY}_static)
 
12
add_space_separated_property(TARGET logformat LINK_FLAGS --coverage)
 
13
 
12
14
 
13
15
add_custom_command(
14
16
  OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/log_code.cc"
15
17
  OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/log_print.cc"
16
18
  OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/log_header.h"
17
19
  COMMAND $<TARGET_FILE:logformat> .
18
 
  DEPENDS logformat
 
20
  DEPENDS logger/logformat
19
21
  )
20
22
add_custom_target(
21
23
  generate_log_code
23
25
  )
24
26
 
25
27
set(FT_SOURCES
26
 
  background_job_manager
27
 
  block_allocator
28
 
  block_table
29
28
  bndata
30
 
  cachetable
31
 
  checkpoint
32
 
  compress
33
 
  dbufio
34
 
  fifo
 
29
  cachetable/background_job_manager
 
30
  cachetable/cachetable
 
31
  cachetable/checkpoint
 
32
  cursor
35
33
  ft
36
34
  ft-cachetable-wrappers
37
35
  ft-flusher
38
36
  ft-hot-flusher
39
 
  ftloader
40
 
  ftloader-callback
41
 
  ft_msg
42
 
  ft_node-serialize
43
 
  ft-node-deserialize
44
37
  ft-ops
45
 
  ft-serialize
46
38
  ft-test-helpers
47
39
  ft-verify
48
 
  key
 
40
  loader/callbacks
 
41
  loader/dbufio
 
42
  loader/loader
 
43
  loader/pqueue
49
44
  leafentry
50
45
  le-cursor
51
 
  logcursor
52
 
  logfilemgr
53
 
  logger
54
 
  log_upgrade
55
 
  minicron
56
 
  pqueue
57
 
  queue
58
 
  quicklz
59
 
  recover
60
 
  rollback
61
 
  rollback-apply
62
 
  rollback-ct-callbacks
63
 
  rollback_log_node_cache
64
 
  roll
65
 
  sub_block
66
 
  txn
67
 
  txn_child_manager
68
 
  txn_manager
 
46
  logger/logcursor
 
47
  logger/logfilemgr
 
48
  logger/logger
 
49
  logger/log_upgrade
 
50
  logger/recover
 
51
  msg
 
52
  msg_buffer
 
53
  node
 
54
  pivotkeys
 
55
  serialize/block_allocator
 
56
  serialize/block_allocator_strategy
 
57
  serialize/block_table
 
58
  serialize/compress
 
59
  serialize/ft_node-serialize
 
60
  serialize/ft-node-deserialize
 
61
  serialize/ft-serialize
 
62
  serialize/quicklz
 
63
  serialize/sub_block
 
64
  txn/rollback
 
65
  txn/rollback-apply
 
66
  txn/rollback-ct-callbacks
 
67
  txn/rollback_log_node_cache
 
68
  txn/roll
 
69
  txn/txn
 
70
  txn/txn_child_manager
 
71
  txn/txn_manager
 
72
  txn/xids
69
73
  ule
70
 
  xids
71
 
  ybt
72
74
  "${CMAKE_CURRENT_BINARY_DIR}/log_code"
73
75
  "${CMAKE_CURRENT_BINARY_DIR}/log_print"
74
76
  )
85
87
 
86
88
## link with lzma (which should be static) and link dependers with zlib
87
89
target_link_libraries(ft LINK_PRIVATE util_static lzma ${LIBTOKUPORTABILITY})
88
 
target_link_libraries(ft LINK_PUBLIC ${ZLIB_LIBRARY} )
 
90
target_link_libraries(ft LINK_PUBLIC z)
89
91
target_link_libraries(ft_static LINK_PRIVATE lzma)
90
92
 
91
 
## build the bins in this directory
92
 
foreach(tool tokuftdump tdb_logprint tdb-recover ftverify)
93
 
  add_executable(${tool} ${tool}.cc)
94
 
  add_dependencies(${tool} install_tdb_h)
95
 
  target_link_libraries(${tool} ft_static util_static ${ZLIB_LIBRARY} lzma ${LIBTOKUPORTABILITY}_static ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
96
 
  add_space_separated_property(TARGET ${tool} COMPILE_FLAGS -fvisibility=hidden)
97
 
endforeach(tool)
98
 
 
99
 
# link in math.h library just for this tool.
100
 
target_link_libraries(ftverify m)
101
 
 
102
 
install(
103
 
  TARGETS tokuftdump
104
 
  COMPONENT Server
105
 
  DESTINATION ${INSTALL_BINDIR}
106
 
  )
107
 
 
108
93
add_subdirectory(tests)