Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: win8/metro_driver/BUILD.gn

Issue 1464263003: Add metro driver and delegate_execute to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « win8/delegate_execute/delegate_execute.gyp ('k') | win8/metro_driver/ime/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 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 import("//chrome/version.gni")
7 import("//testing/test.gni")
8
9 shared_library("metro_driver") {
10 sources = [
11 "display_properties.cc",
12 "display_properties.h",
13 "metro_driver.cc",
14 "metro_driver.h",
15 "metro_driver_win7.cc",
16 "stdafx.h",
17 "winrt_utils.cc",
18 "winrt_utils.h",
19 ]
20
21 deps = [
22 ":copy_resources",
23 ":version_resources",
24 "//base",
25 "//chrome/common:constants",
26 "//chrome/installer/util",
27 "//crypto",
28 "//ipc",
29 "//sandbox",
30 "//ui/events",
31 "//ui/gfx",
32 "//ui/gfx/geometry",
33 "//ui/metro_viewer",
34 "//url",
35 ]
36
37 if (use_aura) {
38 sources += [
39 "chrome_app_view_ash.cc",
40 "chrome_app_view_ash.h",
41 "direct3d_helper.cc",
42 "direct3d_helper.h",
43 "file_picker_ash.cc",
44 "file_picker_ash.h",
45 ]
46
47 deps += [
48 "//ui/events:gesture_detection",
49 "//win8:metro_viewer_constants",
50 "//win8/metro_driver/ime",
51 ]
52 } else {
53 sources = [
54 "chrome_app_view.cc",
55 "chrome_app_view.h",
56 "chrome_url_launch_handler.cc",
57 "chrome_url_launch_handler.h",
58 "devices_handler.cc",
59 "devices_handler.h",
60 "file_picker.cc",
61 "file_picker.h",
62 "metro_dialog_box.cc",
63 "metro_dialog_box.h",
64 "print_document_source.cc",
65 "print_document_source.h",
66 "print_handler.cc",
67 "print_handler.h",
68 "secondary_tile.cc",
69 "secondary_tile.h",
70 "settings_handler.cc",
71 "settings_handler.h",
72 "toast_notification_handler.cc",
73 "toast_notification_handler.h",
74 ]
75 }
76
77 libs = [
78 "D2D1.lib",
79 "D3D11.lib",
80 "runtimeobject.lib",
81 ]
82
83 ldflags = [
84 "/DELAYLOAD:API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL",
85 "/DELAYLOAD:API-MS-WIN-CORE-WINRT-L1-1-0.DLL",
86 "/DELAYLOAD:API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL",
87 ]
88 }
89
90 process_version("version_resources") {
91 visibility = [ ":*" ]
92 sources = [
93 "metro_driver_dll.ver",
94 ]
95 output = "$target_gen_dir/metro_driver_dll_version.rc"
96 template_file = chrome_version_rc_template
97 }
98
99 copy("copy_resources") {
100 visibility = [ ":*" ]
101
102 sources = [
103 "resources/Logo.png",
104 "resources/SecondaryTile.png",
105 "resources/SmallLogo.png",
106 "resources/chrome.VisualElementsManifest.xml",
107 ]
108
109 outputs = [
110 "$root_out_dir/{{source_file_part}}",
111 ]
112 }
113
114 test("metro_driver_unittests") {
115 sources = [
116 "run_all_unittests.cc",
117 "winrt_utils.cc",
118 "winrt_utils.h",
119 "winrt_utils_unittest.cc",
120 ]
121
122 deps = [
123 ":metro_driver",
124 "//base",
125 "//chrome/installer/util",
126 "//testing/gtest",
127 ]
128 }
OLDNEW
« no previous file with comments | « win8/delegate_execute/delegate_execute.gyp ('k') | win8/metro_driver/ime/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698