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: ui/events/BUILD.gn

Issue 1961473003: [Mac/GN] Set up the component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
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 import("//testing/test.gni")
7 import("//ui/ozone/ozone.gni") 7 import("//ui/ozone/ozone.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "//ui/gfx/geometry", 75 "//ui/gfx/geometry",
76 ] 76 ]
77 77
78 if (use_x11) { 78 if (use_x11) {
79 public_deps += [ "//ui/events/keycodes:x11" ] 79 public_deps += [ "//ui/events/keycodes:x11" ]
80 } 80 }
81 81
82 if (!is_ios) { 82 if (!is_ios) {
83 deps += [ "//ipc:param_traits" ] 83 deps += [ "//ipc:param_traits" ]
84 } 84 }
85
86 if (is_mac) {
87 libs = [
88 "AppKit.framework",
89 "Carbon.framework",
90 ]
91 }
85 } 92 }
86 93
87 component("events") { 94 component("events") {
88 sources = [ 95 sources = [
89 "cocoa/cocoa_event_utils.h", 96 "cocoa/cocoa_event_utils.h",
90 "cocoa/cocoa_event_utils.mm", 97 "cocoa/cocoa_event_utils.mm",
91 "cocoa/events_mac.mm", 98 "cocoa/events_mac.mm",
92 "event.cc", 99 "event.cc",
93 "event.h", 100 "event.h",
94 "event_dispatcher.cc", 101 "event_dispatcher.cc",
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 "android/key_event_utils.cc", 201 "android/key_event_utils.cc",
195 "android/key_event_utils.h", 202 "android/key_event_utils.h",
196 "android/motion_event_android.cc", 203 "android/motion_event_android.cc",
197 "android/motion_event_android.h", 204 "android/motion_event_android.h",
198 ] 205 ]
199 deps += [ 206 deps += [
200 ":keyevent_jni_headers", 207 ":keyevent_jni_headers",
201 ":motionevent_jni_headers", 208 ":motionevent_jni_headers",
202 ] 209 ]
203 } 210 }
211
212 if (is_mac) {
213 libs = [ "AppKit.framework" ]
214 }
204 } 215 }
205 216
206 component("gesture_detection") { 217 component("gesture_detection") {
207 sources = [ 218 sources = [
208 "gesture_detection/bitset_32.h", 219 "gesture_detection/bitset_32.h",
209 "gesture_detection/filtered_gesture_provider.cc", 220 "gesture_detection/filtered_gesture_provider.cc",
210 "gesture_detection/filtered_gesture_provider.h", 221 "gesture_detection/filtered_gesture_provider.h",
211 "gesture_detection/gesture_configuration.cc", 222 "gesture_detection/gesture_configuration.cc",
212 "gesture_detection/gesture_configuration.h", 223 "gesture_detection/gesture_configuration.h",
213 "gesture_detection/gesture_detection_export.h", 224 "gesture_detection/gesture_detection_export.h",
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 generate_jar_jni("motionevent_jni_headers") { 468 generate_jar_jni("motionevent_jni_headers") {
458 jni_package = "ui" 469 jni_package = "ui"
459 classes = [ "android/view/MotionEvent.class" ] 470 classes = [ "android/view/MotionEvent.class" ]
460 } 471 }
461 472
462 generate_jar_jni("keyevent_jni_headers") { 473 generate_jar_jni("keyevent_jni_headers") {
463 jni_package = "ui" 474 jni_package = "ui"
464 classes = [ "android/view/KeyEvent.class" ] 475 classes = [ "android/view/KeyEvent.class" ]
465 } 476 }
466 } 477 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698