summaryrefslogtreecommitdiffstats
path: root/cloud_print/virtual_driver/posix/backend.gyp
blob: df6e49bb24c238b66f211bdb66701616b1d92c3a (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright (c) 2011 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.

{
  'target_defaults': {
    'variables': { 'chromium_code':1 },
  },
  'targets': [
    {
      'target_name': 'GCP-driver',
      'type': 'executable',
      'dependencies': [
        '../../../base/base.gyp:base',
      ],
      'sources': [
        'printer_driver_util_linux.cc',
        'printer_driver_util_posix.h',
        'printer_driver_util_mac.mm',
        'virtual_driver_posix.cc',
        '../virtual_driver_switches.cc',
      ],
      'conditions': [
        ['OS=="mac"', {
          'sources!': ['../virtual_driver_switches.cc'],
          'libraries': ['ScriptingBridge.framework'],
        }],
     ], 
  }],
  'conditions': [
     ['OS=="mac"', {
      'targets' : [
        {
          'target_name': 'GCP-install',
          'type': 'executable',
          'dependencies': [
            '../../../base/base.gyp:base',
          ],
          'sources' : [
            'install_cloud_print_driver_mac.mm',
            'installer_util_mac.h',
            'installer_util_mac.mm'
          ],
        },
       {
          'target_name': 'GCP-uninstall',
          'type': 'executable',
          'dependencies': [
            '../../../base/base.gyp:base',
          ],
          'sources' : [
            'installer_util_mac.h',
            'installer_util_mac.mm',
            'uninstall_cloud_print_driver_mac.mm',
          ],
        },
      ],
      }],
    ],
}