summaryrefslogtreecommitdiff
path: root/chromium/third_party/mozilla/BUILD.gn
blob: bf5cf515122bea39a4fd185ff70f6136c7bcf7af (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
# Copyright 2014 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

component("mozilla") {
  sources = [
    "MozillaExport.h",
    "NSPasteboard+Utils.h",
    "NSPasteboard+Utils.mm",
    "NSString+Utils.h",
    "NSString+Utils.mm",
    "NSURL+Utils.h",
    "NSURL+Utils.m",
    "NSWorkspace+Utils.h",
    "NSWorkspace+Utils.m",
  ]

  defines = [ "MOZILLA_IMPLEMENTATION" ]

  deps = [
    "//base",
    "//url",
  ]

  if (is_component_build && is_apple) {
    # Needed to link to Obj-C static libraries.
    ldflags = [ "-Wl,-ObjC" ]
  }

  frameworks = [
    "AppKit.framework",
    "ApplicationServices.framework",
    "Carbon.framework",
  ]
}