Index: chrome_elf/chrome_elf.gyp |
diff --git a/chrome_elf/chrome_elf.gyp b/chrome_elf/chrome_elf.gyp |
index 00cee29a1612e6b011fb720eb643cda854c273e8..fa6ed36f773d4903c83fd091132e94b88170b0fc 100644 |
--- a/chrome_elf/chrome_elf.gyp |
+++ b/chrome_elf/chrome_elf.gyp |
@@ -40,6 +40,15 @@ |
], |
}, |
}, |
+ 'conditions': [ |
+ ['component=="shared_library"', { |
+ # In component builds, all targets depend on chrome_redirects by |
+ # default. Remove it here to avoid a circular dependency. |
+ 'dependencies!': [ |
+ '../chrome_elf/chrome_elf.gyp:chrome_redirects', |
+ ], |
+ }], |
+ ], |
}, |
{ |
'target_name': 'chrome_elf_unittests_exe', |
@@ -168,6 +177,7 @@ |
], |
'sources': [ |
'chrome_redirects.def', |
+ 'chrome_redirects_main.cc', |
], |
'dependencies': [ |
'chrome_elf_lib', |