Index: build/using_v8.scons |
diff --git a/build/using_v8.scons b/build/using_v8.scons |
new file mode 100644 |
index 0000000000000000000000000000000000000000..889bce1d7e51db53957248942eedcaaa24092116 |
--- /dev/null |
+++ b/build/using_v8.scons |
@@ -0,0 +1,20 @@ |
+# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+__doc__ = """ |
+Settings for other components using the v8 library. |
+""" |
+ |
+Import("env") |
+ |
+# v8 builds the lib as v8_g in debug mode. |
+v8_lib = 'v8' |
+if env['TARGET_DEBUG']: |
+ v8_lib = 'v8_g' |
+ |
+env.Append( |
+ LIBS = [ |
+ v8_lib, |
+ ], |
+) |