Skip to content
  1. Apr 24, 2018
    • Alex Light's avatar
      Add support for generating Compdb file · ec868fc4
      Alex Light authored
      Some tools (i.e. you-complete-me) make use of a 'compdb' file
      (compile_commands.json) that records (among other things) the
      arguments needed to compile a file. These tools can use this with
      libclang to provide semantic completions and perform other IDE
      actions. This CL adds support for soong to generate a (simple)
      compile_commands.json file.
      
      Test: make SOONG_GEN_COMPDB=1 SOONG_LINK_COMPDB_TO=$ANDROID_BUILD_TOP nothing
            examine $ANDROID_BUILD_TOP/compile_commands.json
      
      Change-Id: I751bb344b90dfcdad1dfd71c2a85bacd345f0464
      ec868fc4
  2. Apr 20, 2018
  3. Apr 19, 2018
  4. Apr 18, 2018
    • Jiyong Park's avatar
      Adding java_sdk_library · c678ad3f
      Jiyong Park authored
      java_sdk_library is to make a Java library that implements optional
      SDK APIs to apps. It is actually a wrapper for several modules: 1) stubs
      library that clients are linked against to, 2) droiddoc module that
      internally generates API stubs source files, 3) the real runtime shared
      library that implements the API, and 4) XML file for adding the runtime
      lib to the classpath at runtime if requested via <uses-library>.
      
      Note: this is only the initial CL for the feature. Followings are features
      currently missing and under development.
      
      1) check for API consistency
      2) install stubs libs as the dist artifacts
      3) ensuring that apps have appropriate <uses-library> tag
      4) disallowing linking to the runtime shared lib
      5) HTML generation
      
      Bug: 77575606
      Test: m -j
      
      Change-Id: I4a4ccf6e730e041703c63bb275d8860d0de96887
      c678ad3f
    • Colin Cross's avatar
      59bcf6e6
    • Colin Cross's avatar
      5ddf2922
    • Colin Cross's avatar
      Fix aapt2 --min-sdk-version after finalized SDK · d09b0b65
      Colin Cross authored
      aapt2 --min-sdk-version was using AppsDefaultVersionName(), which
      is OMR1 for a non-finalized SDK, but 8.1.0 after finalization.
      Add PlatformSdkCodename() for non-finalized SDKs, use it for
      DefaultAppTargetSdk(), and pass it for aapt2 --min-sdk-version.
      
      Bug: 78224641
      Test: TestAppSdkVersion in app_test.go
      Change-Id: I622eaf92f8a940f79007c2a579536da325700b06
      d09b0b65
    • Pirama Arumuga Nainar's avatar
      Fix few issues with filegroups · 955dc499
      Pirama Arumuga Nainar authored
      Bug: http://b/64121881
      Bug: http://b/78188880
      
      - Allow filegroup's properties to be extended by a LoadHook
      - Support a filegroup (':module') in a prebuilt's 'Srcs' property to
      export files from a different path as the prebuilt's sources.
      
      This change also includes a refactoring that moves genrule/filegroup.go
      to android/filegroup.go so that FileGroupFactory is visible in
      prebuilt_test.go.
      
      Test: Test
      https://android-review.googlesource.com/c/platform/development/+/469159
      in clang-tools branch on Linux, Darwin.  Test regular build in
      aosp/master.
      
      Change-Id: I3ff6215ab2e62955f039fd1086c31f1bd50ebcf6
      955dc499
    • Anton Hansson's avatar
      62843237
    • Anton Hansson's avatar
      Migrate soong to use new sdk prebuilts. · f66efeb4
      Anton Hansson authored
      Make is moved over in aosp/661963.
      
      Bug: 77525052
      Test: make
      Change-Id: I04ea58964df3d4149ef09ab7ca9238336d338a06
      f66efeb4
  5. Apr 17, 2018
  6. Apr 16, 2018
    • Treehugger Robot's avatar
      a42770b1
    • Colin Cross's avatar
      Fix androidmk_test.go import ordering · fdb08402
      Colin Cross authored
      Test: m checkbuild
      Change-Id: I9fb94f22a157ffb9369eea071a867289c37cf026
      fdb08402
    • Colin Cross's avatar
      Add support for android_library modules · a97c5d3f
      Colin Cross authored
      Add support for compiling android_library modules into AARs,
      and refactor app support on top of it.
      
      Bug: 73724997
      Test: app_test.go
      Change-Id: I1dfac5fffe577c6680bc4709147b2061eb7d819c
      a97c5d3f
    • Colin Cross's avatar
      Merge changes I3ad2a356,I30955b6e,I1dc6fd99 · ad6cbf18
      Colin Cross authored
      * changes:
        Add more androidmk translations for android libraries
        Merge matching properties in bpfix
        Make bpfix not modify the input tree
      ad6cbf18
    • Colin Cross's avatar
      Fix module rename inside namespace · eafb10c2
      Colin Cross authored
      Rename was expecting fully qualified names, but context.go always
      passes it short names.
      
      Bug: 77922456
      Test: TestRename in namespace_test.go
      Change-Id: I552ff39fd8ed6ba6da4262925060b45104840ff7
      eafb10c2
    • Colin Cross's avatar
      Add more androidmk translations for android libraries · 2dee86d6
      Colin Cross authored
      Add support for translating LOCAL_MANIFEST_FILE, LOCAL_RESOURCE_DIR
      LOCAL_SHARED_ANDROID_LIBRARIES, and LOCAL_STATIC_ANDROID_LIBRARIES.
      
      Use the presence of non-empty LOCAL_RESOURCE_DIR,
      LOCAL_SHARED_ANDROID_LIBRARIES or LOCAL_STATIC_ANDROID_LIBRARIES
      to convert a java_library_static into an android_library module,
      and then squash LOCAL_SHARED_ANDROID_LIBRARIES into
      LOCAL_SHARED_LIBRARIES and LOCAL_STATIC_ANDROID_LIBRARIES into
      LOCAL_STATIC_LIBRARIES.
      
      Test: androidmk_test.go
      Change-Id: I3ad2a3561f69ebd097eca97cb170754d64e06123
      2dee86d6
    • Colin Cross's avatar
      Merge matching properties in bpfix · 9c55d237
      Colin Cross authored
      androidmk will start to generate multiple static_libs: properties
      in a single module, add a pass in bpfix to fix them up into a
      single property.
      
      Test: bpfix_test.go
      Change-Id: I30955b6efbb767c02ba77f2f18d44951ef094bad
      9c55d237
    • Colin Cross's avatar
      Make bpfix not modify the input tree · adee968a
      Colin Cross authored
      Make a new object called Fixer to hold the state of the tree, and
      make a copy of the input tree so the original doesn't get modified.
      
      Test: bpfix_test.go
      Change-Id: I1dc6fd99158c8b0e1db029df99e6cf72699a5e63
      adee968a
  7. Apr 13, 2018
    • Makoto Onuki's avatar
      Soong: add "java_genrule_host" · 8f9ab6a2
      Makoto Onuki authored
      Bug: 78030154
      Test: Tested with an internal test module.
      Change-Id: Ifaefb7cba2eb491b62fa3b398fee931ab667575f
      8f9ab6a2
    • Nan Zhang's avatar
      Add bool to control if we need generate stubs src files. · 853f420e
      Nan Zhang authored
      Some modules only need the documentation instead of the stubs.
      
      And fix a small issue for arg name passed to standard javadoc.
      
      Test: m -j dx-docs and check the build.ninja
      Bug: b/70351683
      Change-Id: Ic47c53db12db6f2632349e48c4a626a4f432f447
      853f420e
  8. Apr 12, 2018
    • Chih-Hung Hsieh's avatar
      Add USE_CLANG_LLD and use_clang_lld. · 02b4da53
      Chih-Hung Hsieh authored
      * USE_CLANG_LLD is unedefined in current builds.
      * When USE_CLANG_LLD is defined to 'true' or '1',
        use clang's lld instead of ld or ld.gold.
      * When lld is enabled:
        * ld-only flags are not passed to 'lld'.
        * location_packer is disabled.
        * Use new lld's --pack-dyn-relocs=android.
      * When lld does not work:
        * In Android.mk files use LOCAL_USE_CLANG_LLD := false.
        * In Android.bp files use use_clang_lld: false.
      * Only arm, arm64, x86, and x86_64_devices have LLD flags;
        all other hosts and targets do not call lld yet.
      
      Bug: 73768157
      Test: make checkbuild and boot
      Change-Id: I06b8a1e868a600997a7e70fe05c299d751d23d5f
      02b4da53
  9. Apr 11, 2018
Loading