Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 1 | // |
| 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 Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 13 | bootstrap_go_binary { |
| 14 | name: "soong_build", |
| 15 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 16 | "blueprint", |
| 17 | "blueprint-bootstrap", |
| 18 | "soong-cc", |
| 19 | "soong-common", |
| 20 | "soong-config", |
| 21 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 22 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 23 | "cmd/soong_build/main.go", |
| 24 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 25 | primaryBuilder: true, |
| 26 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 27 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 28 | bootstrap_go_binary { |
| 29 | name: "soong_glob", |
| 30 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 31 | "soong-glob", |
| 32 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 33 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 34 | "cmd/soong_glob/soong_glob.go", |
| 35 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 36 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 37 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 38 | bootstrap_go_package { |
| 39 | name: "soong-glob", |
| 40 | pkgPath: "android/soong/glob", |
| 41 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 42 | "blueprint-deptools", |
| 43 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 44 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 45 | "glob/glob.go", |
| 46 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 47 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 48 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 49 | bootstrap_go_package { |
| 50 | name: "soong-common", |
| 51 | pkgPath: "android/soong/common", |
| 52 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 53 | "blueprint", |
| 54 | "blueprint-bootstrap", |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 55 | "soong-glob", |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 56 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 57 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 58 | "common/arch.go", |
| 59 | "common/defs.go", |
| 60 | "common/glob.go", |
| 61 | "common/module.go", |
| 62 | "common/paths.go", |
| 63 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 64 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 65 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 66 | bootstrap_go_package { |
| 67 | name: "soong-config", |
| 68 | pkgPath: "android/soong/config", |
| 69 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 70 | "blueprint", |
| 71 | "blueprint-bootstrap", |
| 72 | "soong-common", |
| 73 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 74 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 75 | "config/config.go", |
| 76 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 77 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 78 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 79 | bootstrap_go_package { |
| 80 | name: "soong-cc", |
| 81 | pkgPath: "android/soong/cc", |
| 82 | deps: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 83 | "blueprint", |
| 84 | "blueprint-pathtools", |
| 85 | "soong-common", |
| 86 | "soong-config", |
| 87 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 88 | srcs: [ |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 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 | ], |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 100 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 101 | |
Colin Cross | 8003131 | 2015-03-14 14:28:22 -0700 | [diff] [blame^] | 102 | // |
| 103 | // androidmk Android.mk to Blueprints translator |
| 104 | // |
| 105 | |
| 106 | bootstrap_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 | |
| 119 | bootstrap_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 Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 134 | toolchain_library { |
| 135 | name: "libatomic", |
| 136 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 137 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 138 | toolchain_library { |
| 139 | name: "libgcc", |
| 140 | } |
Colin Cross | 3f40fa4 | 2015-01-30 17:27:36 -0800 | [diff] [blame] | 141 | |
Colin Cross | ba44287 | 2015-03-14 14:26:32 -0700 | [diff] [blame] | 142 | toolchain_library { |
| 143 | name: "libgcov", |
| 144 | } |