Skip to content

Commit

Permalink
TMP: Build only godot-cpp
Browse files Browse the repository at this point in the history
To warm up the cache.
  • Loading branch information
lihop committed Feb 13, 2024
1 parent 839d2a5 commit 43465e8
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions addons/godot_xterm/native/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ import os
env = SConscript("thirdparty/godot-cpp/SConstruct")
env['ENV'] = os.environ

VariantDir('build', 'src', duplicate=0)
env['OBJPREFIX'] = os.path.join('build', '')

env.Append(CPPPATH=[
"thirdparty/libtsm/src/tsm",
"thirdparty/libtsm/external",
"thirdparty/libtsm/src/shared",
])

sources = Glob("src/*.cpp") + Glob("thirdparty/libtsm/src/tsm/*.c")
sources.append([
'thirdparty/libtsm/external/wcwidth/wcwidth.c',
'thirdparty/libtsm/src/shared/shl-htable.c',
])

if env["platform"] == "macos":
library = env.SharedLibrary(
"bin/libgodot-xterm.{}.{}.framework/libgodot-xterm.{}.{}".format(
env["platform"], env["target"], env["platform"], env["target"]
),
source=sources,
)
else:
library = env.SharedLibrary(
"bin/libgodot-xterm{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
source=sources,
)

Default(library)
#VariantDir('build', 'src', duplicate=0)
#env['OBJPREFIX'] = os.path.join('build', '')
#
#env.Append(CPPPATH=[
# "thirdparty/libtsm/src/tsm",
# "thirdparty/libtsm/external",
# "thirdparty/libtsm/src/shared",
#])
#
#sources = Glob("src/*.cpp") + Glob("thirdparty/libtsm/src/tsm/*.c")
#sources.append([
# 'thirdparty/libtsm/external/wcwidth/wcwidth.c',
# 'thirdparty/libtsm/src/shared/shl-htable.c',
#])
#
#if env["platform"] == "macos":
# library = env.SharedLibrary(
# "bin/libgodot-xterm.{}.{}.framework/libgodot-xterm.{}.{}".format(
# env["platform"], env["target"], env["platform"], env["target"]
# ),
# source=sources,
# )
#else:
# library = env.SharedLibrary(
# "bin/libgodot-xterm{}{}".format(env["suffix"], env["SHLIBSUFFIX"]),
# source=sources,
# )
#
#Default(library)

0 comments on commit 43465e8

Please sign in to comment.