15 lines
		
	
	
		
			483 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			483 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
 | |
| from SCons.Script import *
 | |
| 
 | |
| import os
 | |
| 
 | |
| def cook(env: Environment, git_ref = 'master') -> dict:
 | |
|     repo = env.Cook('GitBranch', repo_name = 'mecab', remote_url = 'https://github.com/taku910/mecab.git', git_ref = git_ref)
 | |
|     checkout_root = repo['checkout_root']
 | |
|     build_result = env.Cook('AutotoolsProject', os.path.join(checkout_root, 'mecab'))
 | |
|     return {
 | |
|         'LIBPATH': build_result['LIBPATH'],
 | |
|         'CPPPATH': build_result['CPPPATH'],
 | |
|         'LIBS': ['mecab']
 | |
|     }
 |