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', 'src')
|
||||||
env.VariantDir('#build/obj/test', 'test')
|
env.VariantDir('#build/obj/test', 'test')
|
||||||
env.VariantDir('#build/obj/test/deps', 'deps')
|
env.VariantDir('#build/obj/deps', 'deps')
|
||||||
|
|
||||||
if not env['release']:
|
if not env['release']:
|
||||||
if platform in ['posix', 'darwin']:
|
if platform in ['posix', 'darwin']:
|
||||||
@@ -411,6 +411,12 @@ if not env.GetOption('clean'):
|
|||||||
|
|
||||||
env.Append(CPPPATH=[path.join(os.getcwd(), 'deps/cppcodec')])
|
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
|
# On Linux, build TGUI from the subtree if necessary
|
||||||
if platform == 'posix':
|
if platform == 'posix':
|
||||||
def check_tgui(conf, second_attempt=False):
|
def check_tgui(conf, second_attempt=False):
|
||||||
|
@@ -24,6 +24,8 @@ game_sources = Split("""
|
|||||||
../pcedit/pc.editors.cpp
|
../pcedit/pc.editors.cpp
|
||||||
../fileio/fileio_party.cpp
|
../fileio/fileio_party.cpp
|
||||||
../view_dialogs.cpp
|
../view_dialogs.cpp
|
||||||
|
../deps/fmtlib/src/format.cc
|
||||||
|
../deps/fmtlib/src/os.cc
|
||||||
""")
|
""")
|
||||||
|
|
||||||
if str(platform) == "darwin":
|
if str(platform) == "darwin":
|
||||||
|
@@ -8,6 +8,8 @@ pced_sources = Split("""
|
|||||||
pc.graphics.cpp
|
pc.graphics.cpp
|
||||||
pc.main.cpp
|
pc.main.cpp
|
||||||
../fileio/fileio_party.cpp
|
../fileio/fileio_party.cpp
|
||||||
|
../deps/fmtlib/src/format.cc
|
||||||
|
../deps/fmtlib/src/os.cc
|
||||||
""")
|
""")
|
||||||
|
|
||||||
if str(platform) == "darwin":
|
if str(platform) == "darwin":
|
||||||
|
@@ -16,6 +16,8 @@ scened_sources = Split("""
|
|||||||
../view_dialogs.cpp
|
../view_dialogs.cpp
|
||||||
../fileio/fileio_party.cpp
|
../fileio/fileio_party.cpp
|
||||||
../damage.cpp
|
../damage.cpp
|
||||||
|
../deps/fmtlib/src/format.cc
|
||||||
|
../deps/fmtlib/src/os.cc
|
||||||
""")
|
""")
|
||||||
|
|
||||||
if str(platform) == "darwin":
|
if str(platform) == "darwin":
|
||||||
|
@@ -5,10 +5,12 @@ Import("env platform party_classes common_sources")
|
|||||||
arch_short = '64' if (env['bits'] == '64') else '86'
|
arch_short = '64' if (env['bits'] == '64') else '86'
|
||||||
|
|
||||||
# Add path to scons
|
# Add path to scons
|
||||||
env.Append(CPPPATH=['./deps/Catch2/single_include/catch2'])
|
env.Append(CPPPATH=['../deps/Catch2/single_include/catch2'])
|
||||||
|
|
||||||
test_sources = Glob("""*.cpp""") + Split("""
|
test_sources = Glob("""*.cpp""") + Split("""
|
||||||
#build/obj/scenedit/scen.fileio.cpp
|
#build/obj/scenedit/scen.fileio.cpp
|
||||||
|
../deps/fmtlib/src/format.cc
|
||||||
|
../deps/fmtlib/src/os.cc
|
||||||
""")
|
""")
|
||||||
|
|
||||||
debug_symbols = None
|
debug_symbols = None
|
||||||
|
Reference in New Issue
Block a user