aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
blob: d2d03e81973c068f2b9050729404de6c405cc22a (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
package {
    default_applicable_licenses: ["external_chromium-trace_license"],
}

// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
    name: "external_chromium-trace_license",
    visibility: [":__subpackages__"],
    license_kinds: [
        "legacy_restricted",
    ],
    license_text: [
        "NOTICE",
    ],
}

genrule {
    name: "systrace-sdk-zip",
    visibility: ["//development/build"],
    tools: ["soong_zip"],
    // TODO: Use $(in) or similar, but bash cmdline limits are a problem
    // (Use implement a version of $(in) that works with rspfile?)
    cmd: "$(location soong_zip) -o $(out) -P systrace -C $$(dirname $(location systrace.py)) " +
        "-D $$(dirname $(location systrace.py))/catapult " +
        "-f $(location systrace.py) " +
        "-f $(location NOTICE) " +
        "-f $(location UPSTREAM_REVISION)",
    srcs: [
        "catapult/**/*",
        "systrace.py",
        "NOTICE",
        "UPSTREAM_REVISION",
    ],
    out: ["output.zip"],
}