forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.gn
47 lines (39 loc) · 1 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
gvr_arch = current_cpu
if (gvr_arch == "x64") {
gvr_arch = "x86_64"
}
android_aar_prebuilt("gvr_common_java") {
aar_path = "src/ndk-beta/lib/common_library.aar"
jar_excluded_patterns = [ "*/protobuf/*" ]
}
android_aar_prebuilt("gvr_base_java") {
aar_path = "src/libraries/base/base.aar"
}
android_aar_prebuilt("gvr_controller_java") {
aar_path = "src/libraries/controller/controller.aar"
}
source_set("libgvr") {
if (gvr_arch != "mipsel") {
data_deps = [
":libgvr_copy",
]
libs = [ "${root_out_dir}/libgvr.so" ]
}
}
if (gvr_arch != "mipsel") {
copy("libgvr_copy") {
sources = [
"src/ndk-beta/lib/android_${gvr_arch}/libgvr.so",
]
outputs = [
"${root_out_dir}/libgvr.so",
]
}
}
config("libgvr_config") {
include_dirs = [ "src/ndk-beta/include/" ]
}