mozilla.gyp 1.14 KB
Newer Older
1 2 3 4 5 6 7 8
# Copyright 2013 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.

{
  'targets': [
    {
      'target_name': 'mozilla',
9
      'type': '<(component)',
10 11 12
      'sources': [
        'ComplexTextInputPanel.h',
        'ComplexTextInputPanel.mm',
13
        'MozillaExport.h',
14 15 16 17 18 19 20 21 22 23 24
        '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',
      ],
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
      'defines': [
        'MOZILLA_IMPLEMENTATION',
      ],
      'link_settings': {
        'libraries': [
          '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
        ],
      },
      'dependencies': [
        '../../url/url.gyp:url_lib',
      ],
      'conditions': [
        ['component=="shared_library"',
          {
            # Needed to link to Obj-C static libraries.
            'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
          }
        ],
      ],
44 45 46
    },
  ],
}