mirror of
https://github.com/Minres/conan-recipes.git
synced 2025-07-01 15:33:27 +02:00
Updated versions
This commit is contained in:
1
SystemC-CCI/.gitignore
vendored
1
SystemC-CCI/.gitignore
vendored
@ -1 +1,2 @@
|
||||
/cci-0.9.0*
|
||||
/cci-1.0.0
|
||||
|
@ -2,12 +2,15 @@ from conan.packager import ConanMultiPackager
|
||||
|
||||
if __name__ == "__main__":
|
||||
builder = ConanMultiPackager()
|
||||
archs = ['x86', 'x86_64']
|
||||
types = ['Debug','Release']
|
||||
cxxstds = ['98','11','14']
|
||||
cxxstds = ['98', '11','14']
|
||||
libstdcxx = ['libstdc++', 'libstdc++11']
|
||||
#-s compiler.libcxx=libstdc++
|
||||
configs = [[i,k,l] for i in cxxstds for k in types for l in libstdcxx]
|
||||
for triple in configs:
|
||||
builder.add(settings={"build_type":triple[1], "compiler.libcxx":triple[2]}, options={"stdcxx" : triple[0]}, env_vars={}, build_requires={})
|
||||
shared = [True,False]
|
||||
for triple in [[i,k,l,s] for i in cxxstds for k in types for l in libstdcxx for s in shared]:
|
||||
if triple[0] != '98' or triple[2] != 'libstdc++11':
|
||||
builder.add(
|
||||
settings={"build_type":triple[1],"compiler.libcxx":triple[2]},
|
||||
options={"stdcxx" : triple[0], "shared" : triple[3]},
|
||||
env_vars={},
|
||||
build_requires={})
|
||||
builder.run()
|
||||
|
@ -1,44 +1,45 @@
|
||||
from conans import ConanFile, tools, AutoToolsBuildEnvironment
|
||||
import os
|
||||
from conans import ConanFile, CMake
|
||||
|
||||
class SystemC_CCIConan(ConanFile):
|
||||
name = "SystemC-CCI"
|
||||
version = "0.9.0"
|
||||
version = "1.0.0"
|
||||
license = "Apache 2.0 License"
|
||||
url = "https://github.com/Minres/conan-recipes/blob/master/SystemC-CCI"
|
||||
description = "The SystemC Configuration, Control and Inspection (CCI) allows tools to seamlessly and consistently interact with models to provide essential capabilities."
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
options = {"stdcxx":[98,11,14]}
|
||||
default_options = "stdcxx=98"
|
||||
generators = "gcc"
|
||||
source_subfolder = "cci-0.9.0_pub_rev_20171219"
|
||||
exports_sources = "cci-0.9.0_pub_rev_20171219/*"
|
||||
requires = "SystemC/2.3.2@minres/stable"
|
||||
options = {"shared": [True, False], "stdcxx":[98,11,14]}
|
||||
default_options = "shared=True","stdcxx=98"
|
||||
generators = "cmake"
|
||||
source_subfolder = "cci-1.0.0"
|
||||
exports_sources = "cci-1.0.0/*"
|
||||
requires = "SystemC/2.3.3@minres/stable"
|
||||
|
||||
def configure(self):
|
||||
self.options["SystemC"].stdcxx = self.options.stdcxx
|
||||
|
||||
def build(self):
|
||||
env_build = AutoToolsBuildEnvironment(self)
|
||||
if self.options.stdcxx == "14":
|
||||
env_build.cxx_flags = "-std=gnu++14"
|
||||
elif self.options.stdcxx == "11":
|
||||
env_build.cxx_flags = "-std=gnu++11"
|
||||
elif self.options.stdcxx == "98":
|
||||
env_build.cxx_flags = "-std=gnu++98"
|
||||
env_build.fpic = True
|
||||
with tools.chdir(os.path.join(self.source_subfolder, 'src')):
|
||||
env_build.make(args=[ 'clean', 'SYSTEMC_HOME=%s' % self.deps_cpp_info["SystemC"].rootpath])
|
||||
env_build.make(args=[ 'AT_CXX=', 'SYSTEMC_HOME=%s' % self.deps_cpp_info["SystemC"].rootpath])
|
||||
|
||||
def build(self):
|
||||
cmake = CMake(self, parallel=True)
|
||||
cmake.configure(
|
||||
source_folder=self.source_subfolder,
|
||||
args=[
|
||||
'-DBUILD_SHARED_LIBS=ON' if self.options.shared else '-DBUILD_SHARED_LIBS=OFF',
|
||||
'-DCMAKE_INSTALL_LIBDIR=lib',
|
||||
'-DCMAKE_CXX_STANDARD=%s' % self.options.stdcxx,
|
||||
'-DSYSTEMC_ROOT=%s' % self.deps_cpp_info["SystemC"].rootpath
|
||||
]
|
||||
)
|
||||
cmake.build()
|
||||
cmake.install()
|
||||
|
||||
def package(self):
|
||||
pass
|
||||
# Headers
|
||||
inc_dir = os.path.join(self.source_subfolder, 'src')
|
||||
self.copy(pattern="cci_configuration", dst="include", src=inc_dir, keep_path=True)
|
||||
self.copy(pattern="*.h", dst="include", src=inc_dir, keep_path=True)
|
||||
#inc_dir = os.path.join(self.source_subfolder, 'src')
|
||||
#self.copy(pattern="cci_configuration", dst="include", src=inc_dir, keep_path=True)
|
||||
#self.copy(pattern="*.h", dst="include", src=inc_dir, keep_path=True)
|
||||
# Libs
|
||||
lib_dir = os.path.join(self.source_subfolder, 'lib')
|
||||
self.copy(pattern="*", dst="lib", src=lib_dir, keep_path=False)
|
||||
#lib_dir = os.path.join(self.source_subfolder, 'lib')
|
||||
#self.copy(pattern="*", dst="lib", src=lib_dir, keep_path=False)
|
||||
|
||||
def package_info(self):
|
||||
self.cpp_info.libs = ["cciapi"]
|
||||
|
Reference in New Issue
Block a user