summaryrefslogtreecommitdiffstats
path: root/components/app_modal/BUILD.gn
blob: 9e5bdb5cd85979afe856d44fdc6ed7af0fd97111 (plain)
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
# 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("app_modal") {
  sources = [
    "app_modal_dialog.cc",
    "app_modal_dialog.h",
    "app_modal_dialog_queue.cc",
    "app_modal_dialog_queue.h",
    "javascript_app_modal_dialog.cc",
    "javascript_app_modal_dialog.h",
    "javascript_dialog_extensions_client.h",
    "javascript_dialog_manager.cc",
    "javascript_dialog_manager.h",
    "javascript_native_dialog_factory.h",
    "native_app_modal_dialog.h",
  ]

  deps = [
    "//base",
    "//base:i18n",
    "//components/strings",
    "//components/url_formatter",
    "//content/public/browser",
    "//content/public/common",
    "//net",
    "//skia",
    "//ui/base",
  ]

  if (use_aura) {
    deps += [ "//ui/aura" ]
  }

  if (toolkit_views) {
    sources += [
      "views/javascript_app_modal_dialog_views.cc",
      "views/javascript_app_modal_dialog_views.h",
    ]

    deps += [
      "//components/constrained_window",
      "//ui/views",
    ]
  }
}