diff --git a/cmake/COPYING-CMAKE-SCRIPTS b/cmake/COPYING-CMAKE-SCRIPTS new file mode 100644 index 00000000..4b417765 --- /dev/null +++ b/cmake/COPYING-CMAKE-SCRIPTS @@ -0,0 +1,22 @@ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/cmake/CheckFunctions.cmake b/cmake/CheckFunctions.cmake index aab57204..d3d3be66 100644 --- a/cmake/CheckFunctions.cmake +++ b/cmake/CheckFunctions.cmake @@ -1,7 +1,15 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# + # This file is included by CMakeLists.txt and # checks for various functions. -# include/my_config.h.in # You will find the appropiate defines in +# include/my_config.h.in INCLUDE(CheckFunctionExists) diff --git a/cmake/CheckIncludeFiles.cmake b/cmake/CheckIncludeFiles.cmake index 5aaabc8e..89b40ad5 100644 --- a/cmake/CheckIncludeFiles.cmake +++ b/cmake/CheckIncludeFiles.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# # This file is included by CMakeLists.txt and # checks for various header files. # You will find the appropiate defines in diff --git a/cmake/CheckTypes.cmake b/cmake/CheckTypes.cmake index 82a617ec..97605e20 100644 --- a/cmake/CheckTypes.cmake +++ b/cmake/CheckTypes.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# # This file is included by CMakeLists.txt and # checks for type sizes. # You will find the appropiate defines in diff --git a/cmake/ConnectorName.cmake b/cmake/ConnectorName.cmake index f2df3d51..b7bbbad8 100644 --- a/cmake/ConnectorName.cmake +++ b/cmake/ConnectorName.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# MACRO(GET_CONNECTOR_PACKAGE_NAME name) # check if we have 64bit IF(SIZEOF_VOIDP EQUAL 8) diff --git a/cmake/FindGSSAPI.cmake b/cmake/FindGSSAPI.cmake index 3a1c83cd..4862ec5b 100644 --- a/cmake/FindGSSAPI.cmake +++ b/cmake/FindGSSAPI.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# # - Try to detect the GSSAPI support # Once done this will define # diff --git a/cmake/FindIconv.cmake b/cmake/FindIconv.cmake index 0e962fe4..5cd7558e 100644 --- a/cmake/FindIconv.cmake +++ b/cmake/FindIconv.cmake @@ -1,4 +1,17 @@ -# Copyright (c) 2010 Michael Bell +# +# Copyright (C) 2010 Michael Bell +# 2015-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# +# ICONV_EXTERNAL - Iconv is an external library (not libc) +# ICONV_FOUND - system has Iconv +# ICONV_INCLUDE_DIR - the Iconv include directory +# ICONV_LIBRARIES - Link these to use Iconv +# ICONV_SECOND_ARGUMENT_IS_CONST - the second argument for iconv() is const +# ICONV_VERSION - Iconv version string if (ICONV_INCLUDE_DIR AND ICONV_LIBRARIES) # Already in cache, be silent diff --git a/cmake/SearchLibrary.cmake b/cmake/SearchLibrary.cmake index 9430779f..7f462b59 100644 --- a/cmake/SearchLibrary.cmake +++ b/cmake/SearchLibrary.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# INCLUDE(CheckFunctionExists) INCLUDE(CheckLibraryExists) diff --git a/cmake/WindowsCache.cmake b/cmake/WindowsCache.cmake index 049a3857..41e12fbd 100644 --- a/cmake/WindowsCache.cmake +++ b/cmake/WindowsCache.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# IF(MSVC) SET(BFD_H_EXISTS 0 CACHE INTERNAL "") SET(HAVE_ACCESS 1 CACHE INTERNAL "") diff --git a/cmake/export.cmake b/cmake/export.cmake index 595b259f..21bcbe86 100644 --- a/cmake/export.cmake +++ b/cmake/export.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# MACRO(CREATE_EXPORT_FILE targetname directory symbols) SET(EXPORT_FILE "${directory}/${targetname}.def") IF(WIN32) diff --git a/cmake/install.cmake b/cmake/install.cmake index 2afdcd07..56649e7e 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -1,22 +1,10 @@ -# ************************************************************************************ -# Copyright (C) 2014 MariaDB Corporation Ab -# -# This library is free software#; you can redistribute it and/or -# modify it under the terms of the GNU Library General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# Library General Public License for more details. -# -# You should have received a copy of the GNU Library General Public -# License along with this library; if not see -# or write to the Free Software Foundation, Inc., -# 51 Franklin St., Fifth Floor, Boston, MA 02110, USA # -# ************************************************************************************* +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# # # This file contains settings for the following layouts: diff --git a/cmake/install_plugins.cmake b/cmake/install_plugins.cmake index f671d4ff..1db3b50f 100644 --- a/cmake/install_plugins.cmake +++ b/cmake/install_plugins.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# # plugin installation MACRO(INSTALL_PLUGIN name binary_dir) diff --git a/cmake/linux_x86_toolchain.cmake b/cmake/linux_x86_toolchain.cmake index d3cb07cd..13e0b994 100644 --- a/cmake/linux_x86_toolchain.cmake +++ b/cmake/linux_x86_toolchain.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# # toolchain file for building a 32bit version on a 64bit host # Usage: diff --git a/cmake/plugins.cmake b/cmake/plugins.cmake index 3a7378ad..03225c42 100644 --- a/cmake/plugins.cmake +++ b/cmake/plugins.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# # plugin configuration MACRO(REGISTER_PLUGIN name source struct type target allow) diff --git a/cmake/sign.cmake b/cmake/sign.cmake index ac060211..461293b2 100644 --- a/cmake/sign.cmake +++ b/cmake/sign.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# MACRO(SIGN_TARGET target) IF(WITH_SIGNCODE) IF(WIN32) diff --git a/cmake/symlink.cmake b/cmake/symlink.cmake index 559f3e81..f69c11e1 100644 --- a/cmake/symlink.cmake +++ b/cmake/symlink.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# MACRO(create_symlink symlink_name target install_path) # According to cmake documentation symlinks work on unix systems only IF(UNIX) diff --git a/cmake/version_info.cmake b/cmake/version_info.cmake index 34c4e7cc..9d597a70 100644 --- a/cmake/version_info.cmake +++ b/cmake/version_info.cmake @@ -1,3 +1,10 @@ +# +# Copyright (C) 2013-2016 MariaDB Corporation AB +# +# Redistribution and use is allowed according to the terms of the New +# BSD license. +# For details see the COPYING-CMAKE-SCRIPTS file. +# FUNCTION(GET_FILE_VERSION FILE_NAME FILE_VERSION) # if we build from a git repository, we calculate the file version: