blob: c1d40b5124840208f6d04cec8e6b1d518af5050a [file] [log] [blame]
Brian Silverman0d57fc82016-01-24 21:02:53 -05001package(default_visibility = ['//visibility:public'])
2
3filegroup(
4 name = 'gcc',
5 srcs = [
6 'bin/arm-linux-gnueabihf-gcc',
7 ],
8)
9
10filegroup(
11 name = 'ar',
12 srcs = [
13 'bin/arm-linux-gnueabihf-ar',
14 ],
15)
16
17filegroup(
18 name = 'ld',
19 srcs = [
20 'bin/arm-linux-gnueabihf-ld',
21 ],
22)
23
24filegroup(
25 name = 'nm',
26 srcs = [
27 'bin/arm-linux-gnueabihf-nm',
28 ],
29)
30
31filegroup(
32 name = 'objcopy',
33 srcs = [
34 'bin/arm-linux-gnueabihf-objcopy',
35 ],
36)
37
38filegroup(
39 name = 'objdump',
40 srcs = [
41 'bin/arm-linux-gnueabihf-objdump',
42 ],
43)
44
45filegroup(
46 name = 'strip',
47 srcs = [
48 'bin/arm-linux-gnueabihf-strip',
49 ],
50)
51
52filegroup(
53 name = 'as',
54 srcs = [
55 'bin/arm-linux-gnueabihf-as',
56 ],
57)
58
59cc_library(
60 name = 'librt',
61 srcs = [
62 'arm-linux-gnueabihf/libc/usr/lib/librt.so',
63 ],
64)
65
66cc_library(
67 name = 'libdl',
68 srcs = [
69 'arm-linux-gnueabihf/libc/usr/lib/libdl.so',
70 ],
71)
72
73cc_library(
74 name = 'libm',
75 srcs = [
76 'arm-linux-gnueabihf/libc/usr/lib/libm.so',
77 ],
78)
79
80cc_library(
81 name = 'libpthread',
82 deps = [
83 '@//tools/cpp/linaro_linux_gcc:libpthread',
84 ],
85)
86
87filegroup(
88 name = 'compiler_pieces',
89 srcs = glob([
90 'arm-linux-gnueabihf/**',
91 'libexec/**',
92 'lib/gcc/arm-linux-gnueabihf/**',
93 'include/**',
94 ], [
95 # Exclude empty files so Bazel's caching works.
96 # TODO(Brian): remove this once the Bazel bug is fixed.
97 '**/.install',
98 ]),
99)
100
101filegroup(
102 name = 'compiler_components',
103 srcs = [
104 ':gcc',
105 ':ar',
106 ':ld',
107 ':nm',
108 ':objcopy',
109 ':objdump',
110 ':strip',
111 ':as',
112 ],
113)