diff options
-rw-r--r-- | gears/SConscript | 5 | ||||
-rw-r--r-- | gears/SConscript.dll | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gears/SConscript b/gears/SConscript index 07f06ff..55a0bff 100644 --- a/gears/SConscript +++ b/gears/SConscript @@ -28,6 +28,7 @@ # - entry.path gives the path relative to toplevel_dir. # - entry.abspath gives the absolute path. +import sys import os Import('env') @@ -39,6 +40,10 @@ env = env.Clone( PRIVATE_THIRD_PARTY_DIR = "googleclient/third_party", ) +if not os.path.exists(env.Dir('#/$OPEN_DIR').abspath): + print 'Skipping Gears build: no perforce tree checked out.' + Return() + # Argument switches # TODO: how do we detect linux vs osx? diff --git a/gears/SConscript.dll b/gears/SConscript.dll index 2bfb000..37f7813 100644 --- a/gears/SConscript.dll +++ b/gears/SConscript.dll @@ -44,7 +44,6 @@ env.Replace( M4COM = '$M4 $M4FLAGS ${_M4INCFLAGS} $SOURCE > $TARGET', ) -print env.backtick('echo hi') # TODO: Dependency scanner for m4 files - doesn't work. It can't detect files # that don't exist! #m4_include_re = re.compile(r'm4_include\((.*)\)', re.M) |