Skip to content
Snippets Groups Projects
Select Git revision
  • dce9dafc40e717e4dadc3c45ad76fc8312b455ea
  • main default protected
  • f-better-sss-bin-dir
  • dev protected
  • f-remove-dropoffbox
  • f-sss4grpc
  • f-refactor-compose
  • f-real-id
  • f-doip
  • f-filesystem-import
  • henrik-tmp
  • f-filesystem-link
  • f-filesystem-directory
  • f-filesystem-core
  • f-filesystem-cleanup
  • f-string-ids
  • f-filesystem-main
  • f-linkahead-rename-before
  • f-linkahead-rename
  • f-rename-li
  • f-experiment-trino
  • v0.13.0 protected
  • v0.12.3 protected
  • v0.12.2 protected
  • v0.12.1 protected
  • v0.12.0 protected
  • v0.11.0 protected
  • v0.10.0 protected
  • v0.9.0 protected
  • v0.8.1 protected
  • v0.8.0 protected
  • v0.7.3 protected
  • v0.7.2 protected
  • v0.7.1 protected
  • v0.6.0 protected
  • v0.5.0 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • working_sss protected
  • v0.1 protected
40 results

caosdb_openapi.yaml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    conanfile.py 1.92 KiB
    from conans import ConanFile, CMake, tools
    
    
    class CaosdbConan(ConanFile):
        name = "caosdb"
        version = "0.0.15"
        license = "AGPL-3.0-or-later"
        author = "Timm C. Fitschen <t.fitschen@indiscale.com>"
        url = "https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git"
        description = "C++ library for the CaosDB project"
        topics = ("data management", "caosdb")
        settings = "os", "compiler", "build_type", "arch"
        options = {"shared": [True, False], "fPIC": [True, False]}
        default_options = {"shared": False, "fPIC": True}
        generators = "cmake"
        requires = [("boost/1.76.0"), ("gtest/1.11.0"), ("grpc/1.38.0")]
        exports = "*.cpp", "*.h", "*.cmake", "*CMakeLists.txt", "*.in", "*.proto", "*.c"
        exports_sources = "src", "doc", "include", "test", "cmake", "proto"
    
        def config_options(self):
            if self.settings.os == "Windows":
                del self.options.fPIC
            self.options["boost"].without_python = True
    
        # def source(self):
            # self.run("git clone https://gitlab.indiscale.com/caosdb/src/caosdb-cpplib.git")
            # self.run("cd caosdb-cpplib && git submodule update --init")
    
        def imports(self):
            self.copy("protoc*", "build_tools", "bin")
            self.copy("grpc_cpp_plugin*", "build_tools", "bin")
    
        def build(self):
            cmake = CMake(self)
            cmake.configure(source_folder="")
            cmake.build()
    
            # Explicit way:
            # self.run('cmake %s/hello %s'
            #          % (self.source_folder, cmake.command_line))
            # self.run("cmake --build . %s" % cmake.build_config)
    
        def package(self):
            self.copy("*.h", dst="include", src="include")
            self.copy("*.dll", dst="bin", keep_path=False)
            self.copy("*.so", dst="lib", keep_path=False)
            self.copy("*.dylib", dst="lib", keep_path=False)
            self.copy("*.a", dst="lib", keep_path=False)
    
        def package_info(self):
            self.cpp_info.libs = ["caosdb", "ccaosdb"]