https for buildserver.labs.intellij.net
[idea/adt-tools-base.git] / fakeandroid / BUILD
1 load("//tools/base/bazel:android.bzl", "dex_library")
2
3 java_library(
4     name = "fakeandroid",
5     srcs = glob(["srcs/com/android/tools/fakeandroid/**/*.java"]),
6     visibility = ["//visibility:public"],
7     deps = [
8         "//tools/idea/.idea/libraries:JUnit4",
9     ],
10 )
11
12 java_library(
13     name = "android-mock",
14     srcs = glob([
15         "srcs/android/**/*.java",
16         "srcs/com/google/android/**/*.java",
17     ]),
18     neverlink = 1,
19     visibility = ["//visibility:public"],
20     deps = [
21         "//tools/idea/.idea/libraries:Guava",
22     ],
23 )
24
25 dex_library(
26     name = "android-mock-dex",
27     jars = ["android-mock"],
28     visibility = ["//visibility:public"],
29 )
30
31 sh_binary(
32     name = "art-runner",
33     srcs = ["//prebuilts/tools/linux-x86_64/art"],
34     data = select({
35         "//tools/base/bazel:darwin": [],
36         "//tools/base/bazel:windows": [],
37         "//conditions:default": [
38             ":android-mock-dex",
39             ":app-launcher-dex",
40             "//prebuilts/tools/linux-x86_64/art:art_deps",
41             "//prebuilts/tools/linux-x86_64/art:dex2oat",
42         ],
43     }),
44     visibility = ["//visibility:public"],
45 )
46
47 dex_library(
48     name = "app-launcher-dex",
49     jars = [":app-launcher.jar"],
50     output = "app-launcher.dex",
51     visibility = ["//visibility:public"],
52 )
53
54 java_binary(
55     name = "app-launcher",
56     srcs = ["srcs/com/android/tools/applauncher/FakeAndroid.java"],
57     main_class = "com.android.tools.applauncher.FakeAndroid",
58     deps = [
59         ":android-mock",
60     ],
61 )