Commit Graph

1756 Commits

Author SHA1 Message Date
Colin Cross 1a01e83725 Document examples of conditionals in go
Test: None
Change-Id: Ie2ad921974dc4ff82a3c6308736830cacfebf806
2017-01-13 18:07:01 -08:00
Colin Cross 708c424c57 Allow genrules to reference generated sources
Call ExtractSourceDeps on genrule srcs properties.

Bug: 34283327
Test: no change to build.ninja
Change-Id: I934a418f32d4c94400728579543ca5c910bf7dfc
2017-01-13 18:06:58 -08:00
Jack He 8cc714313c Add Android.bp variables to the soong build parser
* BtConfigIncludeDir: BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR
* BtHcilpIncluded: BOARD_BLUETOOTH_BDROID_HCILP_INCLUDED
* BtHciUseMct: BLUETOOTH_HCI_USE_MCT

Bug: 32958753
Test: Code compilation, no user visible effects

Change-Id: I0dc53172ee823e4e0fa69749e1297713796538cf
2017-01-11 16:07:44 -08:00
Tri Vo 9b165dd015 Add test/vts-testcase/* to root.bp
Test: make vts
Change-Id: I863d30344c67e11429009be5ea99bc4e592bcb15
2017-01-07 00:19:00 +00:00
Treehugger Robot 59bed87517 Merge "Allow `unversioned_until: "current"`." 2017-01-06 05:14:38 +00:00
Dan Albert 022e7a3839 Allow `unversioned_until: "current"`.
Since most system libraries aren't actually versioned yet, we
shouldn't be building the stub libraries with version info just yet.
Setting `unversioned_until: "current"` will not use the version
script for anything but android-current (this way when the version
script is applied, we'll immediately catch it if they don't match).

Test: Updated frameworks/wilhelp to use this, make ndk
Bug: https://github.com/android-ndk/ndk/issues/278
Change-Id: I0dab7fd21bb0f063c39368d37feaa3f822e908ce
2017-01-05 15:49:09 -08:00
Treehugger Robot 8465094252 Merge "Add development/*/Android.bp." 2017-01-05 03:30:45 +00:00
Logan Chien 86b87ed270 Add development/*/Android.bp.
This commit replace development/ndk with development/* so that soong
will load Android.bp from development/vndk as well.

Test: lunch aosp_arm64-eng && make native
Change-Id: I849647f68b2ce90fd598b1b314b492c7945dc2df
2017-01-04 18:46:18 +08:00
Dan Albert 98dbb3bc2d Add unversioned_until to ndk_library.
This defaults to the value of first_version, and should almost never
be used. This is only needed to work around platform bugs like
https://github.com/android-ndk/ndk/issues/265.

Test: Set `unversioned_until: "24"` for libGLESv3.ndk, readelf on the
      android-23 and android-24 outputs to check for version info.
Bug: https://github.com/android-ndk/ndk/issues/265

Change-Id: Ie44b170daad692fdc98e7d7c5f10f9077930b8a9
2017-01-03 15:16:29 -08:00
Dan Albert ae452ccb7f Support versioned=%d at the section level.
Test: nose2
Bug: https://github.com/android-ndk/ndk/issues/265
Change-Id: I4c22cb8069f41861613ecf01f7e1adbe1d3118a9
2017-01-03 14:27:41 -08:00
Dan Willemsen 3340d6091c Allow disabling the named test directory for cc_test
Some external test suites (LTP in this case), have their own expected
layout, and don't fit well with our
/data/nativetest/<testname>/<testname> layout, nor do they work with
test_per_src.

So allow setting no_named_install_directory along with
relative_module_path to specify a custom test path:

  no_named_install_directory: true,
  relative_module_path: "ltp/testcases/bin",

Test: Convert LTP
Change-Id: Ib002c058674e8b960a4fdc3af1a25c8bcaeb1d63
2016-12-27 14:40:40 -08:00
Steven Moreland b527d5dfbe Revert "Revert "root.bp: Add vendor/*/*""
This reverts commit b3aaaea54b.

