| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//testing/test.gni") |
| 6 | 7 |
| 7 component("native_theme") { | 8 component("native_theme") { |
| 8 sources = [ | 9 sources = [ |
| 9 "common_theme.cc", | 10 "common_theme.cc", |
| 10 "common_theme.h", | 11 "common_theme.h", |
| 11 "native_theme.cc", | 12 "native_theme.cc", |
| 12 "native_theme.h", | 13 "native_theme.h", |
| 13 "native_theme_android.cc", | 14 "native_theme_android.cc", |
| 14 "native_theme_android.h", | 15 "native_theme_android.h", |
| 15 "native_theme_base.cc", | 16 "native_theme_base.cc", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 "//ui/resources", | 56 "//ui/resources", |
| 56 ] | 57 ] |
| 57 | 58 |
| 58 if (is_mac) { | 59 if (is_mac) { |
| 59 libs = [ | 60 libs = [ |
| 60 "CoreGraphics.framework", | 61 "CoreGraphics.framework", |
| 61 "AppKit.framework", | 62 "AppKit.framework", |
| 62 ] | 63 ] |
| 63 } | 64 } |
| 64 } | 65 } |
| 66 |
| 67 test("native_theme_unittests") { |
| 68 sources = [] |
| 69 |
| 70 if (use_aura) { |
| 71 sources += [ "native_theme_aura_unittest.cc" ] |
| 72 } |
| 73 |
| 74 if (is_mac) { |
| 75 sources += [ "native_theme_mac_unittest.cc" ] |
| 76 } |
| 77 |
| 78 deps = [ |
| 79 ":native_theme", |
| 80 "//base/test:run_all_unittests", |
| 81 "//base/test:test_support", |
| 82 "//skia:skia", |
| 83 "//testing/gtest", |
| 84 "//ui/gfx/geometry:geometry", |
| 85 ] |
| 86 } |
| OLD | NEW |