| Index: components/sad_tab/BUILD.gn
|
| diff --git a/components/sad_tab/BUILD.gn b/components/sad_tab/BUILD.gn
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..537b84ba35d98521d95f4dfaee0055fffd257824
|
| --- /dev/null
|
| +++ b/components/sad_tab/BUILD.gn
|
| @@ -0,0 +1,62 @@
|
| +# 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("sad_tab") {
|
| + sources = [
|
| + "sad_tab.cc",
|
| + "sad_tab.h",
|
| + "sad_tab_client.h",
|
| + "sad_tab_helper.cc",
|
| + "sad_tab_helper.h",
|
| + "sad_tab_types.h",
|
| + "url_constants.cc",
|
| + "url_constants.h",
|
| + ]
|
| +
|
| + deps = [
|
| + "//base",
|
| + "//components/resources",
|
| + "//components/strings",
|
| + "//content/public/browser",
|
| + "//ui/base",
|
| + "//url",
|
| + ]
|
| +
|
| + if (toolkit_views) {
|
| + sources += [
|
| + "views/sad_tab_view.cc",
|
| + "views/sad_tab_view.h",
|
| + ]
|
| + deps += [
|
| + "//ui/views",
|
| + ]
|
| + }
|
| +
|
| + if (is_mac) {
|
| + sources += [
|
| + "cocoa/sad_tab_controller.h",
|
| + "cocoa/sad_tab_controller.mm",
|
| + "cocoa/sad_tab_view.h",
|
| + "cocoa/sad_tab_view.mm",
|
| + ]
|
| + deps += [
|
| + "//third_party/google_toolbox_for_mac",
|
| + "//ui/gfx",
|
| + ]
|
| + }
|
| +}
|
| +
|
| +source_set("unit_tests") {
|
| + testonly = true
|
| + if (is_mac) {
|
| + sources += [
|
| + "cocoa/sad_tab_view_unittest.mm",
|
| + ]
|
| + deps += [
|
| + ":sad_tab",
|
| + ]
|
| + }
|
| +}
|
|
|