summaryrefslogtreecommitdiff
path: root/sample/BUILD
blob: 595790cbcb24635695273e66e2b60958c121ecf9 (plain)
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
48
49
50
51
52
53
54
package(
    default_visibility = [
        "//java/com/google/android/apps/bigtop:__subpackages__",
    ],
)

licenses(["notice"])  # Apache License 2.0

exports_files(["LICENSE"])

android_manifest_merge(
    name = "merged_manifest",
    srcs = ["AndroidManifest.xml"],
    deps = [
        "//third_party/java_src/android_libs/bitmap_library:AndroidManifest.xml",
    ],
)

filegroup(
    name = "resource_files",
    srcs = glob(
        ["res/**"],
        exclude_directories = 1,
    ),
)

android_resources(
    name = "resources",
    custom_package = "com.example.bitmapsample",
    inline_constants = 0,
    manifest = ":merged_manifest",
    resources = [
        ":resource_files",
        "//third_party/java_src/android_libs/bitmap_library:resource_files",
    ],
    resources_dir = "res",
    visibility = ["//visibility:private"],
)

exports_files([
    "proguard-config.pro",
])

android_binary(
    name = "bitmap_sample",
    srcs = glob(["src/**/*.java"]) + [":resources"],
    proguard_specs = [
        ":proguard-config.pro",
    ],
    resources = ":resources",
    deps = [
        "//third_party/java_src/android_libs/bitmap_library",
    ],
)