summaryrefslogtreecommitdiff
path: root/chromium/ios/third_party/firebase/BUILD.gn
blob: 31c2b38f5b2fab70f0ac2fb420569ee57a3a807d (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
# Copyright 2018 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.

source_set("firebase") {
  public_configs = [ ":firebase_config" ]
}

config("firebase_config") {
  visibility = [ ":firebase" ]
  framework_dirs = [ "Analytics" ]
  frameworks = [
    "FirebaseAnalytics.framework",
    "FirebaseCore.framework",
    "FirebaseCoreDiagnostics.framework",
    "FirebaseInstanceID.framework",
    "GoogleAppMeasurement.framework",
    "GoogleUtilities.framework",
    "nanopb.framework",
    "StoreKit.framework",
  ]

  libs = [
    # GoogleAppMeasurement.framework is a framework containing a static library
    # and it has a dependency on sqlite3. It cannot use the version built with
    # Chromium since the names are mangled, so add the dependency here.
    # TODO(crbug.com/1024322): This dependency should be resolved. The best way
    # would be to have dynamic library version of firebase framework (then the
    # framework would implicitly have the depency on sqlite3 from the system).
    "sqlite3",
  ]
}