Added spdlog recipe.
This commit is contained in:
parent
27f6869a1f
commit
28c0feb619
16
recipes/spdlog/recipe.py
Normal file
16
recipes/spdlog/recipe.py
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
from SCons.Script import *
|
||||||
|
|
||||||
|
def cook(env: Environment, git_ref: str = 'v1.x') -> dict:
|
||||||
|
repo = env.Cook('GitBranch', repo_name = 'spdlog', remote_url = 'https://github.com/gabime/spdlog.git', git_ref = git_ref)
|
||||||
|
checkout_root = repo['checkout_root']
|
||||||
|
build_result = env.Cook('CMakeProject', project_root=checkout_root)
|
||||||
|
|
||||||
|
lib_name = {
|
||||||
|
'debug': 'spdlogd'
|
||||||
|
}.get(env['BUILD_TYPE'], 'spdlog')
|
||||||
|
return {
|
||||||
|
'LIBPATH': build_result['LIBPATH'],
|
||||||
|
'CPPPATH': build_result['CPPPATH'],
|
||||||
|
'LIBS': [lib_name]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user