summaryrefslogtreecommitdiffstats
path: root/core/binary.mk
Commit message (Collapse)AuthorAgeFilesLines
* build: support LOCAL_*_32 and LOCAL_*_64Colin Cross2014-01-291-4/+5
| | | | | | | | | | | | | | | Support the following new variables based on whether the current multilib target is 32 bit or 64 bit: LOCAL_CFLAGS_32 LOCAL_CFLAGS_64 LOCAL_LDFLAGS_32 LOCAL_LDFLAGS_64 LOCAL_ASFLAGS_32 LOCAL_ASFLAGS_64 LOCAL_C_INCLUDES_32 LOCAL_C_INCLUDES_64 Change-Id: Ia868d56dff114be301bf8297eec768675f186927
* Add support for TARGET_GLOBAL_UNSUPPORTED_CFLAGSColin Cross2014-01-271-0/+1
| | | | | | | | | | | To ease the transition between toolchains, allow a target to specify a list of cflags that the toolchain does not support. These will be filtered out of the cflags provided by the module. Add TARGET_GLOBAL_UNSUPPORTED_CFLAGS := -fstack-protector for the aarch64 toolchain, it does not yet suport -fstack-protector. Change-Id: I168d0c6f131326fad305ec86fad46e6a3e03295a
* add new gen/ directory for generated sourcesColin Cross2014-01-271-1/+8
| | | | | | | | | | | | Allow modules to generate source into $OUT/gen, which will then be copied into $OUT/obj and $OUT/obj_$(TARGET_2ND_ARCH) as necessary. This allows a single build rule invocation that includes generated source to build for the first and second architectures. Modules will need to change calls to local-intermediates-dir into local-generated-sources-dir. Change-Id: I62504bad9454b3d9fde7b84ab9f0a487a2ecf0bf
* Support arch-specific LOCAL_C_INCLUDES.Ying Wang2014-01-271-1/+1
| | | | | Bug: 11654773 Change-Id: I89c7ce7ff8bea15cb81f9cd9b0188b54beed3422
* build: use correct arm vs thumb arguments for 2nd arch buildsColin Cross2014-01-241-1/+1
| | | | | | | Set arm_objects_mode and normal_objects_mode when building a module for arm when it is the 2nd arch. Change-Id: I5f7df519b6e1dde6cbf92d106681f07a58e1f1f2
* Support arch-specific LOCAL_ variablesYing Wang2014-01-241-15/+16
| | | | | | | | | | | | With those variables, you can set up different values for TARGET_ARCH and TARGET_2ND_ARCH. Also fixed a couple of variables. Bug: 11654773 Change-Id: I4c7684a562cd5877d18f67d4f848b8df07d0103b Conflicts: core/base_rules.mk
* Replace all references to LOCAL_GENERATED_SOURCES with my_generated_sourcesYing Wang2014-01-241-6/+6
| | | | | | | Now the RS generated sources are only appended to my_generated_sources. Bug: 11654773 Change-Id: If8dbf3c08fed0b9945dd32b8c809331c17c4bc85
* Set up rules to build static libraries for TARGET_2ND_ARCHYing Wang2014-01-241-73/+91
| | | | | | | | | | The rules for the 2nd arch are set up in the second inclusion of static_library_internal.mk. libfoo of the 2nd arch will be built into $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/libfoo_intermediates/libfoo.a. Bug: 11654773 Change-Id: I1d92733968fc442e9225b4df5bd1b551a81d89f7
* Remove aprof support from the build system.Ying Wang2014-01-141-9/+0
| | | | | | This reverts the commit 70dc3e1d. Change-Id: I480b005579805d2608d05dac41e32bb44642e813
* Define PRIVATE_TARGET_ variables for only target modules.Ying Wang2014-01-091-1/+3
| | | | Change-Id: I12c54bfffd9acb78a61d1032a087a0edaf3bf12c
* Allow clang to build host binaries.Logan Chien2014-01-071-9/+37
| | | | Change-Id: I7e4f9dc6f69a97cfefdfa2ed55c5d7b8ad496da7
* resolved conflicts for merge of 2b5d2c55 to klp-dev-plus-aospAndrew Hsieh2013-09-101-0/+12
|\ | | | | | | Change-Id: Icd9d5eff3f9acba042c100f694309f902c9d56cf
| * Add "WITH_STATIC_ANALYZER=1 m/mm/mmm/mma/mmma ..."Andrew Hsieh2013-09-101-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The new option WITH_STATIC_ANALYZER=1 instructs build system to run static analyzer via "clang --analyze" on a successful build. If analyzer finds any issue, instruction to open report is displayed. See http://clang-analyzer.llvm.org/scan-build.html for details. WITH_STATIC_ANALYZER trumps WITH_SYNTAX_CHECK if both exist. Project use lots of GCC extensions (eg. nested function) not supported by clang may opt out by adding LOCAL_NO_STATIC_ANALYZER:=true Change-Id: I9970560560bd52ce5f0fd7129c3488629627c735
* | resolved conflicts for merge of fcdf653a to klp-dev-plus-aospAndrew Hsieh2013-09-041-0/+16
|\ \ | |/ | | | | Change-Id: I1d831bbb4649b2ddc89cdfb71e3b76712bc6469e
| * Merge "Add "WITH_SYNTAX_CHECK=1 make ...""Andrew Hsieh2013-09-041-0/+16
| |\
| | * Add "WITH_SYNTAX_CHECK=1 make ..."Andrew Hsieh2013-09-041-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new option WITH_SYNTAX_CHECK=1 instructs build system to invoke "clang -fsyntax-only" to utilize clang's better diagnostics before calling LOCAL_CC/LOCAL_CXX for code generation. The compilation time is slightly longer, and the generated object file should be the same as w/o WITH_SYNTAX_CHECK Project use lots of GCC extensions (eg. nested function) not supported by clang may opt out by adding LOCAL_NO_SYNTAX_CHECK:=true Change-Id: I5689586788ef049bd967364f71f31f1e359bd121
* | | am 25f39b2f: am 62cd88d0: Merge "FDO: Only support locally"Ying Wang2013-09-041-1/+1
|\ \ \ | |/ / | | | | | | | | | * commit '25f39b2fbe9dee8ec6c680569c22c71fce9e595c': FDO: Only support locally
| * | FDO: Only support locallysynergydev2013-09-031-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The issues: - The size increase from utilizing FDO is quite large while utilizing runtime profiles in build. - By default, FDO is utilized globally if the target arch variant profiles exist. - Not all modules can show statistical significance in performance comparison, yet still suffer the size increase. The solution: - Only enable FDO locally with LOCAL_FDO_SUPPORT for modules which may benefit enough to justify the size tradeoff. Solution notes: - I've noted statistical significance in libwebcore and libskia thus far from utilizing FDO. - Analysis included sunspider, drawcanvas benchmarks, as well as gooda analysis on both arm and x86 - To support runtime profile generation in modules which have LOCAL_FDO_SUPPORT specified, BUILD_FDO_INSTRUMENTATION is still used. Otherwise, if the target arch variant profiles exist, FDO is utilized for specified modules. Change-Id: I7e95266943ff47c7d82b02e6200fd09911d0bb57
* | am 4f30a507: Merge "Fix handling of .o files in LOCAL_GENERATED_SOURCES." ↵Torne (Richard Coles)2013-08-301-6/+10
|\ \ | | | | | | | | | | | | | | | | | | into klp-dev * commit '4f30a5076bea324b8224e4af4cfcf291f787ed4c': Fix handling of .o files in LOCAL_GENERATED_SOURCES.
| * | Fix handling of .o files in LOCAL_GENERATED_SOURCES.Torne (Richard Coles)2013-08-291-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rule-generated .o files (in gen_o_objects) were being given a dependency on everything in LOCAL_GENERATED_SOURCES (except for other .o files); unfortunately this can still create cycles in cases where there are explicit dependencies between entries in LOCAL_GENERATED_SOURCES. Instead, make handling of generated .o files consistent with other generated files (which don't automatically get any dependencies on other generated files) by excluding them from the target side of the rule. Change-Id: I3fb5652dc3d85012c179a03b81887d16a85ab3bf
* | | am 3208b615: am fc8b6338: resolved conflicts for merge of d65a7da3 to ↵Ying Wang2013-08-151-8/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | jb-mr2-dev-plus-aosp * commit '3208b615c5cde2b682c3bbbcd2bb064b14b57489': No need to filter out AndroidConfig.h for unbundled build
| * | am fc8b6338: resolved conflicts for merge of d65a7da3 to jb-mr2-dev-plus-aospYing Wang2013-08-151-8/+4
| |\ \ | | | | | | | | | | | | | | | | * commit 'fc8b6338510690f1f87c57b9d9c470e25fc48bcd': No need to filter out AndroidConfig.h for unbundled build
| | * | No need to filter out AndroidConfig.h for unbundled buildYing Wang2013-08-151-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | for now we have all AndroidConfig.hs in the build project. Change-Id: Id713fecba1378fad81688f5937f61c779b618ac2
* | | | am 285045bd: Support for LOCAL_HAL_STATIC_LIBRARIESYing Wang2013-08-131-0/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '285045bd83548196aa3695423c6cd500ebe6d6c1': Support for LOCAL_HAL_STATIC_LIBRARIES
| * | | Support for LOCAL_HAL_STATIC_LIBRARIESYing Wang2013-08-131-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now you can have a board config variable BOARD_HAL_STATIC_LIBRARIES, which is a list of board-specific HAL static library names with pattern "lib<library_name>.<board_specific_suffix>". LOCAL_HAL_STATIC_LIBRARIES is a list of "lib<library_name>" and any matched BOARD_HAL_STATIC_LIBRARIES will be added to the LOCAL_STATIC_LIBRARIES; if no match is found, lib<library_name>.default will be used. Bug: 10262105 Change-Id: Ic89d8d417d1dd65a227e4187a157fd3b77c4af34
* | | | am 2e45116d: am 515e0465: Merge "FDO: do not support host modules"Ying Wang2013-08-091-3/+5
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| * commit '2e45116d3a9c1ab055dd7a6a93bb4ab79414c081': FDO: do not support host modules
| * | FDO: do not support host modulessynergydev2013-08-051-3/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: If built with BUILD_FDO_INSTRUMENT alone, host modules will fail at runtime (during build) due to failing to create /data in most standard unix user permission cases. If the user does have full permission to /, /data/profile/ will be created and profiles will be generated there. Any file generation in the Android Build System should be kept to $OUT. This commit fixes this bug. Test Plan: Build with BUILD_FDO_INSTRUMENT without additional configuration, and host modules will no longer generate profiles at their runtime.
* | Add support for WITHOUT_CLANGMike Lockwood2013-06-141-0/+4
|/ | | | Change-Id: I12e776e44c69649bca34c35eff2ee7c75cfe62cd
* Do vendor check on modules installed by LOCAL_SHARED_LIBRARIESYing Wang2013-04-151-1/+1
| | | | | | | | | Since commit 6c86a1 we have split LOCAL_SHARED_LIBRARIES out of LOCAL_REQUIRED_MODULES and the vendor check does no longer cover the installed modules introduced by LOCAL_SHARED_LIBRARIES. This change brings back the coverage. Change-Id: Ie78692e48f173a3350792eb2fee8127ff9433caa
* Get rid of the liblog hack.Ying Wang2013-04-101-26/+0
| | | | | Bug: 8580410 Change-Id: I3ece860673eb52a2db1421db4492c9b1807dda6e
* Revert "Get rid of the liblog hack."Ying Wang2013-04-101-0/+26
| | | | | | This reverts commit 7636578729ffcd02bfb5158db884f559a52d8905 Change-Id: I32f2acce5f99cb97eae986dfeba6d5d25378aefa
* Get rid of the liblog hack.Ying Wang2013-04-091-26/+0
| | | | | Bug: 8580410 Change-Id: I4b437d10522ee66c7883faacfaf7e30abede394c
* Revert "Add liblog"Ying Wang2013-04-101-0/+26
| | | | | | This reverts commit 8722580d90840352883a84d1ca882e50220f3959 Change-Id: Iafdbb7f540a53ddc9dc2e21c0afddb62c44c4af8
* Add liblogYing Wang2013-04-091-26/+0
| | | | | Bug: 8580410 Change-Id: I45e17b786b8d221a071b5de2432bb1367e245fb4
* Support build rules which generate .o files.Torne (Richard Coles)2013-03-051-2/+11
| | | | | | | | | | | | webviewchromium has some build rules which use a custom tool to create .o files from other input (i.e. they are not prebuilt and so can't be included in LOCAL_PREBUILT_OBJ_FILES). Support adding .o files to LOCAL_GENERATED_SOURCES and doing the right thing with them (including them in the static/dynamic library or executable being built). Bug: 7714333 Change-Id: I3b1d29eeff30aebeafe33398f9bef2eb6972d997
* Untwist the target/host shared library dependencies.Ying Wang2013-02-221-3/+9
| | | | | | | | Before this, if there are duplicate module names in both the host and target spaces, LOCAL_SHARED_LIBRARIES results in mixed dependencies. Bug: 7026946 Change-Id: I5407e3d078a8903c94978cc6d3e256851c52340f
* Order-only deps on LOCAL_C/CXX and BCC_COMPATYing Wang2013-02-201-11/+20
| | | | | | | So if the host binaries are updated, we don't run the rules again. Bug: 8234097 Change-Id: I6c888d2b3ae39db1f91411da630ac098273f139d
* Fix libcompiler-rt. Use the official name libcompiler_rt.Shih-wei Liao2013-02-071-1/+1
| | | | | | Rename libcompiler-rt to libcompiler_rt. Change-Id: I62e77d4dc83458bc238bd8320b70ddb7efe0dd12
* Add support for RS in C++.Tim Murray2012-11-011-0/+57
| | | | Change-Id: Ib8008d6301584bd0a2cd91c4c1294e0df8ac3b73
* am 86e2fd92: am daf5e22d: Add new embedded target for a super minimal ↵Mike Lockwood2012-10-261-1/+1
|\ | | | | | | | | | | | | android build * commit '86e2fd9215faaffed47ab0373b2955d9a1892113': Add new embedded target for a super minimal android build
| * Add new embedded target for a super minimal android buildMike Lockwood2012-10-251-1/+1
| | | | | | | | | | | | Remove obsolete BUILD_TINY_ANDROID Change-Id: Ic0f3a5b3250ea80529f5099653068f118a13b12e
| * Support to build executables against the NDKYing Wang2012-10-081-4/+0
| | | | | | | | | | | | | | | | Use "LOCAL_SDK_VERSION := <number>" to build against the NDK when you include $(BUILD_EXECUTABLE). Bug: 7170098 Change-Id: I4cebeae3355e79a4d2f2f5549ef0613ced77e3f0
* | am 318330dd: am 9acbbf12: am 76a6dc3a: Fix common typo in comments, warning ↵Ian Rogers2012-10-011-2/+2
|\ \ | |/ | | | | | | | | | | and error messages. * commit '318330dd920977733f20eeda338d3c36892373f6': Fix common typo in comments, warning and error messages.
| * Fix common typo in comments, warning and error messages.Ian Rogers2012-10-011-2/+2
| | | | | | | | | | | | s/can not/cannot/g Change-Id: I1bac31157732666deb46f6f20389ff539977ffb9
* | Support to build executables against the NDKYing Wang2012-09-251-4/+0
| | | | | | | | | | | | | | | | Use "LOCAL_SDK_VERSION := <number>" to build against the NDK when you include $(BUILD_EXECUTABLE). Bug: 7170098 Change-Id: I4cebeae3355e79a4d2f2f5549ef0613ced77e3f0
* | am 88ed4fb1: am 732b2ba7: Merge "Don\'t include ↵Ying Wang2012-08-161-15/+13
|\ \ | |/ | | | | | | | | | | system/core/include/arch/<arch>/Android.mk for apps-only build." into jb-mr1-dev * commit '88ed4fb1f3456d6fec4df87a56d66a5c58e2f0d8': Don't include system/core/include/arch/<arch>/Android.mk for apps-only build.
| * Don't include system/core/include/arch/<arch>/Android.mk for apps-only build.Ying Wang2012-08-161-15/+13
| | | | | | | | | | Bug: 6994483 Change-Id: I76c4d96264cf94a79d59fdeb52bb37c07a9458dd
| * Force out LOCAL_NDK_VERSION.Ying Wang2012-08-141-0/+3
| | | | | | | | Change-Id: I0a9f1a630ef2019bed38d420525eac9510b09798
| * Retire LOCAL_NDK_VERSION.Ying Wang2012-08-141-26/+13
| | | | | | | | | | | | | | | | | | | | We are now unifying the NDK versions of unbundled native code to always use the latest NDK. We don't need the variable LOCAL_NDK_VERSION now. To build native code with NDK, you need set just LOCAL_SDK_VERSION. Bug: 6932421 Change-Id: I86f05a264249cda6bae97b4b1616f03700cd9dfa
| * Adopt the new prebuilts/ndk/<number> paths.Ying Wang2012-08-141-2/+2
| | | | | | | | | | Bug: 6932421 Change-Id: Iba7200aacef2201001f92c6ffa020881f0b528ea