summaryrefslogtreecommitdiff
path: root/chromium/chromecast/android/BUILD.gn
blob: 6a591b751dbe7c41b8e70c6bd84085d2757ac493 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//chromecast/chromecast.gni")

# These targets shall only be referenced on Android builds.
assert(is_android)

# This source_set should only contain headers for internal code. These must be
# built separately from public stub implementations of this code to keep the
# dependency tree clean.
source_set("platform_jni_loader") {
  sources = [
    "platform_jni_loader.h",
  ]
}

shared_library("libcast_shell_android") {
  sources = [
    "//chromecast/app/android/cast_jni_loader.cc",
    "cast_jni_registrar.cc",
    "cast_jni_registrar.h",
  ]

  deps = [
    ":platform_jni_loader",
    "//base",
    "//chromecast:cast_shell_lib",
    "//chromecast/app",
    "//chromecast/app:cast_crash_client",
    "//chromecast/base",
    "//chromecast/base:cast_sys_info",
    "//chromecast/base:jni_headers",
    "//chromecast/base/metrics",
    "//chromecast/browser",
    "//content/public/app:both",
    "//content/public/browser",
    "//skia",
  ]

  if (chromecast_branding == "public") {
    sources += [ "platform_jni_loader_stub.cc" ]
  }
}