blob: f5379f2a6f8ebbed142fae28ef5fbc041c5dfc76 [file] [log] [blame]
Colin Cross3f40fa42015-01-30 17:27:36 -08001//
2// WARNING: Modifying this file will NOT automatically regenerate build.ninja.in!
3//
4// Before modifying this file make sure minibp is up to date:
5// 1) "repo sync build/soong" to make sure you have the latest build.ninja.in
6// 2) build minibp, which builds automicatically through the normal build steps. For example:
7//
8// After modifying this file regenerate build.ninja.in and build your changes:
9// 1) In your build directory, execute "../bootstrap.bash -r" to regenerate build.ninja.in
10// 2) Build again
11//
12
13bootstrap_go_binary(
14 name = "soong_build",
15 deps = [
16 "blueprint",
17 "blueprint-bootstrap",
18 "soong-cc",
19 "soong-common",
20 "soong-config",
21 ],
22 srcs = [
23 "cmd/soong_build/main.go",
24 ],
25 primaryBuilder = true,
26)
27
28bootstrap_go_binary(
29 name = "soong_glob",
30 deps = [
31 "soong-glob",
32 ],
33 srcs = [
34 "cmd/soong_glob/soong_glob.go",
35 ],
36)
37
38bootstrap_go_package(
39 name = "soong-glob",
40 pkgPath = "android/soong/glob",
41 deps = [
42 "blueprint-deptools",
43 ],
44 srcs = [
45 "glob/glob.go",
46 ],
47)
48
49bootstrap_go_package(
50 name = "soong-common",
51 pkgPath = "android/soong/common",
52 deps = [
53 "blueprint",
54 "blueprint-bootstrap",
55 "soong-glob"
56 ],
57 srcs = [
58 "common/arch.go",
59 "common/defs.go",
60 "common/glob.go",
61 "common/module.go",
62 "common/paths.go",
63 ],
64)
65
66bootstrap_go_package(
67 name = "soong-config",
68 pkgPath = "android/soong/config",
69 deps = [
70 "blueprint",
71 "blueprint-bootstrap",
72 "soong-common",
73 ],
74 srcs = [
75 "config/config.go",
76 ],
77)
78
79bootstrap_go_package(
80 name = "soong-cc",
81 pkgPath = "android/soong/cc",
82 deps = [
83 "blueprint",
84 "blueprint-pathtools",
85 "soong-common",
86 "soong-config",
87 ],
88 srcs = [
89 "cc/builder.go",
90 "cc/cc.go",
91 "cc/clang.go",
92 "cc/toolchain.go",
93 "cc/util.go",
94
95 "cc/arm_device.go",
96 "cc/arm64_device.go",
97
98 "cc/x86_linux_host.go",
99 ],
100)
101
102toolchain_library(
103 name = "libatomic",
104)
105
106toolchain_library(
107 name = "libgcc",
108)
109
110toolchain_library(
111 name = "libgcov",
112)