Debian Codegraph @

libbinlogevents/src/CMakeLists.txt

raw
1 # Copyright (c) 2013, 2026, Oracle and/or its affiliates.
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, version 2.0,
5 # as published by the Free Software Foundation.
6 #
7 # This program is designed to work with certain software (including
8 # but not limited to OpenSSL) that is licensed under separate terms,
9 # as designated in a particular file or component or in included license
10 # documentation. The authors of MySQL hereby grant you an additional
11 # permission to link the program and your derivative works with the
12 # separately licensed software that they have either included with
13 # the program or referenced in the documentation.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU General Public License, version 2.0, for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program; if not, write to the Free Software
22 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
24 SET(REPLICATION_SOURCES
25 binary_log_funcs.cpp
26 binlog_event.cpp
27
28 buffer/grow_calculator.cpp
29 buffer/grow_constraint.cpp
30 buffer/grow_status.cpp
31
32 codecs/binary.cpp
33 codecs/factory.cpp
34
35 compression/base.cpp
36 compression/compressor.cpp
37 compression/decompressor.cpp
38 compression/decompress_status.cpp
39 compression/factory.cpp
40 compression/payload_event_buffer_istream.cpp
41 compression/none_comp.cpp
42 compression/none_dec.cpp
43 compression/zstd_comp.cpp
44 compression/zstd_dec.cpp
45
46 control_events.cpp
47 event_reader.cpp
48
49 gtids/gtid.cpp
50 gtids/gtidset.cpp
51
52 load_data_events.cpp
53 rows_event.cpp
54 statement_events.cpp
55 trx_boundary_parser.cpp
56 uuid.cpp
57 )
58
59 MY_CHECK_CXX_COMPILER_WARNING("-Wmissing-profile" HAS_MISSING_PROFILE)
60 IF(HAS_MISSING_PROFILE)
61 ADD_COMPILE_FLAGS(
62 gtids/gtid.cpp
63 gtids/gtidset.cpp
64 COMPILE_FLAGS " ${HAS_MISSING_PROFILE}")
65 ENDIF()
66
67 # Configure for building static library
68 ADD_LIBRARY(binlogevents_static STATIC ${REPLICATION_SOURCES})
69
70 IF(STANDALONE_BINLOG)
71 TARGET_LINK_LIBRARIES(binlogevents_static ext::zstd)
72 ELSE()
73 TARGET_LINK_LIBRARIES(binlogevents_static ext::zstd mysys)
74 ADD_DEPENDENCIES(binlogevents_static GenError)
75 ENDIF()
76
77 SET_TARGET_PROPERTIES(binlogevents_static
78 PROPERTIES OUTPUT_NAME "binlogevents"
79 )
80
81 SET_TARGET_PROPERTIES(binlogevents_static
82 PROPERTIES
83 ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/libbinlogevents/lib
84 )