Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: cloud_print/virtual_driver/posix/virtual_driver_posix_packaging.gyp

Issue 7599018: Code to package Cloud Print Linux and Mac virtual drivers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Changed Copyright file per discusssion Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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',
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
+ '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)']
+ }],
+ }],
+ ],
+ },
+ {
Nico 2011/08/19 15:41:25 { or } indentation is off here
abeera 2011/08/19 21:12:19 Done.
+ '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:
« no previous file with comments | « cloud_print/virtual_driver/posix/mac_packaging/uninstall.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698