Skip to content

Commit fae075c

Browse files
committed
Release the example code in public domain.
Similarly to what was done for Magnum examples.
1 parent a23644a commit fae075c

14 files changed

+241
-169
lines changed

COPYING-examples

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
4+
this software, either in source code form or as a compiled binary, for any
5+
purpose, commercial or non-commercial, and by any means.
6+
7+
In jurisdictions that recognize copyright laws, the author or authors of
8+
this software dedicate any and all copyright interest in the software to
9+
the public domain. We make this dedication for the benefit of the public
10+
at large and to the detriment of our heirs and successors. We intend this
11+
dedication to be an overt act of relinquishment in perpetuity of all
12+
present and future rights to this software under copyright law.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17+
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20+
21+
For more information, please refer to <http://unlicense.org/>

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,8 @@ involved!
147147
LICENSE
148148
=======
149149
150-
Corrade is licensed under the MIT/Expat license, see the [COPYING](COPYING)
150+
Corrade itself and its documentation is licensed under the MIT/Expat license,
151+
see the [COPYING](COPYING) file for details. All example code in `src/examples`
152+
is put into public domain (or UNLICENSE) to free you from any legal obstacles
153+
when reusing the code in your apps. See the [COPYING-examples](COPYING-examples)
151154
file for details.

src/examples/CMakeLists.txt

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
#
22
# This file is part of Corrade.
33
#
4-
# Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
5-
# 2017, 2018 Vladimír Vondruš <[email protected]>
4+
# Original authors — credit is appreciated but not required:
65
#
7-
# Permission is hereby granted, free of charge, to any person obtaining a
8-
# copy of this software and associated documentation files (the "Software"),
9-
# to deal in the Software without restriction, including without limitation
10-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
11-
# and/or sell copies of the Software, and to permit persons to whom the
12-
# Software is furnished to do so, subject to the following conditions:
6+
# 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
7+
# — Vladimír Vondruš <[email protected]>
138
#
14-
# The above copyright notice and this permission notice shall be included
15-
# in all copies or substantial portions of the Software.
9+
# This is free and unencumbered software released into the public domain.
10+
#
11+
# Anyone is free to copy, modify, publish, use, compile, sell, or distribute
12+
# this software, either in source code form or as a compiled binary, for any
13+
# purpose, commercial or non-commercial, and by any means.
14+
#
15+
# In jurisdictions that recognize copyright laws, the author or authors of
16+
# this software dedicate any and all copyright interest in the software to
17+
# the public domain. We make this dedication for the benefit of the public
18+
# at large and to the detriment of our heirs and successors. We intend this
19+
# dedication to be an overt act of relinquishment in perpetuity of all
20+
# present and future rights to this software under copyright law.
1621
#
1722
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1823
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1924
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23-
# DEALINGS IN THE SOFTWARE.
25+
# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2428
#
2529

2630
cmake_minimum_required(VERSION 2.8.12)

src/examples/interconnect/CMakeLists.txt

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
#
22
# This file is part of Corrade.
33
#
4-
# Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
5-
# 2017, 2018 Vladimír Vondruš <[email protected]>
4+
# Original authors — credit is appreciated but not required:
65
#
7-
# Permission is hereby granted, free of charge, to any person obtaining a
8-
# copy of this software and associated documentation files (the "Software"),
9-
# to deal in the Software without restriction, including without limitation
10-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
11-
# and/or sell copies of the Software, and to permit persons to whom the
12-
# Software is furnished to do so, subject to the following conditions:
6+
# 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
7+
# — Vladimír Vondruš <[email protected]>
138
#
14-
# The above copyright notice and this permission notice shall be included
15-
# in all copies or substantial portions of the Software.
9+
# This is free and unencumbered software released into the public domain.
10+
#
11+
# Anyone is free to copy, modify, publish, use, compile, sell, or distribute
12+
# this software, either in source code form or as a compiled binary, for any
13+
# purpose, commercial or non-commercial, and by any means.
14+
#
15+
# In jurisdictions that recognize copyright laws, the author or authors of
16+
# this software dedicate any and all copyright interest in the software to
17+
# the public domain. We make this dedication for the benefit of the public
18+
# at large and to the detriment of our heirs and successors. We intend this
19+
# dedication to be an overt act of relinquishment in perpetuity of all
20+
# present and future rights to this software under copyright law.
1621
#
1722
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1823
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1924
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23-
# DEALINGS IN THE SOFTWARE.
25+
# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2428
#
2529

