forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
81 lines (70 loc) · 1.83 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ui.gni")
static_library("javascript_dialogs") {
sources = [
"app_modal_dialog_controller.cc",
"app_modal_dialog_controller.h",
"app_modal_dialog_manager.cc",
"app_modal_dialog_manager.h",
"app_modal_dialog_queue.cc",
"app_modal_dialog_queue.h",
"app_modal_dialog_view.h",
"extensions_client.h",
"tab_modal_dialog_manager.cc",
"tab_modal_dialog_manager.h",
"tab_modal_dialog_manager_delegate.h",
"tab_modal_dialog_view.h",
]
deps = [
"//base",
"//base:i18n",
"//components/navigation_metrics/",
"//components/strings",
"//components/ukm/content",
"//components/url_formatter",
"//content/public/browser",
"//content/public/common",
"//net",
"//services/metrics/public/cpp:metrics_cpp",
"//services/metrics/public/cpp:ukm_builders",
"//skia",
"//ui/base",
"//ui/gfx",
]
if (use_aura) {
deps += [ "//ui/aura" ]
}
if (toolkit_views) {
sources += [
"views/app_modal_dialog_view_views.cc",
"views/app_modal_dialog_view_views.h",
]
deps += [
"//build:chromeos_buildflags",
"//ui/views",
]
}
if (is_android) {
sources += [
"android/app_modal_dialog_view_android.cc",
"android/app_modal_dialog_view_android.h",
"android/tab_modal_dialog_view_android.cc",
"android/tab_modal_dialog_view_android.h",
]
deps += [
"//components/javascript_dialogs/android:jni_headers",
"//ui/android",
]
}
}
source_set("unit_tests") {
testonly = true
sources = [ "app_modal_dialog_manager_unittest.cc" ]
deps = [
":javascript_dialogs",
"//base",
"//testing/gtest",
]
}