Beispiel #1
0
def build_directory(path):
    deps = scanner.directory_dependencies(path)
    for dep in deps:
        print ' - resolving dependency:', dep
        if not storage.contains_module(dep):
            if storage.remote_contains_module(dep):
                storage.fetch_module(dep)
            else:
                print utility.color(' - module not found: ' + dep, 'red')
                print utility.color(' - build failed', 'red')
                exit(1)
        ready_indexed_module(dep)
    generate_cmake(path, deps)
    make(path)
Beispiel #2
0
def build_directory(path,options=None):
    deps = scanner.recursive_dependencies(path)
    for dep in deps:
        # print ' - resolving dependency:', dep
        if not storage.contains_module(dep):
            if storage.remote_contains_module(dep):
                storage.fetch_module(dep)
            else:
                print utility.color(' - module not found: ' + dep, 'red')
                print utility.color(' - build failed', 'red')
                exit(1)
        ready_indexed_module(dep)
    generate_cmake(path, deps,options)
    make(path,options)
Beispiel #3
0
def fetch(context):
	if context.name.find('.git') >= 0:
		storage.fetch_unindexed_module(context.name)
	else:
		storage.fetch_module(context.name)