2630
cmake_minimum_required(VERSION 2.8.12)

src/examples/interconnect/main.cpp

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
/*
22
This file is part of Corrade.
33
4-
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
5-
2017, 2018 Vladimír Vondruš <[email protected]>
4+
Original authors — credit is appreciated but not required:
65
7-
Permission is hereby granted, free of charge, to any person obtaining a
8-
copy of this software and associated documentation files (the "Software"),
9-
to deal in the Software without restriction, including without limitation
10-
the rights to use, copy, modify, merge, publish, distribute, sublicense,
11-
and/or sell copies of the Software, and to permit persons to whom the
12-
Software is furnished to do so, subject to the following conditions:
6+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
7+
— Vladimír Vondruš <[email protected]>
138
14-
The above copyright notice and this permission notice shall be included
15-
in all copies or substantial portions of the Software.
9+
This is free and unencumbered software released into the public domain.
10+
11+
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
12+
this software, either in source code form or as a compiled binary, for any
13+
purpose, commercial or non-commercial, and by any means.
14+
15+
In jurisdictions that recognize copyright laws, the author or authors of
16+
this software dedicate any and all copyright interest in the software to
17+
the public domain. We make this dedication for the benefit of the public
18+
at large and to the detriment of our heirs and successors. We intend this
19+
dedication to be an overt act of relinquishment in perpetuity of all
20+
present and future rights to this software under copyright law.
1621
1722
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1823
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1924
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20-
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23-
DEALINGS IN THE SOFTWARE.
25+
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2428
*/
2529

2630
#include <string>

src/examples/pluginmanager/AbstractAnimal.h

+18-14
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,30 @@
33
/*
44
This file is part of Corrade.
55
6-
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
7-
2017, 2018 Vladimír Vondruš <[email protected]>
6+
Original authors — credit is appreciated but not required:
87
9-
Permission is hereby granted, free of charge, to any person obtaining a
10-
copy of this software and associated documentation files (the "Software"),
11-
to deal in the Software without restriction, including without limitation
12-
the rights to use, copy, modify, merge, publish, distribute, sublicense,
13-
and/or sell copies of the Software, and to permit persons to whom the
14-
Software is furnished to do so, subject to the following conditions:
8+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
9+
— Vladimír Vondruš <[email protected]>
1510
16-
The above copyright notice and this permission notice shall be included
17-
in all copies or substantial portions of the Software.
11+
This is free and unencumbered software released into the public domain.
12+
13+
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
14+
this software, either in source code form or as a compiled binary, for any
15+
purpose, commercial or non-commercial, and by any means.
16+
17+
In jurisdictions that recognize copyright laws, the author or authors of
18+
this software dedicate any and all copyright interest in the software to
19+
the public domain. We make this dedication for the benefit of the public
20+
at large and to the detriment of our heirs and successors. We intend this
21+
dedication to be an overt act of relinquishment in perpetuity of all
22+
present and future rights to this software under copyright law.
1823
1924
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2025
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2126
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22-
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25-
DEALINGS IN THE SOFTWARE.
27+
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
28+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2630
*/
2731

2832
#include <Corrade/PluginManager/AbstractPlugin.h>

