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

Side by Side Diff: remoting/host/linux/BUILD.gn

Issue 2438773003: Update CRD ChromeOS Host build files to be better in line with GN style. (Closed)
Patch Set: Moving unicode_to_keysym to x11, that is the only place the class is used. Created 3 years, 7 months 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 | « remoting/host/chromeos/BUILD.gn ('k') | remoting/host/mac/constants_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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("//remoting/build/config/remoting_build.gni") 5 import("//remoting/build/config/remoting_build.gni")
6 6
7 group("all_tests") { 7 group("all_tests") {
8 testonly = true 8 testonly = true
9 } 9 }
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 ] 49 ]
50 } 50 }
51 } 51 }
52 52
53 source_set("linux") { 53 source_set("linux") {
54 sources = [ 54 sources = [
55 "audio_pipe_reader.cc", 55 "audio_pipe_reader.cc",
56 "audio_pipe_reader.h", 56 "audio_pipe_reader.h",
57 "certificate_watcher.cc", 57 "certificate_watcher.cc",
58 "certificate_watcher.h", 58 "certificate_watcher.h",
59 "unicode_to_keysym.cc",
60 "unicode_to_keysym.h",
61 ] 59 ]
62 60
63 deps = [ 61 deps = [
64 "//remoting/protocol", 62 "//remoting/protocol",
65 "//third_party/webrtc/modules/desktop_capture", 63 "//third_party/webrtc/modules/desktop_capture",
66 ] 64 ]
65 public_deps = []
67 66
68 if (use_x11) { 67 if (use_x11) {
69 deps += [ ":x11" ] 68 deps += [ ":x11" ]
70 } 69 }
70 if (is_desktop_linux) {
71 deps += [ "//build/config/linux/gtk" ]
72 }
71 } 73 }
72 74
73 source_set("x11") { 75 source_set("x11") {
74 sources = [ 76 sources = [
77 "unicode_to_keysym.cc",
78 "unicode_to_keysym.h",
79 "x11_character_injector.cc",
80 "x11_character_injector.h",
81 "x11_keyboard_impl.cc",
82 "x11_keyboard_impl.h",
75 "x11_util.cc", 83 "x11_util.cc",
76 "x11_util.h", 84 "x11_util.h",
77 "x_server_clipboard.cc", 85 "x_server_clipboard.cc",
78 "x_server_clipboard.h", 86 "x_server_clipboard.h",
79 ] 87 ]
80 deps = [ 88 deps = [
81 "//third_party/webrtc/modules/desktop_capture", 89 "//third_party/webrtc/modules/desktop_capture",
82 ] 90 ]
83 } 91 }
84 92
(...skipping 16 matching lines...) Expand all
101 "//remoting/host/setup", 109 "//remoting/host/setup",
102 ] 110 ]
103 111
104 # The |major|, |build| and |patch| versions are inherited from Chrome. 112 # The |major|, |build| and |patch| versions are inherited from Chrome.
105 # Since Chrome's |minor| version is always '0', we replace it with a 113 # Since Chrome's |minor| version is always '0', we replace it with a
106 # Chromoting-specific patch version. 114 # Chromoting-specific patch version.
107 defines = 115 defines =
108 [ "VERSION=" + "$chrome_version_major" + "." + "$remoting_version_patch" + 116 [ "VERSION=" + "$chrome_version_major" + "." + "$remoting_version_patch" +
109 "." + "$chrome_version_build" + "." + "$chrome_version_patch" ] 117 "." + "$chrome_version_build" + "." + "$chrome_version_patch" ]
110 } 118 }
119
120 source_set("unit_tests") {
121 testonly = true
122
123 sources = [
124 "audio_pipe_reader_unittest.cc",
125 "certificate_watcher_unittest.cc",
126 "unicode_to_keysym_unittest.cc",
127 "x11_character_injector_unittest.cc",
128 "x_server_clipboard_unittest.cc",
129 ]
130
131 if (!use_x11) {
132 sources -= [ "unicode_to_keysym_unittest.cc" ]
133 }
134
135 configs += [ "//remoting/build/config:version" ]
136
137 deps = [
138 "//remoting/host",
139 "//remoting/host:test_support",
140 "//remoting/host/it2me:common",
141 "//remoting/host/native_messaging",
142 "//remoting/host/security_key:unit_tests",
143 "//remoting/host/setup",
144 "//remoting/proto",
145 "//remoting/resources",
146 "//skia",
147 "//testing/gmock",
148 "//testing/gtest",
149 ]
150
151 if (!is_ios) {
152 deps += [ "//components/policy/core/browser:test_support" ]
153 }
154 }
OLDNEW
« no previous file with comments | « remoting/host/chromeos/BUILD.gn ('k') | remoting/host/mac/constants_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698