30 lines
538 B
Plaintext
30 lines
538 B
Plaintext
|
|
import json
|
|
|
|
Import('env')
|
|
|
|
if not hasattr(env, 'Jinja'):
|
|
env.Error('RAID requires the Jinja tool.')
|
|
|
|
src_files = Split("""
|
|
application.cpp
|
|
fonts.gen.cpp
|
|
stb_image.cpp
|
|
""")
|
|
|
|
env.Jinja("fonts.gen.cpp")
|
|
env.Jinja("fonts.gen.hpp")
|
|
|
|
with open('../../dependencies.json', 'r') as f:
|
|
dependencies = env.DepsFromJson(json.load(f))
|
|
|
|
lib_raid = env.UnityStaticLibrary(
|
|
name = 'RAID',
|
|
target = env['LIB_DIR'] + '/raid',
|
|
source = src_files,
|
|
dependencies = dependencies
|
|
)
|
|
env['lib_raid'] = lib_raid
|
|
|
|
Return('env')
|