summaryrefslogtreecommitdiffstats
path: root/core/target_test_internal.mk
Commit message (Collapse)AuthorAgeFilesLines
* Remove logic for platform stlport gtest.Dan Albert2014-11-111-18/+3
| | | | | | | | | | | | Now that the platforms stlport linked gtest is gone, we don't need the logic for this any more. All platform tests will use libc++ (which has been renamed to libgtest without a suffix). Note that tests built with the NDK will still use stlport, but they will use the NDK's stlport, not the platform's. Bug: 15193147 Change-Id: Ifcb2489ed60c41e4ed028096b516c1ee643de907
* Make libc++ the default STL.Dan Albert2014-11-071-5/+4
| | | | | | | | | Previously, code defaulted to using libstdc++ (which was GNU libstdc++ on the host, or Bionic's "libstdc++" on the target). Now we default to libc++. The exception for this is when using mingw, because we cannot build libc++ for mingw. Change-Id: I68726fa26cdcb6263f17c838d3e859debd57fae1
* Fix detection of C++ STL for tests.Dan Albert2014-09-261-1/+1
| | | | | | | Target tests weren't approrpiately using the libc++ gtest for libc++_static, and the hosts tests were still using the old check. Change-Id: I13813d5f09673b144b2dfead93eb81cb4bae0e34
* Add option for generating coverage info.Dan Albert2014-09-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Move selection of C++ STL into the build system.Dan Albert2014-09-181-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Preparing for migration from stlport to libc++. STL selection is done with LOCAL_CXX_STL (valid values are default, none, libc++, libc++_static, stlport, stlport_static, bionic). The selection of the STL is as follows: if LOCAL_CXX_STL == 'default' ifdef LOCAL_SDK_VERSION Use whatever STL the other NDK options have selected. else Use bionic's libstdc++ for target, GNU libstdc++ for host. This is compatible with the existing build options. endif else if LOCAL_CXX_STL == 'stlport' Use stlport. else if LOCAL_CXX_STL == 'libc++' Use libc++. else if LOCAL_CXX_STL == '' Don't use any STL. endif endif Bug: 15193147 Change-Id: If712ba0ae7908d8147a69e29da5c453a183d6540
* More consistent use of 64-bit build variable.Ying Wang2014-07-081-2/+2
| | | | | | | | Set up TARGET_IS_64_BIT and HOST_IS_64_BIT early so we don't need 2 mechanisms to judge if it's 64-bit build; Remove the unnecessary 32-bit host variables. Change-Id: I08d6d4d9ea70f91135fe2ee05463fb9a0d1cee42
* Merge "build native tests for 32-bit and 64-bit"Ying Wang2014-06-091-2/+13
|\
| * build native tests for 32-bit and 64-bitColin Cross2014-03-261-2/+13
| | | | | | | | | | | | | | 32-bit tests will build into /data/nativetest 64-bit tests will build into /data/nativetest64 Change-Id: I31492c7d1273ba18bb2577fae150008a214c3bf4
* | Use libc++ versions of gtest libs when neededDan Albert2014-05-161-1/+1
| | | | | | | | Change-Id: Id8752ea946cbaa747dfa4fccf38d680dfeee5b45
* | Use libc++ versions of gtest libs when neededDan Albert2014-05-161-0/+4
| | | | | | | | Change-Id: I19aa58a83a9da680d441af5f3956a2fbdf18c4e4
* | Explicitly link libstdc++.a for static gtest executables.Ben Cheng2014-04-161-0/+1
|/ | | | Change-Id: I29e3a4036264acd00dfa3229c9d0fc52ee20830e
* Add library test makefile solutions.Christopher Ferris2014-02-051-0/+19
Change-Id: Ibc8df9b0e2342683158936bf011425780df8f02a