]> git.seodisparate.com - EntityComponentMetaSystem/commitdiff
Add conanfile.py, publish conan package 1.0
authorStephen Seo <seo.disparate@gmail.com>
Mon, 15 Jul 2024 04:31:04 +0000 (13:31 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Mon, 15 Jul 2024 04:31:04 +0000 (13:31 +0900)
conanfile.py [new file with mode: 0644]

diff --git a/conanfile.py b/conanfile.py
new file mode 100644 (file)
index 0000000..bda3e1e
--- /dev/null
@@ -0,0 +1,20 @@
+from conan import ConanFile
+from conan.tools.files import copy
+
+
+class ECMSConan(ConanFile):
+    name = "ecms"
+    version = "1.0"
+    # No settings/options are necessary, this is header only
+    exports_sources = "src/EC/*"
+    no_copy_source = True
+
+    def package(self):
+        # This will also copy the "include" folder
+        copy(self, "*.hpp", self.source_folder, self.package_folder)
+
+    def package_info(self):
+        # For header-only packages, libdirs and bindirs are not used
+        # so it's recommended to set those as empty.
+        self.cpp_info.bindirs = []
+        self.cpp_info.libdirs = []