22 lines
603 B
Python
22 lines
603 B
Python
|
|
from SCons.Script import *
|
|
|
|
import os
|
|
|
|
|
|
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 = 'mecab', remote_url = 'https://github.com/taku910/mecab.git', git_ref = 'master')
|
|
checkout_root = repo['checkout_root']
|
|
build_result = env.AutotoolsProject(os.path.join(checkout_root, 'mecab'))
|
|
return {
|
|
'LIBPATH': build_result['LIBPATH'],
|
|
'CPPPATH': build_result['CPPPATH'],
|
|
'LIBS': ['mecab']
|
|
}
|