OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 component("mozilla") { | 5 component("mozilla") { |
6 sources = [ | 6 sources = [ |
7 "ComplexTextInputPanel.h", | 7 "ComplexTextInputPanel.h", |
8 "ComplexTextInputPanel.mm", | 8 "ComplexTextInputPanel.mm", |
9 "MozillaExport.h", | 9 "MozillaExport.h", |
10 "NSPasteboard+Utils.h", | 10 "NSPasteboard+Utils.h", |
11 "NSPasteboard+Utils.mm", | 11 "NSPasteboard+Utils.mm", |
12 "NSScreen+Utils.h", | 12 "NSScreen+Utils.h", |
13 "NSScreen+Utils.m", | 13 "NSScreen+Utils.m", |
14 "NSString+Utils.h", | 14 "NSString+Utils.h", |
15 "NSString+Utils.mm", | 15 "NSString+Utils.mm", |
16 "NSURL+Utils.h", | 16 "NSURL+Utils.h", |
17 "NSURL+Utils.m", | 17 "NSURL+Utils.m", |
18 "NSWorkspace+Utils.h", | 18 "NSWorkspace+Utils.h", |
19 "NSWorkspace+Utils.m", | 19 "NSWorkspace+Utils.m", |
20 ] | 20 ] |
21 | 21 |
22 defines = [ | 22 defines = [ "MOZILLA_IMPLEMENTATION" ] |
23 "MOZILLA_IMPLEMENTATION", | |
24 ] | |
25 | 23 |
26 deps = [ | 24 deps = [ |
27 "//url", | 25 "//url", |
28 ] | 26 ] |
29 | 27 |
30 if (is_component_build && (is_mac || is_ios)) { | 28 if (is_component_build && (is_mac || is_ios)) { |
31 # Needed to link to Obj-C static libraries. | 29 # Needed to link to Obj-C static libraries. |
32 ldflags = [ "-Wl,-ObjC" ] | 30 ldflags = [ "-Wl,-ObjC" ] |
33 } | 31 } |
34 } | 32 } |
OLD | NEW |