From a3affc00ced053e2013464fbcd2431cc6e05e23d Mon Sep 17 00:00:00 2001
From: tfarina <tfarina@chromium.org>
Date: Fri, 29 Aug 2014 09:29:55 -0700
Subject: Some ui/BUILD.gn fixes.

This fixes some TODOs in ui/BUILD.gn and add GN build file for
third_party/mozilla.

BUG=None
TEST=None
R=brettw@chromium.org

Review URL: https://codereview.chromium.org/521553002

Cr-Commit-Position: refs/heads/master@{#292649}
---
 third_party/mozilla/BUILD.gn | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 third_party/mozilla/BUILD.gn

(limited to 'third_party/mozilla')

diff --git a/third_party/mozilla/BUILD.gn b/third_party/mozilla/BUILD.gn
new file mode 100644
index 0000000..ca41a3d
--- /dev/null
+++ b/third_party/mozilla/BUILD.gn
@@ -0,0 +1,34 @@
+# Copyright 2014 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.
+
+component("mozilla") {
+  sources = [
+    "ComplexTextInputPanel.h",
+    "ComplexTextInputPanel.mm",
+    "MozillaExport.h",
+    "NSPasteboard+Utils.h",
+    "NSPasteboard+Utils.mm",
+    "NSScreen+Utils.h",
+    "NSScreen+Utils.m",
+    "NSString+Utils.h",
+    "NSString+Utils.mm",
+    "NSURL+Utils.h",
+    "NSURL+Utils.m",
+    "NSWorkspace+Utils.h",
+    "NSWorkspace+Utils.m",
+  ]
+
+  defines = [
+    "MOZILLA_IMPLEMENTATION",
+  ]
+
+  deps = [
+    "//url",
+  ]
+
+  if (is_component_build && (is_mac || is_ios)) {
+    # Needed to link to Obj-C static libraries.
+    ldflags = [ "-Wl,-ObjC" ]
+  }
+}
-- 
cgit v1.1