Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 { | |
| 5 'variables': { | |
| 6 'chromium_code': 1, | |
| 7 'INSTALLER_DIR' : '<(PRODUCT_DIR)/cloud_print_installer', | |
|
Nico
2011/08/19 15:41:25
why upper case? aren't most variables lower case?
abeera
2011/08/19 21:12:19
In the other GYP files I looked, variables used as
| |
| 8 'packaging_files_linux': [ | |
| 9 '../GCP-driver.ppd', | |
| 10 '<(PRODUCT_DIR)/GCP-driver', | |
| 11 'linux_packaging/build.sh', | |
| 12 'linux_packaging/control', | |
| 13 'linux_packaging/copyright', | |
| 14 'linux_packaging/changelog', | |
| 15 'linux_packaging/postinst', | |
| 16 'linux_packaging/postrm', | |
| 17 'linux_packaging/prerm', | |
| 18 ], | |
| 19 'moved_packaging_files_linux': [ | |
| 20 '<(INSTALLER_DIR)/GCP-driver', | |
| 21 '<(INSTALLER_DIR)/build.sh', | |
| 22 '<(INSTALLER_DIR)/control', | |
| 23 '<(INSTALLER_DIR)/copyright', | |
| 24 '<(INSTALLER_DIR)/changelog', | |
| 25 '<(INSTALLER_DIR)/GCP-driver.ppd', | |
| 26 '<(INSTALLER_DIR)/postinst', | |
| 27 '<(INSTALLER_DIR)/postrm', | |
| 28 '<(INSTALLER_DIR)/prerm', | |
| 29 ], | |
| 30 'packaging_files_mac': [ | |
| 31 '<(PRODUCT_DIR)/GCP-driver', | |
| 32 '<(PRODUCT_DIR)/GCP-install', | |
| 33 '<(PRODUCT_DIR)/GCP-uninstall', | |
| 34 'mac_packaging/install.sh', | |
| 35 'mac_packaging/build_mac.sh', | |
| 36 'mac_packaging/GCP-Virtual-Driver.pmdoc', | |
| 37 '../GCP-driver.ppd', | |
| 38 'mac_packaging/uninstall.sh', | |
| 39 ], | |
| 40 'moved_packaging_files_mac': [ | |
| 41 '<(INSTALLER_DIR)/GCP-driver', | |
| 42 '<(INSTALLER_DIR)/GCP-install', | |
| 43 '<(INSTALLER_DIR)/GCP-uninstall', | |
| 44 '<(INSTALLER_DIR)/install.sh', | |
| 45 '<(INSTALLER_DIR)/build_mac.sh', | |
| 46 '<(INSTALLER_DIR)/GCP-Virtual-Driver.pmdoc', | |
| 47 '<(INSTALLER_DIR)/GCP-driver.ppd', | |
| 48 '<(PRODUCT_DIR)/uninstall.sh', | |
| 49 ], | |
| 50 }, | |
| 51 'targets': [ | |
| 52 { | |
| 53 'target_name': 'cloud_print_installer_files', | |
| 54 'type': 'none', | |
| 55 'conditions': [ | |
| 56 ['OS == "linux"', { | |
| 57 'copies': [ | |
| 58 { | |
| 59 'destination': '<(INSTALLER_DIR)', | |
| 60 'files': ['<@(packaging_files_linux)'] | |
| 61 }], | |
| 62 }], | |
| 63 ['OS == "mac"', { | |
| 64 'copies': [ | |
| 65 { | |
| 66 'destination': '<(INSTALLER_DIR)/', | |
| 67 'files': ['<@(packaging_files_mac)'] | |
| 68 }], | |
| 69 }], | |
| 70 ], | |
| 71 }, | |
| 72 { | |
|
Nico
2011/08/19 15:41:25
{ or } indentation is off here
abeera
2011/08/19 21:12:19
Done.
| |
| 73 'target_name': 'cloud_print_installer', | |
| 74 'type': 'none', | |
| 75 'dependencies': ['cloud_print_installer_files'], | |
| 76 'conditions': [ | |
| 77 ['OS == "linux"', { | |
| 78 'actions': [ | |
| 79 { | |
| 80 'action_name':'cloud_print_deb_pack', | |
| 81 'inputs': ['<@(moved_packaging_files_linux)'], | |
| 82 'action': ['<(INSTALLER_DIR)/build.sh'], | |
| 83 'outputs':['<(INSTALLER_DIR)/gcp-driver.deb'] | |
| 84 }], | |
| 85 }], | |
| 86 ['OS == "mac"', { | |
| 87 'actions': [ | |
| 88 { | |
| 89 'action_name':'cloud_print_mac_pack', | |
| 90 'inputs': ['<@(moved_packaging_files_mac)'], | |
| 91 'action': ['<(INSTALLER_DIR)/build_mac.sh'], | |
| 92 'outputs':[ | |
| 93 '<(INSTALLER_DIR)/GCP-virtual-driver.pkg'] | |
| 94 }], | |
| 95 }], | |
| 96 ], | |
| 97 }, | |
| 98 ], | |
| 99 } | |
| 100 | |
| 101 # Local Variables: | |
| 102 # tab-width:2 | |
| 103 # indent-tabs-mode:nil | |
| 104 # End: | |
| 105 # vim: set expandtab tabstop=2 shiftwidth=2: | |
| OLD | NEW |