update conanfiles and add RocksDB
This commit is contained in:
parent
3117dadcfe
commit
7d28cd736d
|
@ -1 +1,2 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
|
*/test_package/build/
|
||||||
|
|
|
@ -21,10 +21,6 @@ class RocksDBConan(ConanFile):
|
||||||
"bzip2/1.0.8",
|
"bzip2/1.0.8",
|
||||||
"lz4/1.8.0@bincrafters/stable",
|
"lz4/1.8.0@bincrafters/stable",
|
||||||
"gflags/2.2.2"
|
"gflags/2.2.2"
|
||||||
#"zlib/1.2.11@conan/stable",
|
|
||||||
#"bzip2/1.0.8@conan/stable",
|
|
||||||
#"lz4/1.8.0@bincrafters/stable",
|
|
||||||
#"gflags/2.2.2@bincrafters/stable"
|
|
||||||
# TODO snappy, zstandard
|
# TODO snappy, zstandard
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
from conan.packager import ConanMultiPackager
|
from conan.packager import ConanMultiPackager
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
builder = ConanMultiPackager()
|
builder = ConanMultiPackager(username="minres")
|
||||||
types = ['Debug','Release']
|
types = ['Debug','Release']
|
||||||
cxxstds = ['98', '11','14']
|
cxxstds = ['98', '11','14']
|
||||||
libstdcxx = ['libstdc++', 'libstdc++11']
|
libstdcxx = ['libstdc++', 'libstdc++11']
|
||||||
|
|
|
@ -22,6 +22,7 @@ class SystemC_CCIConan(ConanFile):
|
||||||
cmake.configure(
|
cmake.configure(
|
||||||
source_folder=self.source_subfolder,
|
source_folder=self.source_subfolder,
|
||||||
args=[
|
args=[
|
||||||
|
'-DCMAKE_CXX_FLAGS:="-D_GLIBCXX_USE_CXX11_ABI=%d"' % (0 if self.settings.compiler.libcxx == 'libstdc++' else 1),
|
||||||
'-DBUILD_SHARED_LIBS=ON' if self.options.shared else '-DBUILD_SHARED_LIBS=OFF',
|
'-DBUILD_SHARED_LIBS=ON' if self.options.shared else '-DBUILD_SHARED_LIBS=OFF',
|
||||||
'-DCMAKE_INSTALL_LIBDIR=lib',
|
'-DCMAKE_INSTALL_LIBDIR=lib',
|
||||||
'-DCMAKE_CXX_STANDARD=%s' % self.options.stdcxx,
|
'-DCMAKE_CXX_STANDARD=%s' % self.options.stdcxx,
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
from conan.packager import ConanMultiPackager
|
from conan.packager import ConanMultiPackager
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
builder = ConanMultiPackager()
|
builder = ConanMultiPackager(username="minres")
|
||||||
types = ['Debug','Release']
|
types = ['Debug','Release']
|
||||||
cxxstds = ['98', '11','14']
|
cxxstds = ['98', '11','14']
|
||||||
libstdcxx = ['libstdc++', 'libstdc++11']
|
libstdcxx = ['libstdc++', 'libstdc++11']
|
||||||
|
|
|
@ -8,8 +8,8 @@ class SystemCConan(ConanFile):
|
||||||
url = "https://github.com/Minres/conan-recipes/blob/master/SystemC"
|
url = "https://github.com/Minres/conan-recipes/blob/master/SystemC"
|
||||||
description = "SystemC is a set of C++ classes and macros which provide an event-driven simulation interface (see also discrete event simulation)."
|
description = "SystemC is a set of C++ classes and macros which provide an event-driven simulation interface (see also discrete event simulation)."
|
||||||
settings = "os", "compiler", "build_type", "arch"
|
settings = "os", "compiler", "build_type", "arch"
|
||||||
options = {"shared": [True, False], "stdcxx":[98,11,14]}
|
options = {"shared":[True, False], "stdcxx":[98,11,14], "phase_cb":[True, False]}
|
||||||
default_options = "shared=True","stdcxx=98"
|
default_options = "shared=True","stdcxx=11","phase_cb=False"
|
||||||
generators = "cmake"
|
generators = "cmake"
|
||||||
source_subfolder = "systemc-2.3.3"
|
source_subfolder = "systemc-2.3.3"
|
||||||
exports_sources = "systemc-2.3.3/*"
|
exports_sources = "systemc-2.3.3/*"
|
||||||
|
@ -20,9 +20,12 @@ class SystemCConan(ConanFile):
|
||||||
cmake.configure(
|
cmake.configure(
|
||||||
source_folder=self.source_subfolder,
|
source_folder=self.source_subfolder,
|
||||||
args=[
|
args=[
|
||||||
"-DBUILD_SHARED_LIBS=ON" if self.options.shared else "-DBUILD_SHARED_LIBS=OFF",
|
'-DCMAKE_CXX_FLAGS:="-D_GLIBCXX_USE_CXX11_ABI=%d"' % (0 if self.settings.compiler.libcxx == 'libstdc++' else 1),
|
||||||
"-DCMAKE_INSTALL_LIBDIR=lib",
|
'-DBUILD_SHARED_LIBS=%s' % ('ON' if self.options.shared else 'OFF'),
|
||||||
'-DCMAKE_CXX_STANDARD=%s' % self.options.stdcxx
|
'-DCMAKE_INSTALL_LIBDIR=lib',
|
||||||
|
'-DCMAKE_CXX_STANDARD=%s' % self.options.stdcxx,
|
||||||
|
'-DENABLE_PHASE_CALLBACKS=%s' % ('ON' if self.options.phase_cb else 'OFF'),
|
||||||
|
'-DENABLE_PHASE_CALLBACKS_TRACING=%s' % ('ON' if self.options.phase_cb else 'OFF')
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
cmake.build()
|
cmake.build()
|
||||||
|
@ -36,5 +39,7 @@ class SystemCConan(ConanFile):
|
||||||
#self.copy(pattern="*", dst="lib", src="package/lib", keep_path=False)
|
#self.copy(pattern="*", dst="lib", src="package/lib", keep_path=False)
|
||||||
|
|
||||||
def package_info(self):
|
def package_info(self):
|
||||||
self.cpp_info.libs = ["systemc", "pthread"]
|
self.cpp_info.libs = ["systemc"]
|
||||||
|
if self.settings.os == "Linux":
|
||||||
|
self.cpp_info.libs.append("pthread")
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import os
|
||||||
class SystemcTestConan(ConanFile):
|
class SystemcTestConan(ConanFile):
|
||||||
settings = "os", "compiler", "build_type", "arch"
|
settings = "os", "compiler", "build_type", "arch"
|
||||||
options = {"stdcxx":[98,11,14], "shared":[True,False]}
|
options = {"stdcxx":[98,11,14], "shared":[True,False]}
|
||||||
default_options = "stdcxx=98","shared=True"
|
default_options = "stdcxx=11","shared=True"
|
||||||
generators = "cmake"
|
generators = "cmake"
|
||||||
|
|
||||||
def configure(self):
|
def configure(self):
|
||||||
|
@ -14,6 +14,7 @@ class SystemcTestConan(ConanFile):
|
||||||
def build(self):
|
def build(self):
|
||||||
cmake = CMake(self)
|
cmake = CMake(self)
|
||||||
cmake.definitions["CMAKE_CXX_STANDARD"] = self.options["SystemC"].stdcxx
|
cmake.definitions["CMAKE_CXX_STANDARD"] = self.options["SystemC"].stdcxx
|
||||||
|
cmake.definitions["CMAKE_CXX_FLAGS"]="-D_GLIBCXX_USE_CXX11_ABI=%d" %(0 if self.settings.compiler.libcxx == 'libstdc++' else 1)
|
||||||
cmake.configure()
|
cmake.configure()
|
||||||
cmake.build()
|
cmake.build()
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
from conan.packager import ConanMultiPackager
|
from conan.packager import ConanMultiPackager
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
builder = ConanMultiPackager()
|
builder = ConanMultiPackager(username="minres")
|
||||||
types = ['Debug','Release']
|
types = ['Debug','Release']
|
||||||
cxxstds = ['98', '11','14']
|
cxxstds = ['98', '11','14']
|
||||||
libstdcxx = ['libstdc++', 'libstdc++11']
|
libstdcxx = ['libstdc++', 'libstdc++11']
|
||||||
|
|
|
@ -3,7 +3,7 @@ from conans import ConanFile, CMake, tools
|
||||||
|
|
||||||
class ElfioConan(ConanFile):
|
class ElfioConan(ConanFile):
|
||||||
name = "elfio"
|
name = "elfio"
|
||||||
version = "1.3.2"
|
version = "3.4"
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
url = "http://git.code.sf.net/p/elfio/code"
|
url = "http://git.code.sf.net/p/elfio/code"
|
||||||
description = "ELFIO is a header-only C++ library intended for reading and generating files in the ELF binary format"
|
description = "ELFIO is a header-only C++ library intended for reading and generating files in the ELF binary format"
|
||||||
|
|
Loading…
Reference in New Issue