Add fmtlib to scons
This commit is contained in:
@@ -84,7 +84,7 @@ print('C++ compiler:', cxx)
|
||||
|
||||
env.VariantDir('#build/obj', 'src')
|
||||
env.VariantDir('#build/obj/test', 'test')
|
||||
env.VariantDir('#build/obj/test/deps', 'deps')
|
||||
env.VariantDir('#build/obj/deps', 'deps')
|
||||
|
||||
if not env['release']:
|
||||
if platform in ['posix', 'darwin']:
|
||||
@@ -411,6 +411,12 @@ if not env.GetOption('clean'):
|
||||
|
||||
env.Append(CPPPATH=[path.join(os.getcwd(), 'deps/cppcodec')])
|
||||
|
||||
# Make sure fmtlib is cloned
|
||||
if not path.exists('deps/fmtlib/fmt/format.h'):
|
||||
subprocess.call(["git", "submodule", "update", "--init", "deps/fmtlib"])
|
||||
|
||||
env.Append(CPPPATH=[path.join(os.getcwd(), 'deps/fmtlib/include')])
|
||||
|
||||
# On Linux, build TGUI from the subtree if necessary
|
||||
if platform == 'posix':
|
||||
def check_tgui(conf, second_attempt=False):
|
||||
|
Reference in New Issue
Block a user