-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathBUCK
126 lines (112 loc) · 2.43 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# BlackLight Debug Binary
android_binary(
name = 'debug',
package_type = 'DEBUG',
manifest = './AndroidManifest.xml',
target = 'android-19',
keystore = ':debug_keystore',
deps = [
':bl-res',
':bl-src',
':sup-res',
],
)
# BlackLight Release Binary
android_binary(
name = 'release',
package_type = 'RELEASE',
proguard_config = './proguard.cfg',
manifest = './AndroidManifest.xml',
target = 'android-19',
keystore = ':release_keystore',
deps = [
':bl-res',
':bl-src',
':sup-res',
],
)
# BlackLight Resources
android_resource(
name = 'bl-res',
res = './res',
assets = './assets',
package = 'us.shandian.blacklight',
deps = [ ':sup-res' ],
visibility = [ 'PUBLIC' ],
)
# BlackLight Source Code
android_library(
name = 'bl-src',
srcs = glob(['./src/**/*.java']),
deps = [
':build_config',
':bl-res',
':sup-src',
':sbt-src',
':gson',
':android-support-v4',
],
)
# BlackLight Build Config
android_build_config(
name = 'build_config',
package = 'us.shandian.blacklight',
)
# Android Support Library v4
prebuilt_jar(
name = 'android-support-v4',
binary_jar = './libs/android-support-v4.jar',
visibility = [ 'PUBLIC' ],
)
# Gson Library
prebuilt_jar(
name = 'gson',
binary_jar = './libs/gson-2.2.2.jar',
visibility = [ 'PUBLIC' ],
)
# NineOldAndroids Libaray needed by SlidingUpPanel
prebuilt_jar(
name = 'nineoldandroids',
binary_jar = './libs/SlidingUpPanel/libs/nineoldandroids-2.4.0.jar',
visibility = [ 'PUBLIC' ],
)
# SlidingUpPanel Resources
android_resource(
name = 'sup-res',
res = './libs/SlidingUpPanel/res',
package = 'com.sothree.slidinguppanel.library',
visibility = [ 'PUBLIC' ],
)
# SlidingUpPanel Source Code
android_library(
name = 'sup-src',
srcs = glob(['./libs/SlidingUpPanel/src/**/*.java']),
deps = [
':sup-res',
':android-support-v4',
':nineoldandroids',
],
visibility = [ 'PUBLIC' ],
)
# SystemBarTint Source Code
android_library(
name = 'sbt-src',
srcs = glob(['./libs/SystemBarTint/src/**/*.java']),
visibility = [ 'PUBLIC' ],
)
# Debug Keystore
keystore(
name = 'debug_keystore',
store = './keystore/debug.keystore',
properties = './keystore/debug.keystore.properties',
)
# Release Keystore (Private)
keystore(
name = 'release_keystore',
store = './keystore/publish.keystore',
properties = './keystore/publish.keystore.properties',
)
# Config
project_config(
src_target = ':debug',
)