Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-07-08 12:22:17 +0300
committerAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-07-11 11:32:24 +0300
commit837eca8c1047f0212f3c8768852dce216105a4dd (patch)
tree9ec4e6659a86c9c2b61f2db041f35dad897d2ccd /third-party
parent165289005b6a1a4391d41f78e24b8688382b5411 (diff)
CLI11: adding CLI11 to cmake
added readme ignore third-party in bareos-check-sources
Diffstat (limited to 'third-party')
-rw-r--r--third-party/CMakeLists.txt22
-rw-r--r--third-party/README.md18
2 files changed, 40 insertions, 0 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt
new file mode 100644
index 000000000..6fa9993dd
--- /dev/null
+++ b/third-party/CMakeLists.txt
@@ -0,0 +1,22 @@
+# BAREOSĀ® - Backup Archiving REcovery Open Sourced
+#
+# Copyright (C) 2022-2022 Bareos GmbH & Co. KG
+#
+# This program is Free Software; you can redistribute it and/or
+# modify it under the terms of version three of the GNU Affero General Public
+# License as published by the Free Software Foundation and included
+# in the file LICENSE.
+#
+# This program 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
+# Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+message("Entering ${CMAKE_CURRENT_SOURCE_DIR}")
+
+add_subdirectory(CLI11)
diff --git a/third-party/README.md b/third-party/README.md
new file mode 100644
index 000000000..cf0c5180b
--- /dev/null
+++ b/third-party/README.md
@@ -0,0 +1,18 @@
+# Bareos third party libraries
+
+This is the "home" of external libraries that are used in Bareos
+
+### Adding third party libraries
+
+Each Library will be put into its own subdirectory with `git subtree` and will have its own CMake include-file (if it is not already made available by the provider of the library), that is then loaded in CMakeLists.txt
+
+A typical git subtree command would look like this : `git subtree add --prefix destination/path https://www.yourgithost.com/your/repo yourbranch(usuallymaster) --squash`
+
+Make sure the library license is covert by `core/LICENSE`. At best, the library is also licensed as AGPL-3. If it is not already covered, a section needs to be added for it in `core/LICENSE` and `debian/copyright.footer`. Also execute `cd debian; make copyright` to update `debian/copyright`.
+
+### What to add?
+
+External things that we rely on (but don't want to change) should live here. Things like `FMT` and `GSL` could be added here.
+`lmdb` (and maybe the `md5` code) should be migrated here.
+
+Things like `droplet`, `fastlz` and `ndmp` will stay as is, because there is no upstream and we made significant changes (i.e. we imported that code into our code-base instead of just using it).