| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 }, | 40 }, |
| 41 { | 41 { |
| 42 # GN version: //extensions/common | 42 # GN version: //extensions/common |
| 43 'target_name': 'extensions_common', | 43 'target_name': 'extensions_common', |
| 44 'type': 'static_library', | 44 'type': 'static_library', |
| 45 'dependencies': [ | 45 'dependencies': [ |
| 46 '../components/components.gyp:crx_file', | 46 '../components/components.gyp:crx_file', |
| 47 '../components/components.gyp:url_matcher', | 47 '../components/components.gyp:url_matcher', |
| 48 '../content/content.gyp:content_common', | 48 '../content/content.gyp:content_common', |
| 49 '../crypto/crypto.gyp:crypto', | 49 '../crypto/crypto.gyp:crypto', |
| 50 '../device/bluetooth/bluetooth.gyp:device_bluetooth', |
| 51 # For Mojo generated headers for generated_api.cc. |
| 52 '../device/serial/serial.gyp:device_serial_mojo', |
| 53 '../device/usb/usb.gyp:device_usb', |
| 50 '../ipc/ipc.gyp:ipc', | 54 '../ipc/ipc.gyp:ipc', |
| 51 '../net/net.gyp:net', | 55 '../net/net.gyp:net', |
| 52 '../third_party/re2/re2.gyp:re2', | 56 '../third_party/re2/re2.gyp:re2', |
| 53 '../ui/base/ui_base.gyp:ui_base', | 57 '../ui/base/ui_base.gyp:ui_base', |
| 54 '../ui/gfx/gfx.gyp:gfx_geometry', | 58 '../ui/gfx/gfx.gyp:gfx_geometry', |
| 55 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc', | 59 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc', |
| 56 '../url/url.gyp:url_lib', | 60 '../url/url.gyp:url_lib', |
| 57 '../third_party/libxml/libxml.gyp:libxml', | 61 '../third_party/libxml/libxml.gyp:libxml', |
| 62 'common/api/api.gyp:extensions_api', |
| 58 'extensions_resources.gyp:extensions_resources', | 63 'extensions_resources.gyp:extensions_resources', |
| 59 'extensions_strings.gyp:extensions_strings', | 64 'extensions_strings.gyp:extensions_strings', |
| 60 'extensions_common_constants', | 65 'extensions_common_constants', |
| 61 'extensions_common_mojo', | 66 'extensions_common_mojo', |
| 62 ], | 67 ], |
| 63 'include_dirs': [ | 68 'include_dirs': [ |
| 64 '..', | 69 '..', |
| 65 '<(INTERMEDIATE_DIR)', | 70 '<(INTERMEDIATE_DIR)', |
| 66 ], | 71 ], |
| 67 'sources': [ | 72 'sources': [ |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 'common/view_type.cc', | 256 'common/view_type.cc', |
| 252 'common/view_type.h', | 257 'common/view_type.h', |
| 253 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc', | 258 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc', |
| 254 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h', | 259 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h', |
| 255 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc', | 260 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc', |
| 256 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h', | 261 '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h', |
| 257 ], | 262 ], |
| 258 # Disable c4267 warnings until we fix size_t to int truncations. | 263 # Disable c4267 warnings until we fix size_t to int truncations. |
| 259 'msvs_disabled_warnings': [ 4267, ], | 264 'msvs_disabled_warnings': [ 4267, ], |
| 260 'conditions': [ | 265 'conditions': [ |
| 261 ['enable_extensions==1', { | |
| 262 'dependencies': [ | |
| 263 'common/api/api.gyp:extensions_api', | |
| 264 '../device/bluetooth/bluetooth.gyp:device_bluetooth', | |
| 265 # For Mojo generated headers for generated_api.cc. | |
| 266 '../device/serial/serial.gyp:device_serial_mojo', | |
| 267 '../device/usb/usb.gyp:device_usb', | |
| 268 ], | |
| 269 }, { # enable_extensions == 0 | |
| 270 'sources!': [ | |
| 271 'common/api/bluetooth/bluetooth_manifest_data.cc', | |
| 272 'common/api/bluetooth/bluetooth_manifest_data.h', | |
| 273 'common/api/bluetooth/bluetooth_manifest_handler.cc', | |
| 274 'common/api/bluetooth/bluetooth_manifest_handler.h', | |
| 275 'common/api/bluetooth/bluetooth_manifest_permission.cc', | |
| 276 'common/api/bluetooth/bluetooth_manifest_permission.h', | |
| 277 'common/api/messaging/message.h', | |
| 278 'common/api/sockets/sockets_manifest_data.cc', | |
| 279 'common/api/sockets/sockets_manifest_data.h', | |
| 280 'common/api/sockets/sockets_manifest_handler.cc', | |
| 281 'common/api/sockets/sockets_manifest_handler.h', | |
| 282 'common/api/sockets/sockets_manifest_permission.cc', | |
| 283 'common/api/sockets/sockets_manifest_permission.h', | |
| 284 'common/extension_api.cc', | |
| 285 'common/manifest_handlers/externally_connectable.cc', | |
| 286 'common/manifest_handlers/externally_connectable.h', | |
| 287 'common/manifest_handlers/options_page_info.cc', | |
| 288 'common/manifest_handlers/options_page_info.h', | |
| 289 ], | |
| 290 }], | |
| 291 ['disable_nacl==0', { | 266 ['disable_nacl==0', { |
| 292 # NaClModulesHandler does not use any code in NaCl, so no dependency | 267 # NaClModulesHandler does not use any code in NaCl, so no dependency |
| 293 # on nacl_common. | 268 # on nacl_common. |
| 294 'sources': [ | 269 'sources': [ |
| 295 'common/manifest_handlers/nacl_modules_handler.cc', | 270 'common/manifest_handlers/nacl_modules_handler.cc', |
| 296 'common/manifest_handlers/nacl_modules_handler.h', | 271 'common/manifest_handlers/nacl_modules_handler.h', |
| 297 ], | 272 ], |
| 298 }], | 273 }], |
| 299 ], | 274 ], |
| 300 }, | 275 }, |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 'browser/verified_contents.cc', | 755 'browser/verified_contents.cc', |
| 781 'browser/verified_contents.h', | 756 'browser/verified_contents.h', |
| 782 'browser/view_type_utils.cc', | 757 'browser/view_type_utils.cc', |
| 783 'browser/view_type_utils.h', | 758 'browser/view_type_utils.h', |
| 784 'browser/warning_service.cc', | 759 'browser/warning_service.cc', |
| 785 'browser/warning_service.h', | 760 'browser/warning_service.h', |
| 786 'browser/warning_set.cc', | 761 'browser/warning_set.cc', |
| 787 'browser/warning_set.h', | 762 'browser/warning_set.h', |
| 788 ], | 763 ], |
| 789 'conditions': [ | 764 'conditions': [ |
| 790 ['enable_extensions==0', { | 765 # This condition exists only because the extensions_common_constants |
| 791 # Exclude all API implementations and the ExtensionsApiClient | 766 # target is always built and thus this file gets evaluated by GYP. |
| 792 # interface. Moving an API from src/chrome to src/extensions implies | 767 # This does not need to be replicated into extensions/browser/BUILD.gn. |
| 793 # it can be cleanly disabled with enable_extensions==0. | 768 ['OS == "ios" or OS == "android"', { |
| 794 # TODO: Eventually the entire extensions module should not be built | |
| 795 # when enable_extensions==0. | |
| 796 'sources/': [ | |
| 797 ['exclude', '^browser/'], | |
| 798 ], | |
| 799 'dependencies!': [ | 769 'dependencies!': [ |
| 800 '../components/components.gyp:storage_monitor', | 770 '../components/components.gyp:storage_monitor', |
| 801 '../device/bluetooth/bluetooth.gyp:device_bluetooth', | |
| 802 '../device/serial/serial.gyp:device_serial', | |
| 803 ], | 771 ], |
| 804 }], | 772 }], |
| 805 ['use_openssl==1', { | 773 ['use_openssl==1', { |
| 806 'sources': [ | 774 'sources': [ |
| 807 'browser/api/cast_channel/cast_auth_util_openssl.cc', | 775 'browser/api/cast_channel/cast_auth_util_openssl.cc', |
| 808 ], | 776 ], |
| 809 }, { | 777 }, { |
| 810 'sources': [ | 778 'sources': [ |
| 811 # cast_auth_util_nss.cc uses NSS functions. | 779 # cast_auth_util_nss.cc uses NSS functions. |
| 812 'browser/api/cast_channel/cast_auth_util_nss.cc', | 780 'browser/api/cast_channel/cast_auth_util_nss.cc', |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 'conditions': [ | 1209 'conditions': [ |
| 1242 ['OS=="win" and win_use_allocator_shim==1', { | 1210 ['OS=="win" and win_use_allocator_shim==1', { |
| 1243 'dependencies': [ | 1211 'dependencies': [ |
| 1244 '../base/allocator/allocator.gyp:allocator', | 1212 '../base/allocator/allocator.gyp:allocator', |
| 1245 ], | 1213 ], |
| 1246 }], | 1214 }], |
| 1247 ], | 1215 ], |
| 1248 }, | 1216 }, |
| 1249 ] | 1217 ] |
| 1250 } | 1218 } |
| OLD | NEW |