Index: cloud_print/virtual_driver/posix/backend.gyp |
diff --git a/cloud_print/virtual_driver/posix/backend.gyp b/cloud_print/virtual_driver/posix/backend.gyp |
index 6f25dba3c8ef89def629ba1d393dc3f2669d6aa2..df6e49bb24c238b66f211bdb66701616b1d92c3a 100644 |
--- a/cloud_print/virtual_driver/posix/backend.gyp |
+++ b/cloud_print/virtual_driver/posix/backend.gyp |
@@ -4,27 +4,57 @@ |
{ |
'target_defaults': { |
- 'include_dirs': [ |
- '../..' |
- ], |
- 'variables': { |
- 'chromium_code': 1 |
- } |
+ 'variables': { 'chromium_code':1 }, |
}, |
- 'targets' : [ |
+ 'targets': [ |
{ |
'target_name': 'GCP-driver', |
'type': 'executable', |
'dependencies': [ |
'../../../base/base.gyp:base', |
], |
- 'sources' : [ |
- 'virtual_driver_posix.cc', |
+ 'sources': [ |
'printer_driver_util_linux.cc', |
'printer_driver_util_posix.h', |
+ 'printer_driver_util_mac.mm', |
+ 'virtual_driver_posix.cc', |
'../virtual_driver_switches.cc', |
- '../virtual_driver_switches.h', |
- ] |
- }, |
- ], |
+ ], |
+ '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', |
+ ], |
+ }, |
+ ], |
+ }], |
+ ], |
} |