| 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 | 6 |
| 7 component("native_theme") { | 7 source_set("config") { |
| 8 sources = [ | 8 sources = [ |
| 9 "common_theme.cc", | 9 "dx_diag_node.cc", |
| 10 "common_theme.h", | 10 "dx_diag_node.h", |
| 11 "fallback_theme.cc", | 11 "gpu_blacklist.cc", |
| 12 "fallback_theme.h", | 12 "gpu_blacklist.h", |
| 13 "native_theme.cc", | 13 "gpu_control_list_jsons.h", |
| 14 "native_theme.h", | 14 "gpu_control_list.cc", |
| 15 "native_theme_android.cc", | 15 "gpu_control_list.h", |
| 16 "native_theme_android.h", | 16 "gpu_driver_bug_list_json.cc", |
| 17 "native_theme_base.cc", | 17 "gpu_driver_bug_list.cc", |
| 18 "native_theme_base.h", | 18 "gpu_driver_bug_list.h", |
| 19 "native_theme_mac.h", | 19 "gpu_driver_bug_workaround_type.h", |
| 20 "native_theme_mac.mm", | 20 "gpu_dx_diagnostics_win.cc", |
| 21 "native_theme_observer.cc", | 21 "gpu_feature_type.h", |
| 22 "native_theme_observer.h", | 22 "gpu_info.cc", |
| 23 "native_theme_switches.cc", | 23 "gpu_info.h", |
| 24 "native_theme_switches.h", | 24 "gpu_info_collector_android.cc", |
| 25 "native_theme_win.cc", | 25 "gpu_info_collector_mac.mm", |
| 26 "native_theme_win.h", | 26 "gpu_info_collector_ozone.cc", |
| 27 ] | 27 "gpu_info_collector_win.cc", |
| 28 | 28 "gpu_info_collector_x11.cc", |
| 29 if (use_aura) { | 29 "gpu_info_collector.cc", |
| 30 sources += [ | 30 "gpu_info_collector.h", |
| 31 "native_theme_aura.cc", | 31 "gpu_performance_stats.h", |
| 32 "native_theme_aura.h", | 32 "gpu_test_config.cc", |
| 33 ] | 33 "gpu_test_config.h", |
| 34 | 34 "gpu_test_expectations_parser.cc", |
| 35 if (is_win) { | 35 "gpu_test_expectations_parser.h", |
| 36 sources += [ | 36 "gpu_util.cc", |
| 37 "native_theme_aurawin.cc", | 37 "gpu_util.h", |
| 38 "native_theme_aurawin.h", | 38 "software_rendering_list_json.cc", |
| 39 ] | |
| 40 } | |
| 41 } | |
| 42 | |
| 43 defines = [ | |
| 44 "NATIVE_THEME_IMPLEMENTATION", | |
| 45 ] | 39 ] |
| 46 | 40 |
| 47 deps = [ | 41 deps = [ |
| 48 "//base", | 42 "//base", |
| 49 "//base/third_party/dynamic_annotations", | 43 "//third_party/re2", |
| 50 "//skia", | 44 "//ui/gl", |
| 51 "//ui/base:ui_base", | |
| 52 "//ui/gfx", | |
| 53 "//ui/gfx/geometry", | |
| 54 "//ui/resources", | |
| 55 ] | 45 ] |
| 46 |
| 47 if (is_win) { |
| 48 deps += [ "//third_party/libxml" ] |
| 49 libs = [ "dxguid.lib", "setupapi.lib" ] |
| 50 |
| 51 if (is_chrome_branded) { |
| 52 sources += [ |
| 53 "//third_party/amd/AmdCfxPxExt.h", |
| 54 "//third_party/amd/amd_videocard_info_win.cc", |
| 55 ] |
| 56 } |
| 57 } |
| 58 if (is_linux && use_x11) { |
| 59 configs += [ |
| 60 "//build/config/linux:x11", |
| 61 "//build/config/linux:xext", |
| 62 ] |
| 63 deps += [ |
| 64 "//build/config/linux:libpci", |
| 65 "//third_party/libXNVCtrl", |
| 66 ] |
| 67 } |
| 56 } | 68 } |
| 69 |
| OLD | NEW |