summaryrefslogtreecommitdiffstats
path: root/core/shared_library_internal.mk
Commit message (Collapse)AuthorAgeFilesLines
* Add LOCAL_NO_LIBGCC.Ying Wang2015-07-161-0/+4
| | | | | | | | This can be used to compile independent libraries without the need for libgcc.a. Change-Id: I924200995569d9a978ddbaa6ec321d80734f1374 (cherry picked from commit 75011b2003733edc483a45d61f5cb1a23f64bfbf)
* Use prebuilt libclang_rt.profile.Dan Albert2015-04-011-0/+2
| | | | | Bug: 17574078 Change-Id: I4838cd5d125a0b2bf76aad2fdaef1ee3122687e8
* Make modules depend on their makefile.Dan Albert2014-11-111-3/+7
| | | | | | | | This should obviate much of the need for cleanspecs, and also make it unnecessary to continue adding LOCAL_ADDITIONAL_DEPENDENCIES for this sort of thing all over the tree. Change-Id: I97aa8fd280ae868a5f6364f8b7bf3c2fe235d6ce
* resolved conflicts for merge of 326f9450 to lmp-dev-plus-aospDan Albert2014-09-241-0/+2
|\ | | | | | | Change-Id: I66360da623a6e7ac04610c3252f24ed69f7e4b1e
| * Add option for generating coverage info.Dan Albert2014-09-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To enable building with coverage, the environment variable NATIVE_COVERAGE must be set to true. Set `LOCAL_NATIVE_COVERAGE := true` to generate coverage information for a given component. This is currently not supported for clang (b/17574078, b/17583330). If static library A is included in a binary B (dynamic or static executable, or shared library), and A is built with coverage information, B is required to link with libgcov.a. Since the make does not offer a good way to track this dependency, link libgcov.a even if LOCAL_NATIVE_COVERAGE is not set (but still guarded by NATIVE_COVERAGE). This ensures that all of the libgcov dependencies will always be resolved, and causes no change in the resulting binary if coverage is not used. Bug: 10134489 Change-Id: Id5a19f2c215e4be80e6eae27ecc19b582f2f6813
* | Update the FDO support:Dehao Chen2014-07-301-2/+0
|/ | | | | | | | * Explicitly check BUILD_FDO_INSTRUMENT and BUILD_FDO_OPTIMIZE with true * Remove unnecessary target_libgcov * Update the profile collection path on device so that most app can have write access Change-Id: I5c1915a12ea37b2cb3c76a27e7104e47ad636928
* Add -latomic to all target buildsAndrew Hsieh2014-05-291-0/+2
| | | | | | | | | | | | | Projects using stdatomic.h needs libatomic.a in case compiler can't expand all __atomic* intrinsics. eg, __atomic_is_lock_free in armeabi/mips. Adding libatomic.a globally makes more sense than adding "LOCAL_LDLIB += -latomic " in each project including <stdatomic.h>. Projects don't need atomic operations won't get redundant DT_NEEDED entry because libatomic.a is not a shared library. Change-Id: I81dbf524544c848e667e18ab5eeabff75b5063ef
* Rename my_ndk_version_root to my_ndk_sysroot; and _include and _libAndrew Hsieh2014-04-251-3/+3
| | | | | | | | | | prebuilts/ndk/current/platforms/android-19/arch-x86_64/usr/lib is renamed to usr/lib64 to be more consistent with rest of lib paths in x86_64 toolchain, which is multilib See https://android-review.googlesource.com/#/c/92441/ Change-Id: I4e59245505d0fa87ae3608e81e715ccfcecc5ec8
* Remove redundant my_target_global_ldflagsDmitriy Ivanov2014-04-011-5/+0
| | | | | | | * Fix: my_target_global_ldflags is defined in binary.mk so they effectivelly override previous definition Change-Id: I9c7d9bde82c3a6d25a94ae109fa71ecaa33640b0
* add support for LOCAL_MODULE_STEM_32 and LOCAL_MODULE_STEM_64Colin Cross2014-03-251-1/+1
| | | | | | | | | | Some executables will need to be built for both 32-bit and 64-bit. For linker/linker64, debuggerd/debuggerd64, and a few more, they will be installed in the same path (/system/bin), but with different filenames. Allow the module to specify LOCAL_MODULE_STEM_32 and LOCAL_MODULE_STEM_64 to name the two versions. Change-Id: I573e8678c7332245a064f31246be0a05f0a9e25f
* Fix prebuilt library dependency for multilib buildYing Wang2014-02-251-1/+1
| | | | | | | Also we don't need to include module_arch_supported.mk again, if we are currently substituting the source build with LOCAL_PREBUILT_MODULE_FILE. Change-Id: I444b0397d74c3153b398a050b762e49418062a86
* Refactor llvm_config.mk and support the 2nd archYing Wang2014-02-071-1/+1
| | | | | | | | | 1. Following the setup of gcc in build/core/combo/, we added the [HOST|TARGET]_<arch>.mk clang config files, and load only the configs needed by the current product. 2. Added support for the 2nd arch. Change-Id: I2a383418a9688a050b39492f8e489d40eeeb5f2d
* Set up rules to build shared libraries for TARGET_2ND_ARCHYing Wang2014-01-241-0/+75
The rules for the 2nd arch are set up in the second inclusion of shared_library_internal.mk. Intermediate fils of libfoo of the 2nd arch will be built into $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/SHARED_LIBRARIES/libfoo_intermediates/ and the built libfoo.so will be in $(PRODUCT_OUT)/obj_$(TARGET_2ND_ARCH)/lib. Bug: 11654773 Change-Id: I58bbe5a05a65f63bce6279131552f3792000716e