Program Listing for File licenses.h
↰ Return to documentation for file (rcsw/version/licenses.h
)
#pragma once
/*******************************************************************************
* Includes
******************************************************************************/
#include "rcsw/rcsw.h"
/*******************************************************************************
* Macros
******************************************************************************/
#define RCSW_COPYRIGHT(year, author) \
"Copyright (c) " RCSW_XSTR(year) " " RCSW_XSTR(author) ".\r\n"
#define RCSW_LICENSE_SHORT(license, project, ...) \
RCSW_JOIN(RCSW_LICENSE_SHORT_, license)(project, ##__VA_ARGS__)
#define RCSW_LICENSE_FULL(license, project, ...) \
RCSW_JOIN(RCSW_LICENSE_FULL_, license)(project, ##__VA_ARGS__)
#define RCSW_LICENSE_FULL_GPLV3(project, ...) \
RCSW_XSTR(project) " is free software: you can redistribute it and/or modify it\r\n" \
"under the terms of the GNU General Public License as published by the Free\r\n" \
"Software Foundation, either version 3 of the License, or (at your option) any\r\n" \
"later version.\r\n" \
"\r\n" \
RCSW_XSTR(project) " is distributed in the hope that it will be useful, but\r\n" \
"WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r\n" \
"FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more\r\n" \
"details.\r\n" \
"\r\n" \
"You should have received a copy of the GNU General Public License along with\r\n" \
RCSW_XSTR(project) ". If not, see <https://www.gnu.org/licenses/>.\r\n"
#define RCSW_LICENSE_SHORT_GPLV3(project, ...) \
RCSW_XSTR(project) " license: GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>\r\n" \
RCSW_XSTR(project) " is free software: you are free to change and redistribute it.\r\n" \
RCSW_XSTR(project) " comes with no warranty.\r\n"
#define RCSW_LICENSE_FULL_LGPLV3(project, ...) \
RCSW_XSTR(project) " is free software: you can redistribute it and/or modify it\r\n" \
"under the terms of the GNU Lesser General Public License as published by the\r\n" \
"Free Software Foundation, either version 3 of the License, or (at your option)\r\n" \
"any later version.\r\n" \
"\r\n" \
RCSW_XSTR(project) " is distributed in the hope that it will be useful, but\r\n" \
"WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r\n" \
"FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more\r\n" \
"details.\r\n" \
"\r\n" \
"You should have received a copy of the GNU Lesser General Public License along\r\n" \
"with " RCSW_XSTR(project) ". If not, see <https://www.gnu.org/licenses/>.\r\n"
#define RCSW_LICENSE_FULL_MIT(project, ...) \
"Permission is hereby granted, free of charge, to any person obtaining a copy\r\n" \
"of this software and associated documentation files (the \"Software\"), to deal\r\n" \
"in the Software without restriction, including without limitation the rights\r\n" \
"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n" \
"copies of the Software, and to permit persons to whom the Software is\r\n" \
"furnished to do so, subject to the following conditions:\r\n" \
"\r\n" \
"The above copyright notice and this permission notice shall be included in all\r\n" \
"copies or substantial portions of the Software.\r\n" \
"\r\n" \
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n" \
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n" \
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n" \
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n" \
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n" \
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n" \
"SOFTWARE.\r\n"
#define RCSW_LICENSE_SHORT_MIT(project, ...) \
RCSW_XSTR(project) " is licensed under the terms of the MIT LICENSE.\r\n" \
RCSW_XSTR(project) " is free software: you are free to change and redistribute it.\r\n" \
RCSW_XSTR(project) " comes with no warranty.\r\n"