[Android] Fix v8_shell compilation for Android component build.
authorulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 26 Feb 2013 15:41:04 +0000 (15:41 +0000)
committerulan@chromium.org <ulan@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 26 Feb 2013 15:41:04 +0000 (15:41 +0000)
r12883 was in complete because the library was included for host and
target. Restrict to just target.

BUG=chromium:158821

Review URL: https://chromiumcodereview.appspot.com/12314118
Patch from Yaron Friedman <yfriedman@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13734 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

tools/gyp/v8.gyp

index dfd1269..c57c52b 100644 (file)
@@ -68,8 +68,8 @@
                   'USING_V8_SHARED',
                 ],
               },
-              'conditions': [
-                ['OS=="android"', {
+              'target_conditions': [
+                ['OS=="android" and _toolset=="target"', {
                   'libraries': [
                     '-llog',
                   ],
@@ -77,6 +77,8 @@
                     'src/common/android/include',
                   ],
                 }],
+              ],
+              'conditions': [
                 ['OS=="mac"', {
                   'xcode_settings': {
                     'OTHER_LDFLAGS': ['-dynamiclib', '-all_load']