Skip to content
Snippets Groups Projects
Commit f70e45fc authored by Tim Übelhör's avatar Tim Übelhör
Browse files

using conan package tools to build different configurations

parent 03dda6ed
No related branches found
No related tags found
No related merge requests found
import os
import sys
def system(command):
retcode = os.system(command)
if retcode != 0:
raise Exception("Error while executing:\n\t %s" % command)
from cpt.packager import ConanMultiPackager
if __name__ == "__main__":
params = " ".join(sys.argv[1:])
system('conan create . tuebel/testing -s build_type=Debug {}'.format(
params))
system('conan create . tuebel/testing -s build_type=Release {}'.format(
params))
system(('conan create . tuebel/testing -s build_type=Debug'
' -o *:shared=True {}').format(params))
system(('conan create . tuebel/testing -s build_type=Release'
' -o *:shared=True {}').format(params))
else:
pass
builder = ConanMultiPackager(
username='tuebel', channel="testing", stable_channel="testing",
gcc_versions=['7'], archs=['x86_64'])
builder.add_common_builds()
builder.run()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment