summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/BUILD.gn4
-rw-r--r--apps/apps.gypi6
2 files changed, 8 insertions, 2 deletions
diff --git a/apps/BUILD.gn b/apps/BUILD.gn
index 5c409c2..a719964 100644
--- a/apps/BUILD.gn
+++ b/apps/BUILD.gn
@@ -63,10 +63,12 @@ static_library("apps") {
"ui/views/app_window_frame_view.h",
]
deps += [
- "//extensions/browser",
"//ui/strings",
"//ui/views",
]
+ if (enable_extensions) {
+ deps += [ "//extensions/browser" ]
+ }
}
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
diff --git a/apps/apps.gypi b/apps/apps.gypi
index 7badfe3..130cb8c 100644
--- a/apps/apps.gypi
+++ b/apps/apps.gypi
@@ -75,7 +75,6 @@
],
['toolkit_views==1', {
'dependencies': [
- '../extensions/extensions.gyp:extensions_browser',
'../ui/strings/ui_strings.gyp:ui_strings',
'../ui/views/views.gyp:views',
],
@@ -84,6 +83,11 @@
['exclude', 'ui/views/'],
],
}],
+ ['toolkit_views==1 and enable_extensions==1', {
+ 'dependencies': [
+ '../extensions/extensions.gyp:extensions_browser',
+ ],
+ }],
],
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
'msvs_disabled_warnings': [ 4267, ],