mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-02-14 17:00:20 +01:00
11 lines
337 B
Python
11 lines
337 B
Python
|
import SCons
|
||
|
class CustomCacheDir(SCons.CacheDir.CacheDir):
|
||
|
|
||
|
@classmethod
|
||
|
def copy_to_cache(cls, env, src, dst):
|
||
|
print("MY_CUSTOM_CACHEDIR_CLASS")
|
||
|
super().copy_to_cache(env, src, dst)
|
||
|
|
||
|
env = Environment(tools=[])
|
||
|
env.CacheDir('cache', CustomCacheDir)
|
||
|
env.Command('file.out', 'file.in', Copy('$TARGET', '$SOURCE'))
|