Update to new recipe system (S++ 2.0).
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
|
||||
import os
|
||||
|
||||
from SCons.Script import *
|
||||
|
||||
def cook(env: Environment, git_ref: str = 'master') -> dict:
|
||||
repo = env.GitBranch(repo_name = 'mikktspace', remote_url = 'https://github.com/mmikk/MikkTSpace.git', git_ref = git_ref)
|
||||
def versions(env: Environment, update: bool = False):
|
||||
return [(1, 0)]
|
||||
|
||||
def dependencies(env: Environment, version) -> 'dict':
|
||||
return {}
|
||||
|
||||
def cook(env: Environment, version) -> dict:
|
||||
repo = env.GitBranch(repo_name = 'mikktspace', remote_url = 'https://github.com/mmikk/MikkTSpace.git', git_ref = 'master')
|
||||
checkout_root = repo['checkout_root']
|
||||
lib_mikktspace = env.StaticLibrary(
|
||||
CPPPATH = [repo['checkout_root']],
|
||||
CPPPATH = [checkout_root],
|
||||
target = env['LIB_DIR'] + '/mikktspace',
|
||||
source = [os.path.join(repo['checkout_root'], 'mikktspace.c')]
|
||||
)
|
||||
return lib_mikktspace
|
||||
return {
|
||||
'CPPPATH': [checkout_root],
|
||||
'LIBS': [lib_mikktspace]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user