OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import("//build/config/ui.gni") |
| 6 |
| 7 static_library("sad_tab") { |
| 8 sources = [ |
| 9 "sad_tab.cc", |
| 10 "sad_tab.h", |
| 11 "sad_tab_client.h", |
| 12 "sad_tab_helper.cc", |
| 13 "sad_tab_helper.h", |
| 14 "sad_tab_types.h", |
| 15 "url_constants.cc", |
| 16 "url_constants.h", |
| 17 ] |
| 18 |
| 19 deps = [ |
| 20 "//base", |
| 21 "//components/resources", |
| 22 "//components/strings", |
| 23 "//content/public/browser", |
| 24 "//ui/base", |
| 25 "//url", |
| 26 ] |
| 27 |
| 28 if (toolkit_views) { |
| 29 sources += [ |
| 30 "views/sad_tab_view.cc", |
| 31 "views/sad_tab_view.h", |
| 32 ] |
| 33 deps += [ |
| 34 "//ui/views", |
| 35 ] |
| 36 } |
| 37 |
| 38 if (is_mac) { |
| 39 sources += [ |
| 40 "cocoa/sad_tab_controller.h", |
| 41 "cocoa/sad_tab_controller.mm", |
| 42 "cocoa/sad_tab_view.h", |
| 43 "cocoa/sad_tab_view.mm", |
| 44 ] |
| 45 deps += [ |
| 46 "//third_party/google_toolbox_for_mac", |
| 47 "//ui/gfx", |
| 48 ] |
| 49 } |
| 50 } |
| 51 |
| 52 source_set("unit_tests") { |
| 53 testonly = true |
| 54 if (is_mac) { |
| 55 sources += [ |
| 56 "cocoa/sad_tab_view_unittest.mm", |
| 57 ] |
| 58 deps += [ |
| 59 ":sad_tab", |
| 60 ] |
| 61 } |
| 62 } |
OLD | NEW |