|
| 1 | +# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
| 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 | +SET (DEB_RULES_DEBUG_CMAKE |
| 17 | +" |
| 18 | + mkdir debug && cd debug && \\ |
| 19 | + cmake .. \\ |
| 20 | + -DBUILD_CONFIG=mysql_release \\ |
| 21 | + -DCMAKE_INSTALL_PREFIX=/usr \\ |
| 22 | + -DCMAKE_BUILD_TYPE=Debug \\ |
| 23 | + -DINSTALL_DOCDIR=share/mysql/docs \\ |
| 24 | + -DINSTALL_DOCREADMEDIR=share/mysql \\ |
| 25 | + -DINSTALL_INCLUDEDIR=include/mysql \\ |
| 26 | + -DINSTALL_INFODIR=share/mysql/docs \\ |
| 27 | + -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \\ |
| 28 | + -DINSTALL_MANDIR=share/man \\ |
| 29 | + -DINSTALL_MYSQLSHAREDIR=share/mysql \\ |
| 30 | + -DINSTALL_MYSQLTESTDIR=lib/mysql-test \\ |
| 31 | + -DINSTALL_PLUGINDIR=lib/mysql/plugin \\ |
| 32 | + -DINSTALL_SBINDIR=sbin \\ |
| 33 | + -DINSTALL_SUPPORTFILESDIR=share/mysql \\ |
| 34 | + -DSYSCONFDIR=/etc/mysql \\ |
| 35 | + -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \\ |
| 36 | + -DWITH_SSL=bundled \\ |
| 37 | + -DWITH_INNODB_MEMCACHED=1 \\ |
| 38 | + -DWITH_MECAB=system \\ |
| 39 | + -DWITH_NUMA=ON \\ |
| 40 | + -DCOMPILATION_COMMENT=\"MySQL ${DEB_PRODUCTNAMEC} Server (${DEB_LICENSENAME})\" \\ |
| 41 | + -DINSTALL_LAYOUT=DEB \\ |
| 42 | + -DDEB_PRODUCT=${DEB_PRODUCT} \\ |
| 43 | + ${DEB_CMAKE_EXTRAS} |
| 44 | +") |
| 45 | + |
| 46 | +SET (DEB_RULES_DEBUG_MAKE |
| 47 | +" |
| 48 | + cd debug && \\ |
| 49 | + $(MAKE) -j8 VERBOSE=1 |
| 50 | +") |
| 51 | + |
| 52 | +SET (DEB_RULES_DEBUG_EXTRA |
| 53 | +" |
| 54 | + # The ini file isn't built for debug, so copy over from the standard build |
| 55 | + install -g root -o root -m 0755 debian/tmp/usr/lib/mysql/plugin/daemon_example.ini debian/tmp/usr/lib/mysql/plugin/debug |
| 56 | +") |
| 57 | + |
| 58 | +SET (DEB_INSTALL_DEBUG_SERVER |
| 59 | +" |
| 60 | +# debug binary |
| 61 | +usr/sbin/mysqld-debug |
| 62 | +") |
| 63 | + |
| 64 | +SET (DEB_INSTALL_DEBUG_SERVER_PLUGINS |
| 65 | +" |
| 66 | +# debug plugins |
| 67 | +usr/lib/mysql/plugin/debug/adt_null.so |
| 68 | +usr/lib/mysql/plugin/debug/auth_socket.so |
| 69 | +usr/lib/mysql/plugin/debug/connection_control.so |
| 70 | +usr/lib/mysql/plugin/debug/innodb_engine.so |
| 71 | +usr/lib/mysql/plugin/debug/libmemcached.so |
| 72 | +usr/lib/mysql/plugin/debug/mypluglib.so |
| 73 | +usr/lib/mysql/plugin/debug/mysql_no_login.so |
| 74 | +usr/lib/mysql/plugin/debug/semisync_master.so |
| 75 | +usr/lib/mysql/plugin/debug/semisync_slave.so |
| 76 | +usr/lib/mysql/plugin/debug/validate_password.so |
| 77 | +") |
| 78 | + |
| 79 | +SET (DEB_INSTALL_DEBUG_TEST_PLUGINS |
| 80 | +" |
| 81 | +# debug plugins |
| 82 | +usr/lib/mysql/plugin/debug/auth.so |
| 83 | +usr/lib/mysql/plugin/debug/auth_test_plugin.so |
| 84 | +usr/lib/mysql/plugin/debug/daemon_example.ini |
| 85 | +usr/lib/mysql/plugin/debug/libdaemon_example.so |
| 86 | +usr/lib/mysql/plugin/debug/qa_auth_client.so |
| 87 | +usr/lib/mysql/plugin/debug/qa_auth_interface.so |
| 88 | +usr/lib/mysql/plugin/debug/qa_auth_server.so |
| 89 | +usr/lib/mysql/plugin/debug/test_udf_services.so |
| 90 | +") |
0 commit comments