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

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: Style fix. 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
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..183b4c82cecbeff2a346114de4c959f18059c3eb
--- /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',
Mark Mentovai 2011/08/19 23:52:20 installer_dir, lowercase. UPPERCASE_NAMES are rese
abeera_chromium.org 2011/08/20 02:37:13 Ah, thank you for clearing that up. All the path v
+ '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': [
Mark Mentovai 2011/08/19 23:52:20 Go through this file and fix the indentation throu
+ '<(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': [
Mark Mentovai 2011/08/19 23:52:20 What are “packaging files” compared to “moved pack
abeera_chromium.org 2011/08/20 02:37:13 Packaging files are the files at their original lo
+ '<(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)/',
Mark Mentovai 2011/08/19 23:52:20 No trailing slash necessary
+ '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:
Mark Mentovai 2011/08/19 23:52:20 We don’t do this anymore. Take this block out.
+# tab-width:2
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=2 shiftwidth=2:

Powered by Google App Engine
This is Rietveld 408576698