conan-recipes/SystemC/build.py

19 lines
700 B
Python
Raw Normal View History

2020-04-05 15:36:06 +02:00
#!/usr/bin/env python3
2017-10-28 17:07:33 +02:00
from conan.packager import ConanMultiPackager
2020-04-05 15:36:06 +02:00
2017-10-28 17:07:33 +02:00
if __name__ == "__main__":
2020-04-05 15:36:06 +02:00
builder = ConanMultiPackager(username="minres")
2017-10-28 17:07:33 +02:00
types = ['Debug','Release']
cxxstds = ['98', '11','14']
2018-03-27 22:00:36 +02:00
libstdcxx = ['libstdc++', 'libstdc++11']
2020-04-05 15:36:06 +02:00
shared = [True, False]
2019-06-15 22:31:04 +02:00
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(
2018-03-27 22:00:36 +02:00
settings={"build_type":triple[1],"compiler.libcxx":triple[2]},
options={"stdcxx" : triple[0], "shared" : triple[3]},
env_vars={},
build_requires={})
2017-10-28 17:07:33 +02:00
builder.run()