• cjhopman's avatar
    Make base_unittests_apk actually work · e65ead8f
    cjhopman authored
    This changes the "test" template to create a shared_library (instead of
    an executable) on Android. After this, we can actually run
    base_unittests with
    `build/android/test_runner.py gtest -s base_unnittests`
    as normal (though may need to CHROMIUM_OUT_DIR and BUILDTYPE as
    appropriate).
    
    This requires adding the following targets:
    
    //testing/android:native_test_native_code
    //testing/android:native_test_util
    //testing/android:native_test_jni_headers
    //tools/android/md5sum:md5sum
    //tools/android/md5sum:md5sum_bin
    //tools/android/md5sum:md5sum_prepare_dist
    //tools/android/md5sum:md5sum_copy_host
    
    Also, makes it so that native executables are stripped (just like shared
    libraries). Adds a simple create_native_execuatable_dist template that
    sets up a dist directory for the executable (see
    build/android/gyp/native_app_dependencies.gyp).
    
    BUG=359249
    TBR=rlarocque
    
    Review URL: https://codereview.chromium.org/557463002
    
    Cr-Commit-Position: refs/heads/master@{#294032}
    e65ead8f
md5sum.gyp 2.22 KB