13 lines
461 B
Python
13 lines
461 B
Python
|
|
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)
|
|
lib_mikktspace = env.StaticLibrary(
|
|
CPPPATH = [repo['checkout_root']],
|
|
target = env['LIB_DIR'] + '/mikktspace',
|
|
source = [os.path.join(repo['checkout_root'], 'mikktspace.c')]
|
|
)
|
|
return lib_mikktspace
|