forked from google/elemental2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
89 lines (75 loc) · 1.94 KB
/
BUILD
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Description:
# Build rules for Elemental. Elemental contains java classes annotated with JsInterop annotations
# that expose native browsers API.
#
load("@com_google_jsinterop_generator//:jsinterop_generator.bzl", "jsinterop_generator")
load("@bazel_skylib//rules:build_test.bzl", "build_test")
load("@rules_license//rules:license.bzl", "license")
package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//visibility:public"],
licenses = ["notice"],
)
license(
name = "license",
package_name = "elemental2",
)
exports_files(["LICENSE"])
build_test(
name = "rule_test",
targets = [
":elemental2-core",
":elemental2-promise",
":elemental2-dom",
":elemental2-svg",
":elemental2-webgl",
":elemental2-media",
":elemental2-webstorage",
":elemental2-indexeddb",
],
)
# Core of Elemental containing basic javascript types definitions
jsinterop_generator(
name = "elemental2-core",
exports = ["//java/elemental2/core"],
)
# Promise API
jsinterop_generator(
name = "elemental2-promise",
exports = ["//java/elemental2/promise"],
)
# Dom part of elemental
jsinterop_generator(
name = "elemental2-dom",
exports = ["//java/elemental2/dom"],
)
# SVG api
jsinterop_generator(
name = "elemental2-svg",
exports = ["//java/elemental2/svg"],
)
# Webgl api
jsinterop_generator(
name = "elemental2-webgl",
exports = ["//java/elemental2/webgl"],
)
# Webassembly api
jsinterop_generator(
name = "elemental2-webassembly",
exports = ["//java/elemental2/webassembly"],
)
# Media api
jsinterop_generator(
name = "elemental2-media",
exports = ["//java/elemental2/media"],
)
# Web storage api
jsinterop_generator(
name = "elemental2-webstorage",
exports = ["//java/elemental2/webstorage"],
)
# Indexed DB api
jsinterop_generator(
name = "elemental2-indexeddb",
exports = ["//java/elemental2/indexeddb"],
)