OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 if (is_android) { | |
6 import("//build/config/android/config.gni") | |
7 import("//build/config/android/rules.gni") | |
8 } | |
9 | |
10 source_set("feedback") { | |
11 visibility = [ "//blimp/client/core/*" ] | |
12 | |
13 sources = [ | |
14 "blimp_feedback_data.cc", | |
15 "blimp_feedback_data.h", | |
16 ] | |
17 | |
18 deps = [ | |
19 "//base", | |
20 "//blimp/client/core/contents", | |
21 ] | |
22 | |
23 if (is_android) { | |
24 sources += [ | |
25 "android/blimp_feedback_data_android.cc", | |
26 "android/blimp_feedback_data_android.h", | |
27 ] | |
28 | |
29 deps += [ ":feedback_jni_headers" ] | |
30 } | |
31 } | |
32 | |
33 source_set("unit_tests") { | |
34 visibility = [ "//blimp/client/core:unit_tests" ] | |
35 | |
36 testonly = true | |
37 | |
38 sources = [ | |
39 "blimp_feedback_data_unittest.cc", | |
40 ] | |
41 | |
42 deps = [ | |
43 ":feedback", | |
44 "//base", | |
45 "//blimp/client/core/compositor", | |
46 "//blimp/client/core/contents", | |
47 "//blimp/client/test/compositor", | |
48 "//skia", | |
49 "//testing/gmock", | |
50 "//testing/gtest", | |
51 ] | |
52 } | |
53 | |
54 if (is_android) { | |
55 android_library("feedback_java") { | |
56 visibility = [ "//blimp/client/core/*" ] | |
57 | |
58 java_files = [ "android/java/src/org/chromium/blimp/core/feedback/BlimpFeedb
ackData.java" ] | |
59 | |
60 deps = [ | |
61 "//base:base_java", | |
62 ] | |
63 } | |
64 | |
65 generate_jni("feedback_jni_headers") { | |
66 visibility = [ ":*" ] | |
67 | |
68 sources = [ | |
69 "android/java/src/org/chromium/blimp/core/feedback/BlimpFeedbackData.java"
, | |
70 ] | |
71 | |
72 jni_package = "blimp/client/core" | |
73 } | |
74 } | |
OLD | NEW |