Skip to content

Commit

Permalink
try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Apr 20, 2024
1 parent f7e1f4a commit 52eec57
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gdext/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ import shutil
import subprocess
import SCons


class CustomCacheDir(SCons.CacheDir.CacheDir):
@classmethod
def copy_to_cache(cls, env, src, dst) -> str:
if str(src).startswith("godot-cpp"):
return super().copy_to_cache(env, src, dst)
else:
return None
fn = str(src)
if fn.startswith("godot-cpp"):
if os.path.splitext(fn)[1] not in [".lib", ".dll", ".exp", ".a", ".so"]:
return super().copy_to_cache(env, src, dst)
return None


env = SConscript("godot-cpp/SConstruct")
env.CacheDir("scons_cache", CustomCacheDir)
Expand Down

0 comments on commit 52eec57

Please sign in to comment.