forked from facebook/litho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUCK
63 lines (57 loc) · 1.7 KB
/
BUCK
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
# BUILD FILE SYNTAX: SKYLARK
# Copyright (c) 2017-present, Facebook, Inc.
#
# This source code is licensed under the Apache 2.0 license found in the
# LICENSE file in the root directory of this source tree.
load("//:LITHO_DEFS.bzl", "LITHO_ANDROIDSUPPORT_TARGET", "LITHO_BUILD_CONFIG_TARGET", "LITHO_JAVA_TARGET", "LITHO_SECTIONS_ANNOTATIONS_TARGET", "LITHO_SECTIONS_COMMON_TARGET", "LITHO_SECTIONS_TARGET", "LITHO_SECTIONS_WIDGET_TARGET", "LITHO_VISIBILITY", "LITHO_WIDGET_TARGET", "LITHO_YOGA_TARGET", "fb_core_android_library", "litho_android_library")
litho_android_library(
name = "components",
visibility = [
"PUBLIC",
],
deps = [
LITHO_BUILD_CONFIG_TARGET,
],
exported_deps = [
LITHO_JAVA_TARGET,
LITHO_ANDROIDSUPPORT_TARGET,
LITHO_YOGA_TARGET,
],
)
litho_android_library(
name = "sections_core",
visibility = [
"PUBLIC",
],
exported_deps = [
":components",
LITHO_SECTIONS_TARGET,
LITHO_SECTIONS_ANNOTATIONS_TARGET,
],
)
fb_core_android_library(
name = "sections",
visibility = [
"PUBLIC",
],
exported_deps = [
":sections_core",
LITHO_SECTIONS_COMMON_TARGET,
LITHO_SECTIONS_WIDGET_TARGET,
LITHO_WIDGET_TARGET,
],
)
android_build_config(
name = "build_config",
package = "com.facebook.litho",
values_file = ":build_config_values",
visibility = LITHO_VISIBILITY,
)
genrule(
name = "build_config_values",
srcs = [
"config/build_config_values",
],
out = "extra_build_config_values",
cmd = "SRCARR=($SRCS); cat ${SRCARR[0]} | sed 's/{{IS_DEBUG}}/%s/' > $OUT" % (read_config("litho", "is_debug", "true")),
)