| # Copyright 2015 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//build/config/android/abi.gni") |
| import("//build/config/sysroot.gni") |
| import("//chromecast/chromecast.gni") |
| import("//media/media_options.gni") |
| |
| # These targets shall only be referenced on Android builds. |
| assert(is_android) |
| |
| shared_library("libcast_browser_android") { |
| # TODO: Remove the ldflags after migrating away from protobuf_lite to |
| # protobuf_full. |
| ldflags = [ "-Wl,-z,muldefs" ] |
| |
| sources = [ "//chromecast/app/android/cast_jni_loader.cc" ] |
| |
| configs += [ "//chromecast:cast_config" ] |
| configs -= [ "//build/config/android:hide_all_but_jni_onload" ] |
| configs += [ "//build/config/android:hide_all_but_jni" ] |
| |
| deps = [ |
| "//base", |
| "//chromecast:chromecast_buildflags", |
| "//chromecast/app", |
| "//chromecast/app:cast_crash_client", |
| "//chromecast/base", |
| "//chromecast/base:android_create_sys_info", |
| "//chromecast/base:jni_headers", |
| "//chromecast/base/metrics", |
| "//chromecast/browser", |
| "//chromecast/cast_core:core_runtime_lib_simple", |
| "//chromecast/media/cma/backend/android:cast_media_android", |
| "//components/crash/android:crash_android", |
| "//components/minidump_uploader", |
| "//components/module_installer/android:native", |
| "//content/public/app", |
| "//content/public/browser", |
| "//skia", |
| ] |
| } |
| |
| # Util to copy libc++_shared.so to APK. |
| copy("copy_libcxx_shared") { |
| sources = [ "${sysroot}/usr/lib/${android_abi_target}/libc++_shared.so" ] |
| outputs = [ "${root_out_dir}/libc++_shared.so" ] |
| metadata = { |
| shared_libraries = [ "${root_out_dir}/libc++_shared.so" ] |
| } |
| } |