forked from facebookarchive/conceal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUCK
74 lines (69 loc) · 1.48 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
android_library(
name = 'conceal_android',
srcs = glob(['java/com/facebook/android/**/*.java']),
visibility = [
'PUBLIC',
],
deps = [
':libconceal',
],
)
java_library(
name = 'libconceal',
srcs = glob([
'java/com/facebook/crypto/**/*.java',
'java/com/facebook/proguard/**/*.java',
]),
proguard_config = 'proguard_annotations.pro',
visibility = [
'PUBLIC',
],
deps = [
'//native/crypto:crypto',
]
)
robolectric_test(
name = 'android_tests',
srcs = glob(['javatests/com/facebook/android/**/*Test.java']),
deps = [
':libconceal',
':conceal_android',
'//third-party/junit:junit',
'//third-party/junit:hamcrest',
'//third-party/guava:guava',
'//third-party/robolectric2:robolectric2',
],
source_under_test = [
':conceal_android',
],
)
java_test(
name = 'conceal_tests',
srcs = glob(['javatests/com/facebook/crypto/**/*Test.java']),
deps = [
':libconceal',
':crypto-test-helper',
'//third-party/junit:junit',
'//third-party/junit:hamcrest',
'//third-party/guava:guava',
],
source_under_test = [
':libconceal',
],
)
java_library(
name = 'crypto-test-helper',
srcs = glob(
['javatests/com/facebook/crypto/**/*.java'],
excludes = glob(['javatests/com/facebook/crypto/**/*Test.java'])
),
deps = [
':libconceal',
'//third-party/junit:junit',
'//third-party/junit:hamcrest',
],
)
project_config(
src_target = ':conceal_android',
src_roots = [ 'java' ],
)