| 1 |
# Copyright (c) 2016, 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(ZLOB_SRC_FILES |
| 25 |
zlob0int-t.cc |
| 26 |
zlob0int.cc |
| 27 |
zlob0int.h |
| 28 |
mtr0log.cc |
| 29 |
ut0dbg.cc |
| 30 |
lot0buf.cc |
| 31 |
fil0fil.cc |
| 32 |
fut0lst.cc |
| 33 |
lot0dat.cc) |
| 34 |
|
| 35 |
# Plain LOB (or Uncompressed LOB) source files. |
| 36 |
SET(PLOB_SRC_FILES |
| 37 |
lot0lot.cc |
| 38 |
lot0buf.cc |
| 39 |
lot0dat.cc |
| 40 |
lot0dat.h |
| 41 |
lot0lob.h |
| 42 |
lot0lob.cc |
| 43 |
mach0data.h |
| 44 |
fut0lst.cc |
| 45 |
fil0fil.cc |
| 46 |
mtr0log.cc |
| 47 |
ut0dbg.cc |
| 48 |
lob0int.cc) |
| 49 |
|
| 50 |
MYSQL_ADD_EXECUTABLE(lot0lot-t ${PLOB_SRC_FILES} |
| 51 |
SKIP_INSTALL |
| 52 |
ENABLE_EXPORTS |
| 53 |
LINK_LIBRARIES ext::zlib ${GTEST_LIBRARIES} gunit_small |
| 54 |
) |
| 55 |
MYSQL_ADD_EXECUTABLE(ut0plist-t |
| 56 |
lot0buf.cc |
| 57 |
mtr0log.cc |
| 58 |
ut0dbg.cc |
| 59 |
ut0plist.cc |
| 60 |
SKIP_INSTALL |
| 61 |
) |
| 62 |
MYSQL_ADD_EXECUTABLE(ut0frags-t |
| 63 |
fil0fil.cc |
| 64 |
fut0lst.cc |
| 65 |
lot0buf.cc |
| 66 |
mtr0log.cc |
| 67 |
ut0dbg.cc |
| 68 |
ut0frags.cc |
| 69 |
zlob0int.cc |
| 70 |
SKIP_INSTALL |
| 71 |
LINK_LIBRARIES ext::zlib |
| 72 |
) |
| 73 |
MYSQL_ADD_EXECUTABLE(zlob0int-t ${ZLOB_SRC_FILES} |
| 74 |
SKIP_INSTALL |
| 75 |
ENABLE_EXPORTS |
| 76 |
LINK_LIBRARIES ext::zlib ${GTEST_LIBRARIES} gunit_small |
| 77 |
) |
| 78 |
|
| 79 |
# Don't run these by default, run manually |
| 80 |
# ADD_TEST(lot0lot lot0lot-t) |
| 81 |
# ADD_TEST(ut0plist ut0plist-t) |
| 82 |
# ADD_TEST(ut0frags ut0frags-t) |
| 83 |
# ADD_TEST(zlob0int zlob0int-t) |