| Index: cloud_print/virtual_driver/posix/virtual_driver_posix_packaging.gyp
|
| diff --git a/cloud_print/virtual_driver/posix/virtual_driver_posix_packaging.gyp b/cloud_print/virtual_driver/posix/virtual_driver_posix_packaging.gyp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1327f17e87355554d63bc5d76aa7bc9a76f9530e
|
| --- /dev/null
|
| +++ b/cloud_print/virtual_driver/posix/virtual_driver_posix_packaging.gyp
|
| @@ -0,0 +1,105 @@
|
| +# 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.
|
| +{
|
| + 'variables': {
|
| + 'chromium_code': 1,
|
| + 'INSTALLER_DIR' : '<(PRODUCT_DIR)/cloud_print_installer',
|
| + 'packaging_files_linux': [
|
| + '../GCP-driver.ppd',
|
| + '<(PRODUCT_DIR)/GCP-driver',
|
| + 'linux_packaging/build.sh',
|
| + 'linux_packaging/control',
|
| + 'linux_packaging/copyright',
|
| + 'linux_packaging/changelog',
|
| + 'linux_packaging/postinst',
|
| + 'linux_packaging/postrm',
|
| + 'linux_packaging/prerm',
|
| + ],
|
| + 'moved_packaging_files_linux': [
|
| + '<(INSTALLER_DIR)/GCP-driver',
|
| + '<(INSTALLER_DIR)/build.sh',
|
| + '<(INSTALLER_DIR)/control',
|
| + '<(INSTALLER_DIR)/copyright',
|
| + '<(INSTALLER_DIR)/changelog',
|
| + '<(INSTALLER_DIR)/GCP-driver.ppd',
|
| + '<(INSTALLER_DIR)/postinst',
|
| + '<(INSTALLER_DIR)/postrm',
|
| + '<(INSTALLER_DIR)/prerm',
|
| + ],
|
| + 'packaging_files_mac': [
|
| + '<(PRODUCT_DIR)/GCP-driver',
|
| + '<(PRODUCT_DIR)/GCP-install',
|
| + '<(PRODUCT_DIR)/GCP-uninstall',
|
| + 'mac_packaging/install.sh',
|
| + 'mac_packaging/build_mac.sh',
|
| + 'mac_packaging/GCP-Virtual-Driver.pmdoc',
|
| + '../GCP-driver.ppd',
|
| + 'mac_packaging/uninstall.sh',
|
| + ],
|
| + 'moved_packaging_files_mac': [
|
| + '<(INSTALLER_DIR)/GCP-driver',
|
| + '<(INSTALLER_DIR)/GCP-install',
|
| + '<(INSTALLER_DIR)/GCP-uninstall',
|
| + '<(INSTALLER_DIR)/install.sh',
|
| + '<(INSTALLER_DIR)/build_mac.sh',
|
| + '<(INSTALLER_DIR)/GCP-Virtual-Driver.pmdoc',
|
| + '<(INSTALLER_DIR)/GCP-driver.ppd',
|
| + '<(PRODUCT_DIR)/uninstall.sh',
|
| + ],
|
| + },
|
| + 'targets': [
|
| + {
|
| + 'target_name': 'cloud_print_installer_files',
|
| + 'type': 'none',
|
| + 'conditions': [
|
| + ['OS == "linux"', {
|
| + 'copies': [
|
| + {
|
| + 'destination': '<(INSTALLER_DIR)',
|
| + 'files': ['<@(packaging_files_linux)']
|
| + }],
|
| + }],
|
| + ['OS == "mac"', {
|
| + 'copies': [
|
| + {
|
| + 'destination': '<(INSTALLER_DIR)/',
|
| + 'files': ['<@(packaging_files_mac)']
|
| + }],
|
| + }],
|
| + ],
|
| + },
|
| + {
|
| + 'target_name': 'cloud_print_installer',
|
| + 'type': 'none',
|
| + 'dependencies': ['cloud_print_installer_files'],
|
| + 'conditions': [
|
| + ['OS == "linux"', {
|
| + 'actions': [
|
| + {
|
| + 'action_name':'cloud_print_deb_pack',
|
| + 'inputs': ['<@(moved_packaging_files_linux)'],
|
| + 'action': ['<(INSTALLER_DIR)/build.sh'],
|
| + 'outputs':['<(INSTALLER_DIR)/gcp-driver.deb']
|
| + }],
|
| + }],
|
| + ['OS == "mac"', {
|
| + 'actions': [
|
| + {
|
| + 'action_name':'cloud_print_mac_pack',
|
| + 'inputs': ['<@(moved_packaging_files_mac)'],
|
| + 'action': ['<(INSTALLER_DIR)/build_mac.sh'],
|
| + 'outputs':[
|
| + '<(INSTALLER_DIR)/GCP-virtual-driver.pkg']
|
| + }],
|
| + }],
|
| + ],
|
| + },
|
| + ],
|
| +}
|
| +
|
| +# Local Variables:
|
| +# tab-width:2
|
| +# indent-tabs-mode:nil
|
| +# End:
|
| +# vim: set expandtab tabstop=2 shiftwidth=2:
|
|
|