blob: 057d27c34d4ca60071765fae3dc0d961d58be8d9 [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
Colin Crossba442872015-03-14 14:26:32 -070013bootstrap_go_binary {
14 name: "soong_build",
15 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080016 "blueprint",
17 "blueprint-bootstrap",
18 "soong-cc",
19 "soong-common",
20 "soong-config",
21 ],
Colin Crossba442872015-03-14 14:26:32 -070022 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080023 "cmd/soong_build/main.go",
24 ],
Colin Crossba442872015-03-14 14:26:32 -070025 primaryBuilder: true,
26}
Colin Cross3f40fa42015-01-30 17:27:36 -080027
Colin Crossba442872015-03-14 14:26:32 -070028bootstrap_go_binary {
29 name: "soong_glob",
30 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080031 "soong-glob",
32 ],
Colin Crossba442872015-03-14 14:26:32 -070033 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080034 "cmd/soong_glob/soong_glob.go",
35 ],
Colin Crossba442872015-03-14 14:26:32 -070036}
Colin Cross3f40fa42015-01-30 17:27:36 -080037
Colin Crossba442872015-03-14 14:26:32 -070038bootstrap_go_package {
39 name: "soong-glob",
40 pkgPath: "android/soong/glob",
41 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080042 "blueprint-deptools",
43 ],
Colin Crossba442872015-03-14 14:26:32 -070044 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080045 "glob/glob.go",
46 ],
Colin Crossba442872015-03-14 14:26:32 -070047}
Colin Cross3f40fa42015-01-30 17:27:36 -080048
Colin Crossba442872015-03-14 14:26:32 -070049bootstrap_go_package {
50 name: "soong-common",
51 pkgPath: "android/soong/common",
52 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080053 "blueprint",
54 "blueprint-bootstrap",
Colin Crossba442872015-03-14 14:26:32 -070055 "soong-glob",
Colin Cross3f40fa42015-01-30 17:27:36 -080056 ],
Colin Crossba442872015-03-14 14:26:32 -070057 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080058 "common/arch.go",
59 "common/defs.go",
60 "common/glob.go",
61 "common/module.go",
62 "common/paths.go",
63 ],
Colin Crossba442872015-03-14 14:26:32 -070064}
Colin Cross3f40fa42015-01-30 17:27:36 -080065
Colin Crossba442872015-03-14 14:26:32 -070066bootstrap_go_package {
67 name: "soong-config",
68 pkgPath: "android/soong/config",
69 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080070 "blueprint",
71 "blueprint-bootstrap",
72 "soong-common",
73 ],
Colin Crossba442872015-03-14 14:26:32 -070074 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080075 "config/config.go",
76 ],
Colin Crossba442872015-03-14 14:26:32 -070077}
Colin Cross3f40fa42015-01-30 17:27:36 -080078
Colin Crossba442872015-03-14 14:26:32 -070079bootstrap_go_package {
80 name: "soong-cc",
81 pkgPath: "android/soong/cc",
82 deps: [
Colin Cross3f40fa42015-01-30 17:27:36 -080083 "blueprint",
84 "blueprint-pathtools",
85 "soong-common",
86 "soong-config",
87 ],
Colin Crossba442872015-03-14 14:26:32 -070088 srcs: [
Colin Cross3f40fa42015-01-30 17:27:36 -080089 "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 ],
Colin Crossba442872015-03-14 14:26:32 -0700100}
Colin Cross3f40fa42015-01-30 17:27:36 -0800101
Colin Cross80031312015-03-14 14:28:22 -0700102//
103// androidmk Android.mk to Blueprints translator
104//
105
106bootstrap_go_binary {
107 name: "androidmk",
108 srcs: [
109 "androidmk/cmd/androidmk/android.go",
110 "androidmk/cmd/androidmk/androidmk.go",
111 "androidmk/cmd/androidmk/values.go",
112 ],
113 deps: [
114 "androidmk-parser",
115 "blueprint-parser",
116 ],
117}
118
119bootstrap_go_package {
120 name: "androidmk-parser",
121 pkgPath: "android/soong/androidmk/parser",
122 srcs: [
123 "androidmk/parser/make_strings.go",
124 "androidmk/parser/makething.go",
125 "androidmk/parser/parser.go",
126 "androidmk/parser/scope.go",
127 ],
128}
129
130//
131// C static libraries extracted from the gcc toolchain
132//
133
Colin Crossba442872015-03-14 14:26:32 -0700134toolchain_library {
135 name: "libatomic",
136}
Colin Cross3f40fa42015-01-30 17:27:36 -0800137
Colin Crossba442872015-03-14 14:26:32 -0700138toolchain_library {
139 name: "libgcc",
140}
Colin Cross3f40fa42015-01-30 17:27:36 -0800141
Colin Crossba442872015-03-14 14:26:32 -0700142toolchain_library {
143 name: "libgcov",
144}