Change-Id: I8ff4424f983b259fc1c1938350aa6299f1c3f0c3
2016-12-20 20:38:15 +00:00
Treehugger Robot cf767e7c9d Merge "root.bp: Use system/*" 2016-12-20 20:25:09 +00:00
Treehugger Robot 5c8b8c6d6e Merge "Do not duplicate arch properties when cpu variant == arch variant" 2016-12-20 20:01:38 +00:00
Dan Willemsen f6a4682767 root.bp: Use system/*
Test: Soong's build.ninja identical before/after (except GlobRules)
Change-Id: I2fcdcd77083cbb49dc6b20a169964558510d91dc
2016-12-20 10:57:30 -08:00
Hiroshi Yamauchi 6e2557fa88 Merge "Add ArtUseReadBarrier to ProductVariables." 2016-12-20 18:56:20 +00:00
Colin Cross 0801633173 Do not duplicate arch properties when cpu variant == arch variant
build/make/board/generic_mips/BoardConfig.mk sets
TARGET_CPU_VARIANT := TARGET_ARCH_VARIANT, which can cause the same
variant-specific properties to be applied twice.

Test: lunch aosp_mips-eng && mmma -j external/skia TARGET_ARCH_VARIANT=mips32r2dspr2-fp
Change-Id: Ie4abe804f8ce898bf89664ae749b9bc8ac3e649f
2016-12-20 09:53:14 -08:00
Hiroshi Yamauchi e2a106353f Add ArtUseReadBarrier to ProductVariables.
Bug: 33492005
Test: top-level angler build.
Change-Id: Ib04284bac923a143038655d495bcbacaabf61440
2016-12-19 15:31:32 -08:00
Colin Cross c7ebf44d65 Merge "Revert "root.bp: Add vendor/*/*"" 2016-12-19 20:32:44 +00:00
Colin Cross b3aaaea54b Revert "root.bp: Add vendor/*/*"
This reverts commit 11234b012e.

Breaks builds that have a broken symlink at vendor/*/*, which is sometimes seen in a .git directory.

Change-Id: I17041ff582d10e3f7c3fb66f20e113a9f836de45
2016-12-19 20:30:43 +00:00
Treehugger Robot 3b6dc6b56d Merge "root.bp: Add vendor/*/*" 2016-12-19 19:29:43 +00:00
Colin Cross 068e0feace Support filegroups
filegroup is a module that contains a list of files, and can be used
to export files across package boundaries.  filegroups (and genrules)
can be referenced from srcs properties of other modules using the
syntax ":module".

