Update to new recipe system (S++ 2.0).
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
|
||||
import os
|
||||
import json
|
||||
from SCons.Script import *
|
||||
|
||||
def cook(env: Environment, git_ref: str = "master") -> dict:
|
||||
repo = env.GitBranch(repo_name = 'iwa', remote_url = 'https://git.mewin.de/mewin/iwa.git', git_ref = git_ref)
|
||||
_REPO_NAME = 'iwa'
|
||||
_REPO_URL = 'https://git.mewin.de/mewin/iwa.git'
|
||||
|
||||
def versions(env: Environment, update: bool = False):
|
||||
return [(0, 0, 0)]
|
||||
|
||||
def dependencies(env: Environment, version) -> 'dict':
|
||||
repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master')
|
||||
checkout_root = repo['checkout_root']
|
||||
return SConscript(os.path.join(checkout_root, 'LibConf'), exports = ['env'])
|
||||
with open(os.path.join(checkout_root, 'dependencies.json'), 'r') as f:
|
||||
return env.DepsFromJson(json.load(f))
|
||||
|
||||
def cook(env: Environment, version) -> dict:
|
||||
repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master')
|
||||
checkout_root = repo['checkout_root']
|
||||
return env.Module(os.path.join(checkout_root, 'SModule'))
|
||||
|
||||
Reference in New Issue
Block a user