Index: chrome_elf/chrome_elf.gyp |
diff --git a/chrome_elf/chrome_elf.gyp b/chrome_elf/chrome_elf.gyp |
index fa6ed36f773d4903c83fd091132e94b88170b0fc..5820fc277457d30f07dd5b8cc412c58d1b73a509 100644 |
--- a/chrome_elf/chrome_elf.gyp |
+++ b/chrome_elf/chrome_elf.gyp |
@@ -126,7 +126,7 @@ |
], |
}, |
{ |
- 'target_name': 'chrome_elf_common', |
+ 'target_name': 'chrome_elf_constants', |
'type': 'static_library', |
'include_dirs': [ |
'..', |
@@ -134,6 +134,27 @@ |
'sources': [ |
'chrome_elf_constants.cc', |
'chrome_elf_constants.h', |
+ ], |
+ 'conditions': [ |
+ ['component=="shared_library"', { |
+ # In component builds, all targets depend on chrome_redirects by |
+ # default. Remove it here so we are able to test it. |
+ 'dependencies!': [ |
+ '../chrome_elf/chrome_elf.gyp:chrome_redirects', |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'chrome_elf_common', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ 'chrome_elf_constants', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ ], |
+ 'sources': [ |
'chrome_elf_types.h', |
'chrome_elf_util.cc', |
'chrome_elf_util.h', |