OLD | NEW |
---|---|
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("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 import("//chrome/common/features.gni") | 6 import("//chrome/common/features.gni") |
7 import("//testing/test.gni") | |
7 | 8 |
8 assert(enable_vr_shell && android_java_ui) | 9 assert(enable_vr_shell && android_java_ui) |
9 | 10 |
10 static_library("vr_shell") { | 11 static_library("vr_shell") { |
11 sources = [ | 12 sources = [ |
12 "ui_elements.cc", | 13 "ui_elements.cc", |
13 "ui_elements.h", | 14 "ui_elements.h", |
14 "vr_shell.cc", | 15 "vr_shell.cc", |
15 "vr_shell.h", | 16 "vr_shell.h", |
16 "vr_shell_renderer.cc", | 17 "vr_shell_renderer.cc", |
(...skipping 15 matching lines...) Expand all Loading... | |
32 | 33 |
33 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] | 34 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] |
34 } | 35 } |
35 | 36 |
36 generate_jni("vr_shell_jni_headers") { | 37 generate_jni("vr_shell_jni_headers") { |
37 sources = [ | 38 sources = [ |
38 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java ", | 39 "//chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShell.java ", |
39 ] | 40 ] |
40 jni_package = "vr_shell" | 41 jni_package = "vr_shell" |
41 } | 42 } |
43 | |
44 test("vr_shell_unittests") { | |
bshe
2016/09/12 15:38:26
I assume you have a follow up CL that config bot t
cjgrant
2016/09/13 17:32:15
Will do. I'll read up on this.
| |
45 sources = [ | |
46 "animation.cc", | |
bshe
2016/09/12 15:38:26
no unittest related file should be moved to vr_she
cjgrant
2016/09/13 17:32:15
Good call. I initially liked that the unit test t
| |
47 "animation.h", | |
48 "easing.cc", | |
49 "easing.h", | |
50 "ui_elements.cc", | |
51 "ui_elements.h", | |
52 "ui_elements_unittest.cc", | |
53 "vr_math.cc", | |
54 "vr_math.h", | |
55 ] | |
56 | |
57 deps = [ | |
58 "//base/test:run_all_unittests", | |
59 "//base/test:test_support", | |
60 "//testing/gtest", | |
61 "//ui/gfx/geometry", | |
62 ] | |
63 } | |
OLD | NEW |