Test: m -j
Change-Id: I3d6fc4819c0b4225b474e0ad42f0d947f55a5961
2016-12-17 16:34:03 +00:00
Steven Moreland 11234b012e root.bp: Add vendor/*/*
Vendors must be able to use Android.bp files without changing root.bp.

Bug: 33672964
Test: compiles
Change-Id: I3b1d0d530d700c96ab1404b31166f10e834a1952
2016-12-16 16:40:43 -08:00
Colin Cross 35e3972068 Remove frameworks/base/include from the global include path
It is empty now.

Bug: 33630870
Test: m -j native
Change-Id: I8f41b56594241aced0f874af2fa73207b51ff8d6
2016-12-16 08:42:35 -08:00
Colin Cross 32ec36c631 Only export exported header libs
Test: m -j native
Change-Id: Ia0e5b28495e049ba8037884d2c498a1b59012bbe
2016-12-15 07:40:13 -08:00
Treehugger Robot 1bd40ba84b Merge "Export LLVM_RELEASE_VERSION" 2016-12-15 07:19:03 +00:00
Treehugger Robot 41e6002483 Merge "Move frameworks/native/opengl/include from -isystem to -I" 2016-12-15 07:12:24 +00:00
Dan Willemsen 100911909c Export LLVM_RELEASE_VERSION
Test: m -j libc; check out/soong/make_vars-*.mk
Change-Id: Ic29407d8b2ecc69f8d95102bca81bec3f0c5012b
2016-12-14 16:26:48 -08:00
Colin Cross 14e8dd73d0 Move frameworks/native/opengl/include from -isystem to -I
-isystem hides all warnings.  The warnings in
frameworks/native/opengl/include have been fixed, move it from
-isystem to -I.

Test: m -j native
Bug: 31751828

Change-Id: If182ab5664e22f0cfd5be8cb1d0309d07dc85ceb
2016-12-14 11:13:16 -08:00
Colin Cross 37047f1c7e Pass DepsContext to dependency methods
Pass a DepsContext that embeds android.BottomUpMutatorContext
instead of android.BaseContext so that dependency methods can
directly add dependencies.

Test: m -j
Change-Id: Id4c157975d3d6f03efd99785d217bef486a76139
2016-12-13 17:32:29 -08:00
Colin Cross 5950f3827c Support explicit header-only libraries
To date we have been using static libraries with no source files as
header-only libraries.  Switch to using header_libs to make the user's
expectations clear, in case we need to differentiate the semantics of
static libraries and header-only libraries when we enable transitive
static library dependencies.

Test: mma -j external/llvm
Change-Id: I3ce16df11076b637bd192880e86ec9027738b9e7
2016-12-13 15:03:42 -08:00
Colin Cross ab3b7323c4 Remove boolean arguments from NewLibrary()
NewLibrary is going to be used for header only libraries.  Instead
of adding more boolean arguments, replace the existing ones with
BuildOnlyStatic and BuildOnlyShared calls on the libraryDecorator
returned by NewLibrary.

Test: m -j, compare build.ninja
Change-Id: Id390b66cbf2a5f0932b32f40a5e18eb9e3852ee7
2016-12-13 14:50:51 -08:00
Treehugger Robot 3b72295e02 Merge "Allow disabled dependencies when SOONG_ALLOW_MISSING_DEPENDENCIES is set" 2016-12-13 22:30:22 +00:00
Colin Cross a8f5e9a8b2 Allow disabled dependencies when SOONG_ALLOW_MISSING_DEPENDENCIES is set
Push the "depens on a disabled module" dependency to runtime when
SOONG_ALLOW_MISSING_DEPENDENCIES is set so that subsets of the tree
can build when some modules are disabled.

Test: external/clang/build.py on llvm branch
Change-Id: I47e4f41d04aa3df173757f03a0c581b0bafb93f0
2016-12-13 12:53:47 -08:00
Zhuoyao Zhang 14ed26d6cd Add test/vts into soong build target.
Bug: 31930023
Test: make vts
Change-Id: Ibd3ed5e56a2ce925d509dfd95a00e3961a433850
(cherry picked from commit b003d0537f)
2016-12-12 14:28:34 -08:00
Colin Cross bb2e2b7d7f Support arm_on_x86 properties
Allow Android.bp files to set properties when an x86 device supports
arm abis.

Test: lunch aosp_fugu-userdebug && mmma -j frameworks/compile/libbcc
Change-Id: Ic142a3f93175924a826dea9908b2e5183a486184
2016-12-08 17:27:25 -08:00
Colin Cross 1d03711827 Add frameworks/compile/* to root Android.bp
Test: mmma -j frameworks/compile/libbcc
Change-Id: I114a1b97e8b3cff98073abf621750a1300110f54
2016-12-08 09:47:27 -08:00
Colin Cross 6bc59ef731 Support eng product variable
The eng product variable will be true for builds where
TARGET_BUILD_VARIANT==eng.

Test: mmma -j frameworks/compile/libbcc
Change-Id: I808129740643495370bea64df3fe5bcf01eb9915
2016-12-08 09:46:35 -08:00
Colin Cross be360ae4c1 Permit allow_undefined_symbols inside arch blocks
Renderscript builds need to allow undefined symbols only for linux
host builds.

Test: mmma -j frameworks/compile/libbcc
Change-Id: Ieb83fc13fed16ae386261e0a1855fdd9c4fdf9bd
2016-12-08 09:45:21 -08:00
Colin Cross 989c66e370 Use toolchain to get binary extension for symlinks
Get the binary extension directly from the toolchain instead of
computing it from the target.

Test: mmma -j external/clang
Change-Id: Ib181bc60d0617ad50529791e7b9fc61268376819
2016-12-08 09:44:58 -08:00
Colin Cross 9b09f248d8 Install symlinks with same suffix and extension as installed file
Move symlink installation into the binaryDecorator so that it can
access the suffix and extension when installing symlinks.  Also
consolidates the symlink and symlink_preferred_arch handling.

Test: m -j clang, ls -l out/host/windows-x86/bin/clang++.exe
Change-Id: I1204afb71fac87b276bd6b625b52ee21274855a0
2016-12-07 17:35:37 -08:00
Colin Cross 8cc1cb68cd Merge "Always check tidy properties"
am: 394cf47ac4

Change-Id: Ibdcf53abc01ec0533932059b2e5070fd5d9f1139
2016-12-06 19:37:54 +00:00
Treehugger Robot 394cf47ac4 Merge "Always check tidy properties" 2016-12-06 19:32:29 +00:00
Colin Cross 5eb6315022 Merge "Fix mac build"
am: b278a58325

Change-Id: I075c6fb3e670e7de56d47a7ecc708a12229c9219
2016-12-06 04:45:05 +00:00
Treehugger Robot b278a58325 Merge "Fix mac build" 2016-12-06 04:39:01 +00:00
Dan Willemsen 8c6502017d Merge changes from topic 'proprietary-soong'
am: 503f8b0262

Change-Id: I5a822ee170e675e8ac03fa8627056ea55d9b2a18
2016-12-06 03:32:58 +00:00
Dan Willemsen 96a3ccc765 Support system/vendor for devices without a vendor partition
am: 4353bc4422

Change-Id: I102818637debd903ff6b6b6c2045cf5714c27f24
2016-12-06 03:32:09 +00:00
Dan Willemsen dbd80c2181 Import/Export LOCAL_PROPRIETARY_MODULE
am: 7ed1ae3fa4

Change-Id: Ibf11c1b01680fad8c4c334d52cfb938217c9dbdc
2016-12-06 03:32:07 +00:00
Treehugger Robot 503f8b0262 Merge changes from topic 'proprietary-soong'
* changes:
  Support system/vendor for devices without a vendor partition
  Import/Export LOCAL_PROPRIETARY_MODULE
2016-12-06 03:27:01 +00:00
Colin Cross 7a7cf97597 Fix mac build
Darwin doesn't support --start-group/--end-group, and groups
libraries anyways.

Test: m -j
Change-Id: I0fdbe24973cad3cd84164cdfeced2507a4c6ee91
2016-12-06 02:52:43 +00:00