Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / win8 / BUILD.gn
blobd65f9978b69b125ca69f358d7bb1f389e6281448
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.
5 source_set("metro_viewer_constants") {
6   sources = [
7     "viewer/metro_viewer_constants.cc",
8     "viewer/metro_viewer_constants.h",
9   ]
12 component("metro_viewer") {
13   deps = [
14     "//base",
15     "//ipc",
16     "//ui/aura",
17     "//ui/metro_viewer",
18     ":metro_viewer_constants",
19   ]
20   sources = [
21     "viewer/metro_viewer_process_host.cc",
22     "viewer/metro_viewer_process_host.h",
23   ]
24   defines = [ "METRO_VIEWER_IMPLEMENTATION" ]
27 source_set("test_support_win8") {
28   deps = [
29     "//base",
30     ":test_registrar_constants",
31   ]
33   # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
34   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
36   sources = [
37     "test/metro_registration_helper.cc",
38     "test/metro_registration_helper.h",
39     "test/open_with_dialog_async.cc",
40     "test/open_with_dialog_async.h",
41     "test/open_with_dialog_controller.cc",
42     "test/open_with_dialog_controller.h",
43     "test/ui_automation_client.cc",
44     "test/ui_automation_client.h",
45   ]
48 source_set("test_registrar_constants") {
49   sources = [
50     "test/test_registrar_constants.cc",
51     "test/test_registrar_constants.h",
52   ]
55 executable("test_registrar") {
56   deps = [
57     ":test_registrar_constants",
58     "//base",
59     "//build/config/sanitizers:deps",
61     # Chrome is the default viewer process currently used by the tests.
62     # TODO(robertshield): Investigate building a standalone metro viewer
63     # process.
64     "//chrome",
65   ]
66   sources = [
67     "test/test_registrar.cc",
68     "test/test_registrar.rc",
69     "test/test_registrar.rgs",
70     "test/test_registrar_resource.h",
71   ]
72   configs += [ "//build/config/win:windowed" ]