src/examples/pluginmanager/CMakeLists.txt

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
#
22
# This file is part of Corrade.
33
#
4-
# Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
5-
# 2017, 2018 Vladimír Vondruš <[email protected]>
4+
# Original authors — credit is appreciated but not required:
65
#
7-
# Permission is hereby granted, free of charge, to any person obtaining a
8-
# copy of this software and associated documentation files (the "Software"),
9-
# to deal in the Software without restriction, including without limitation
10-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
11-
# and/or sell copies of the Software, and to permit persons to whom the
12-
# Software is furnished to do so, subject to the following conditions:
6+
# 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
7+
# — Vladimír Vondruš <[email protected]>
138
#
14-
# The above copyright notice and this permission notice shall be included
15-
# in all copies or substantial portions of the Software.
9+
# This is free and unencumbered software released into the public domain.
10+
#
11+
# Anyone is free to copy, modify, publish, use, compile, sell, or distribute
12+
# this software, either in source code form or as a compiled binary, for any
13+
# purpose, commercial or non-commercial, and by any means.
14+
#
15+
# In jurisdictions that recognize copyright laws, the author or authors of
16+
# this software dedicate any and all copyright interest in the software to
17+
# the public domain. We make this dedication for the benefit of the public
18+
# at large and to the detriment of our heirs and successors. We intend this
19+
# dedication to be an overt act of relinquishment in perpetuity of all
20+
# present and future rights to this software under copyright law.
1621
#
1722
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1823
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1924
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23-
# DEALINGS IN THE SOFTWARE.
25+
# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2428
#
2529

2630
cmake_minimum_required(VERSION 2.8.12)

src/examples/pluginmanager/Canary.cpp

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
/*
22
This file is part of Corrade.
33
4-
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
5-
2017, 2018 Vladimír Vondruš <[email protected]>
4+
Original authors — credit is appreciated but not required:
65
7-
Permission is hereby granted, free of charge, to any person obtaining a
8-
copy of this software and associated documentation files (the "Software"),
9-
to deal in the Software without restriction, including without limitation
10-
the rights to use, copy, modify, merge, publish, distribute, sublicense,
11-
and/or sell copies of the Software, and to permit persons to whom the
12-
Software is furnished to do so, subject to the following conditions:
6+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
7+
— Vladimír Vondruš <[email protected]>
138
14-
The above copyright notice and this permission notice shall be included
15-
in all copies or substantial portions of the Software.
9+
This is free and unencumbered software released into the public domain.
10+
11+
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
12+
this software, either in source code form or as a compiled binary, for any
13+
purpose, commercial or non-commercial, and by any means.
14+
15+
In jurisdictions that recognize copyright laws, the author or authors of
16+
this software dedicate any and all copyright interest in the software to
17+
the public domain. We make this dedication for the benefit of the public
18+
at large and to the detriment of our heirs and successors. We intend this
19+
dedication to be an overt act of relinquishment in perpetuity of all
20+
present and future rights to this software under copyright law.
1621
1722
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1823
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1924
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20-
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23-
DEALINGS IN THE SOFTWARE.
25+
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2428
*/
2529

2630
#include "AbstractAnimal.h"

src/examples/pluginmanager/Dog.cpp

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
/*
22
This file is part of Corrade.
33
4-
Copyright © 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016,
5-
2017, 2018 Vladimír Vondruš <[email protected]>
4+
Original authors — credit is appreciated but not required:
65
7-
Permission is hereby granted, free of charge, to any person obtaining a
8-
copy of this software and associated documentation files (the "Software"),
9-
to deal in the Software without restriction, including without limitation
10-
the rights to use, copy, modify, merge, publish, distribute, sublicense,
11-
and/or sell copies of the Software, and to permit persons to whom the
12-
Software is furnished to do so, subject to the following conditions:
6+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
7+
— Vladimír Vondruš <[email protected]>
138
14-
The above copyright notice and this permission notice shall be included
15-
in all copies or substantial portions of the Software.
9+
This is free and unencumbered software released into the public domain.
10+
11+
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
12+
this software, either in source code form or as a compiled binary, for any
13+
purpose, commercial or non-commercial, and by any means.
14+
15+
In jurisdictions that recognize copyright laws, the author or authors of
16+
this software dedicate any and all copyright interest in the software to
17+
the public domain. We make this dedication for the benefit of the public
18+
at large and to the detriment of our heirs and successors. We intend this
19+
dedication to be an overt act of relinquishment in perpetuity of all
20+
present and future rights to this software under copyright law.
1621
1722
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1823
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1924
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20-
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22-
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23-
DEALINGS IN THE SOFTWARE.
25+
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2428
*/
2529

2630
#include "AbstractAnimal.h"

0 commit comments

Comments
 (0)