diff options
Diffstat (limited to 'gears/SConscript')
-rw-r--r-- | gears/SConscript | 5 |
1 files changed, 5 insertions, 0 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? |