Skip to content
  1. Jul 09, 2018
    • Colin Cross's avatar
      Document build/soong/scripts/setup_go_workspace_for_soong.sh · aa070b42
      Colin Cross authored
      Test: none
      Change-Id: I507b7118bfc240166dced0cc26ab523ce56f68a2
      aa070b42
    • David Brazdil's avatar
      Add option to compile dex for a Java library · 17ef5635
      David Brazdil authored
      Currently Soong will only compile a Java library into dex if the
      library has device support and is installable. For our use case of
      inspecting the dex at build time this is not sufficient. Add a new
      "compile_dex" device property which forces the creation of a dex
      rule. In this case, the class jar remains the output file of the
      module.
      
      Bug: 79409988
      Test: on related CL
      Change-Id: Ia908a47148a03a0bdb0da4315cce6efc86c51865
      17ef5635
  2. Jul 07, 2018
  3. Jul 06, 2018
    • Dan Willemsen's avatar
      Ensure bpglob is built early · 5af1cbe7
      Dan Willemsen authored
      This matches the change to blueprint's blueprint_impl.bash:
      https://github.com/google/blueprint/pull/213
      
      It allows us to run bpglob during the two bootstrap phases, so we're
      never running minibp or the primary builder in a later phase than
      normal.
      
      Also removes the dependency on out/soong/build.ninja from the main
      phase, since it's never generated by the main phase anymore, and is
      tripping the dangling dependency checks.
      
      Bug: 73646380
      Test: m nothing
      Test: rm frameworks/base/core/java/android/content/pm/dex/ArtManager.java
      Test: m nothing   (soong re-runs)
      Change-Id: Ia3952d015ad6091ad5a841f555acda78c9390e84
      5af1cbe7
    • Steven Moreland's avatar
      aidl: -ninja -> --ninja · b468bca5
      Steven Moreland authored
      Bug: 110967839
      Test: AIDL's runtests.sh
      Change-Id: I49c0a2526b6d4083c927104a3e66017080000847
      b468bca5
  4. Jul 03, 2018
  5. Jun 30, 2018
  6. Jun 29, 2018
  7. Jun 28, 2018
  8. Jun 27, 2018
    • Ari Hausman-Cohen's avatar
      Add Product_is_iot to soong config. · 7805d1dd
      Ari Hausman-Cohen authored
      Some code needs to behave differently for Android Things
      systems. The Product_is_iot variable property can be used to
      determine if a build is for Android Things or not.
      
      Bug: 110494430
      Test: aosp_angler builds
      Change-Id: I902b438a334786adbd515188ad35e241d82e69fe
      7805d1dd
    • Pirama Arumuga Nainar's avatar
      Do not set entry-point for Windows · 20416532
      Pirama Arumuga Nainar authored
      Bug: http://b/62424007
      
      This breaks 64-bit Windows executables.  Probably due to the Clang
      migration, the entry-point need not be set even for 32-bit executables.
      
      Test: 32-bit and 64-bit aapt2_tests.exe and ziparchive-tests.exe can
      start.  (There are some failed tests, though).
      
      Change-Id: Id3a7d3d2802f6b671332afff4558840bdabddeb5
      20416532
  9. Jun 26, 2018
  10. Jun 25, 2018
    • Chih-Hung Hsieh's avatar
      Define CLANG_TIDY_UNKNOWN_CFLAGS for build/make. · ad47a27d
      Chih-Hung Hsieh authored
      Bug: 110538415
      Test: build with WITH_TIDY=1
      Change-Id: I6c5b5a0cb3ad3c2756bbae5e7c0234a0dafe5991
      ad47a27d
    • Nan Zhang's avatar
      Override javaVersion for Doclava when EXPERIMENTAL_USE_OPENJDK9=true · 7ca46785
      Nan Zhang authored
      Test: N/A
      Bug: 110786923
      Change-Id: I6d1f808e97aad2fe3206f52c8fc93c87b61fdb64
      7ca46785
    • Sundong Ahn's avatar
      Add stub_only_libs property · f043cf6b
      Sundong Ahn authored
      Java libraries are not included when a stub is built with
      java_sdk_library. However, we may need a java library when building
      stubs. For it, stub_only_libs property is added.
      
      Bug: 77577799
      Test: make -j
      Change-Id: I2223288e3a85ec7f0ccccdc1da31f8d46cbcbcc0
      f043cf6b
    • Sundong Ahn's avatar
      Add api_dirs property and use module name as prefix · 27eecb99
      Sundong Ahn authored
      The soong connect the prebuilt library according to LOCAL_SDK_VERSION.
      But some sdk libraries has diffrent version policy with
      LOCAL_SDK_VERSION. For this, we need to support direct link to the
      prebuilt library instead of creating a new LOCAL_XXX_SDK_VERSION. So,
      The base module name is used as the prefix for the prebuilt module name.
      
      Remove the empty file check to support the absence of a prebuilt
      library and add api_dirs property
      
      Bug:77577799
      Test: make -j
      Change-Id: I1086977d26e4ddfd62e290637126d44e1b248bac
      27eecb99
  11. Jun 23, 2018
    • Colin Cross's avatar
      soong_zip: set local header crc and size for symlinks · 297d9bce
      Colin Cross authored
      Getting a crc and size into the local header requires setting it
      before writing the payload, or using a streaming data header after
      the payload with the crc and size.  Stored (uncompressed) entries
      are not allowed to use a streaming data header.
      
      Symlinks are always stored uncompressed, so set the crc and size
      in the file header before writing the payload.
      
      Also set the mode to 0777 to match the behavior of zip.
      
      This relands I66c5d41f0a5b23b828d6a03a3790afedc5a97625 with fixes
      for the size and mode.
      
      Test: m checkbuild
      Test: zipdetails on zip with symlink created with soong_zip has same
            crc in local header and central header.
      Test: Compare zipdetails output of zip containing symlink created
            by soong_zip and by zip --symlinks -X.
      Bug: 110716403
      Change-Id: Iec0bc9056a0d9cdab76f015844aca9c711e72e5b
      297d9bce
    • Colin Cross's avatar
    • Colin Cross's avatar
      Revert "soong_zip: set local header crc for symlinks" · 5aff0656
      Colin Cross authored
      This reverts commit b88c4dfb.
      
      This made it worse, now that the local header crc matches the global
      header, unzip will attempt to unzip the symlink.  However, the local
      header size is still incorrect, so it produces an empty file instead
      of a symlink.
      
      Bug: 110716403
      Change-Id: Ifd9aabc04d180b7ead4aec8566c151206b6b7c57
      5aff0656
    • Colin Cross's avatar
      cacbfd8f
    • Colin Cross's avatar
      soong_zip: set local header crc for symlinks · b88c4dfb
      Colin Cross authored
      Getting a crc into the local header requires setting it before writing
      the payload, or using a streaming data header after the payload with
      the crc.  Stored (uncompressed) entries are not allowed to use a
      streaming data header.
      
      Symlinks are always stored uncompressed, so set the crc in the file
      header before writing the payload.
      
      Test: m checkbuild
      Test: zipdetails on zip with symlink created with soong_zip has same
            crc in local header and central header.
      Bug: 110716403
      Change-Id: I66c5d41f0a5b23b828d6a03a3790afedc5a97625
      b88c4dfb
    • Treehugger Robot's avatar
  12. Jun 22, 2018
    • Colin Cross's avatar
      Use WalkDeps instead of VisitDepsDepthFirst · 6b75360c
      Colin Cross authored
      VisitDepsDepthFirst is almost never correct, as it can't query
      dependency tags of multiple dependencies between the same two modules.
      Replace VisitDepsDepthFirst with WalkDeps in sanitize.go and
      python.go.  Also verify the dependency tag before continuing to
      recurse to ensure that they don't recurse through genrules and into
      unrelated modules.
      
      Test: m checkbuild
      Change-Id: I2f7560126f56b51a40ec39dfbdcc18b5891489f7
      6b75360c
    • Dan Willemsen's avatar
      Switch implicit rules into errors · 2bc456ef
      Dan Willemsen authored
      There are no users of these, other than the PDK, which is already
      exempted.
      
      Test: m nothing
      Test: Check for warnings in downstream build_test logs
      Test: Check for warnings in last two days of continuous build logs
      Change-Id: I7c7d0068e928e591355c39d22635af86b8f43f1b
      2bc456ef
Loading