Home | History | Annotate | Download | only in soong
      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 
     13 subdirs = [
     14     "androidmk",
     15     "cmd/*",
     16     "third_party/zip",
     17     "ui/*",
     18 ]
     19 
     20 bootstrap_go_package {
     21     name: "soong-env",
     22     pkgPath: "android/soong/env",
     23     srcs: [
     24         "env/env.go",
     25     ],
     26 }
     27 
     28 bootstrap_go_package {
     29     name: "soong",
     30     pkgPath: "android/soong",
     31     deps: [
     32         "blueprint",
     33     ],
     34     srcs: [
     35         "doc.go",
     36     ],
     37 }
     38 
     39 bootstrap_go_package {
     40     name: "soong-android",
     41     pkgPath: "android/soong/android",
     42     deps: [
     43         "blueprint",
     44         "blueprint-bootstrap",
     45         "soong",
     46         "soong-env",
     47     ],
     48     srcs: [
     49         "android/androidmk.go",
     50         "android/arch.go",
     51         "android/config.go",
     52         "android/defaults.go",
     53         "android/defs.go",
     54         "android/expand.go",
     55         "android/hooks.go",
     56         "android/makevars.go",
     57         "android/module.go",
     58         "android/mutator.go",
     59         "android/onceper.go",
     60         "android/package_ctx.go",
     61         "android/paths.go",
     62         "android/prebuilt.go",
     63         "android/register.go",
     64         "android/util.go",
     65         "android/variable.go",
     66 
     67         // Lock down environment access last
     68         "android/env.go",
     69     ],
     70     testSrcs: [
     71         "android/expand_test.go",
     72         "android/paths_test.go",
     73         "android/prebuilt_test.go",
     74         "android/variable_test.go",
     75     ],
     76 }
     77 
     78 bootstrap_go_package {
     79     name: "soong-cc-config",
     80     pkgPath: "android/soong/cc/config",
     81     deps: [
     82         "soong-android",
     83     ],
     84     srcs: [
     85         "cc/config/clang.go",
     86         "cc/config/global.go",
     87         "cc/config/tidy.go",
     88         "cc/config/toolchain.go",
     89 
     90         "cc/config/arm_device.go",
     91         "cc/config/arm64_device.go",
     92         "cc/config/mips_device.go",
     93         "cc/config/mips64_device.go",
     94         "cc/config/x86_device.go",
     95         "cc/config/x86_64_device.go",
     96 
     97         "cc/config/x86_darwin_host.go",
     98         "cc/config/x86_linux_host.go",
     99         "cc/config/x86_linux_bionic_host.go",
    100         "cc/config/x86_windows_host.go",
    101     ],
    102     testSrcs: [
    103         "cc/config/tidy_test.go",
    104     ],
    105 }
    106 
    107 bootstrap_go_package {
    108     name: "soong-cc",
    109     pkgPath: "android/soong/cc",
    110     deps: [
    111         "blueprint",
    112         "blueprint-pathtools",
    113         "soong",
    114         "soong-android",
    115         "soong-cc-config",
    116         "soong-genrule",
    117     ],
    118     srcs: [
    119         "cc/androidmk.go",
    120         "cc/builder.go",
    121         "cc/cc.go",
    122         "cc/check.go",
    123         "cc/coverage.go",
    124         "cc/gen.go",
    125         "cc/makevars.go",
    126         "cc/prebuilt.go",
    127         "cc/proto.go",
    128         "cc/relocation_packer.go",
    129         "cc/sanitize.go",
    130         "cc/sabi.go",
    131         "cc/stl.go",
    132         "cc/strip.go",
    133         "cc/tidy.go",
    134         "cc/util.go",
    135 
    136         "cc/cmakelists.go",
    137         "cc/compiler.go",
    138         "cc/installer.go",
    139         "cc/linker.go",
    140 
    141         "cc/binary.go",
    142         "cc/library.go",
    143         "cc/object.go",
    144         "cc/test.go",
    145         "cc/toolchain_library.go",
    146 
    147         "cc/ndk_prebuilt.go",
    148         "cc/ndk_headers.go",
    149         "cc/ndk_library.go",
    150         "cc/ndk_sysroot.go",
    151 
    152         "cc/llndk_library.go",
    153     ],
    154     testSrcs: [
    155         "cc/cc_test.go",
    156         "cc/test_data_test.go",
    157     ],
    158     pluginFor: ["soong_build"],
    159 }
    160 
    161 bootstrap_go_package {
    162     name: "soong-genrule",
    163     pkgPath: "android/soong/genrule",
    164     deps: [
    165         "blueprint",
    166         "blueprint-pathtools",
    167         "soong",
    168         "soong-android",
    169     ],
    170     srcs: [
    171         "genrule/filegroup.go",
    172         "genrule/genrule.go",
    173     ],
    174     pluginFor: ["soong_build"],
    175 }
    176 
    177 bootstrap_go_package {
    178     name: "soong-phony",
    179     pkgPath: "android/soong/phony",
    180     deps: [
    181         "blueprint",
    182         "soong-android",
    183     ],
    184     srcs: [
    185         "phony/phony.go",
    186     ],
    187     pluginFor: ["soong_build"],
    188 }
    189 
    190 bootstrap_go_package {
    191     name: "soong-java",
    192     pkgPath: "android/soong/java",
    193     deps: [
    194         "blueprint",
    195         "blueprint-pathtools",
    196         "soong",
    197         "soong-android",
    198         "soong-genrule",
    199     ],
    200     srcs: [
    201         "java/androidmk.go",
    202         "java/app_builder.go",
    203         "java/app.go",
    204         "java/builder.go",
    205         "java/gen.go",
    206         "java/java.go",
    207         "java/resources.go",
    208     ],
    209     pluginFor: ["soong_build"],
    210 }
    211 
    212 //
    213 // Defaults to enable various configurations of host bionic
    214 //
    215 
    216 cc_defaults {
    217     name: "linux_bionic_supported",
    218     host_supported: true,
    219     target: {
    220         host: {
    221             enabled: false,
    222         },
    223         linux_bionic: {
    224             enabled: true,
    225         },
    226     },
    227 }
    228 
    229 //
    230 // C static libraries extracted from the gcc toolchain
    231 //
    232 
    233 toolchain_library {
    234     name: "libatomic",
    235     defaults: ["linux_bionic_supported"],
    236     vendor_available: true,
    237     arch: {
    238         arm: {
    239             instruction_set: "arm",
    240         },
    241     },
    242 }
    243 
    244 toolchain_library {
    245     name: "libgcc",
    246     defaults: ["linux_bionic_supported"],
    247     vendor_available: true,
    248     arch: {
    249         arm: {
    250             instruction_set: "arm",
    251         },
    252     },
    253 }
    254 
    255 toolchain_library {
    256     name: "libwinpthread",
    257     host_supported: true,
    258     enabled: false,
    259     target: {
    260         windows: {
    261             enabled: true
    262         },
    263     },
    264 }
    265 
    266 toolchain_library {
    267     name: "libgcov",
    268     defaults: ["linux_bionic_supported"],
    269     arch: {
    270         arm: {
    271             instruction_set: "arm",
    272         },
    273     },
    274 }
    275