From 14359b46ccfb4b89f733b56c4825546ccc927e51 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 23 Jan 2023 21:58:34 +0100 Subject: [PATCH] Engine module setup. --- .gitignore | 10 ++++++++-- COPYRIGHT.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ LICENSE | 3 ++- SCsub | 13 +++++++++++++ config.py | 15 +++++++++++++++ register_types.cpp | 34 ++++++++++++++++++++++++++++++++++ register_types.h | 33 +++++++++++++++++++++++++++++++++ 7 files changed, 148 insertions(+), 3 deletions(-) create mode 100644 COPYRIGHT.txt create mode 100644 SCsub create mode 100644 config.py create mode 100644 register_types.cpp create mode 100644 register_types.h diff --git a/.gitignore b/.gitignore index 9cac8a5..00d0f29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,8 @@ -a.out -.DS_Store \ No newline at end of file +.import +*.d +*.o +*.meta +*.obj +*.pyc +*.bc +*.os diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt new file mode 100644 index 0000000..560f87f --- /dev/null +++ b/COPYRIGHT.txt @@ -0,0 +1,43 @@ +# Exhaustive licensing information for files in the Godot Engine repository +# ========================================================================= +# +# This file aims at documenting the copyright and license for every source +# file in the Godot Engine repository, and especially outline the files +# whose license differs from the MIT/Expat license used by Godot Engine. +# +# It is written as a machine-readable format following the debian/copyright +# specification. Globbing patterns (e.g. "Files: *") mean that they affect +# all corresponding files (also recursively in subfolders), apart from those +# with a more explicit copyright statement. +# +# Licenses are given with their debian/copyright short name (or SPDX identifier +# if no standard short name exists) and are all included in plain text at the +# end of this file (in alphabetical order). +# +# Disclaimer for thirdparty libraries: +# ------------------------------------ +# +# Licensing details for thirdparty libraries in the 'thirdparty/' directory +# are given in summarized form, i.e. with only the "main" license described +# in the library's license statement. Different licenses of single files or +# code snippets in thirdparty libraries are not documented here. +# For example: +# Files: ./thirdparty/zlib/ +# Copyright: 1995-2017, Jean-loup Gailly and Mark Adler +# License: Zlib +# The exact copyright for each file in that library *may* differ, and some +# files or code snippets might be distributed under other compatible licenses +# (e.g. a public domain dedication), but as far as Godot Engine is concerned +# the library is considered as a whole under the Zlib license. +# +# Nota: When linking dynamically against thirdparty libraries instead of +# building them into the Godot binary, you may remove the corresponding +# license details from this file. + +----------------------------------------------------------------------- + +Files: modules/pmlpp/* +Comment: Machine Learning Module +Copyright: Copyright (c) 2023-present Péter Magyar. + Copyright (c) 2022-2023 Marc Melikyan. +License: Expat diff --git a/LICENSE b/LICENSE index f89a601..6cbe515 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ MIT License -Copyright (c) 2022 Marc Melikyan +Copyright (c) 2023-present Péter Magyar +Copyright (c) 2022-2023 Marc Melikyan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/SCsub b/SCsub new file mode 100644 index 0000000..14b7f65 --- /dev/null +++ b/SCsub @@ -0,0 +1,13 @@ +import os + +Import('env') + +module_env = env.Clone() + +sources = [ + "register_types.cpp", +] + + +module_env.add_source_files(env.modules_sources, sources) + diff --git a/config.py b/config.py new file mode 100644 index 0000000..4e3694f --- /dev/null +++ b/config.py @@ -0,0 +1,15 @@ +def can_build(env, platform): + return True + +def configure(env): + pass + +def get_doc_classes(): + return [ + ] + +def get_doc_path(): + return "doc_classes" + +def get_license_file(): + return "COPYRIGHT.txt" diff --git a/register_types.cpp b/register_types.cpp new file mode 100644 index 0000000..ad316ed --- /dev/null +++ b/register_types.cpp @@ -0,0 +1,34 @@ +/* +Copyright (c) 2023-present Péter Magyar +Copyright (c) 2022 Marc Melikyan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#include "register_types.h" + + +void register_pmlpp_types(ModuleRegistrationLevel p_level) { + if (p_level == MODULE_REGISTRATION_LEVEL_SCENE) { + //ClassDB::register_class<>(); + } +} + +void unregister_pmlpp_types(ModuleRegistrationLevel p_level) { +} diff --git a/register_types.h b/register_types.h new file mode 100644 index 0000000..259961e --- /dev/null +++ b/register_types.h @@ -0,0 +1,33 @@ + +#ifndef REGSITER_PMLPP_TYPES +#define REGSITER_PMLPP_TYPES + +/* +Copyright (c) 2023-present Péter Magyar +Copyright (c) 2022 Marc Melikyan + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#include "modules/register_module_types.h" + +void register_pmlpp_types(ModuleRegistrationLevel p_level); +void unregister_pmlpp_types(ModuleRegistrationLevel p_level); + +#endif \ No newline at end of file