From b23427553edd7e39f2cbd78ab169d3440c61d248 Mon Sep 17 00:00:00 2001
From: "sgk@google.com" <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Wed, 27 May 2009 02:06:16 +0000
Subject: [PATCH] Add gyp-generated bspatch (used by setup.exe) and bsdiff.
 BUG=none TEST=none Review URL: http://codereview.chromium.org/115778

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16966 0039d316-1c4b-4281-b951-d872f2087c98
---
 build/all.gyp                   |  6 ++++--
 chrome/chrome.gyp               |  2 ++
 third_party/bsdiff/bsdiff.gyp   | 22 ++++++++++++++++++++++
 third_party/bspatch/bspatch.gyp | 31 +++++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+), 2 deletions(-)
 create mode 100644 third_party/bsdiff/bsdiff.gyp
 create mode 100644 third_party/bspatch/bspatch.gyp

diff --git a/build/all.gyp b/build/all.gyp
index 1c94fa2d666cd..e3544f9ed9c9d 100644
--- a/build/all.gyp
+++ b/build/all.gyp
@@ -61,11 +61,13 @@
         }],
         ['OS=="win"', {
           'dependencies': [
-            '../sandbox/sandbox.gyp:*',
+            '../breakpad/breakpad.gyp:*',
             '../courgette/courgette.gyp:*',
+            '../sandbox/sandbox.gyp:*',
+            '../third_party/bsdiff/bsdiff.gyp:*',
+            '../third_party/bspatch/bspatch.gyp:*',
             '../webkit/activex_shim/activex_shim.gyp:*',
             '../webkit/activex_shim_dll/activex_shim_dll.gyp:*',
-            '../breakpad/breakpad.gyp:*',
             '../gears/gears.gyp:*',
           ],
         }, {
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 9bb9802c364e0..6bb8a836638b0 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -3404,6 +3404,8 @@
             '../sdch/sdch.gyp:*',
             '../skia/skia.gyp:*',
             '../testing/gtest.gyp:*',
+            '../third_party/bsdiff/bsdiff.gyp:*',
+            '../third_party/bspatch/bspatch.gyp:*',
             '../third_party/bzip2/bzip2.gyp:*',
             '../third_party/codesighs/codesighs.gyp:*',
             '../third_party/ffmpeg/ffmpeg.gyp:*',
diff --git a/third_party/bsdiff/bsdiff.gyp b/third_party/bsdiff/bsdiff.gyp
new file mode 100644
index 0000000000000..c4739937e159c
--- /dev/null
+++ b/third_party/bsdiff/bsdiff.gyp
@@ -0,0 +1,22 @@
+# Copyright (c) 2009 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.
+
+{
+  'includes': [
+    '../../build/common.gypi',
+  ],
+  'targets': [
+    {
+      'target_name': 'bsdiff',
+      'type': 'executable',
+      'msvs_guid': 'E1D0B89E-257B-4BCA-A0C6-A2CD997A2FDC',
+      'dependencies': [
+        '../bspatch/bspatch.gyp:bspatch',
+      ],
+      'sources': [
+        'mbsdiff.cc',
+      ],
+    },
+  ],
+}
diff --git a/third_party/bspatch/bspatch.gyp b/third_party/bspatch/bspatch.gyp
new file mode 100644
index 0000000000000..5e741793ac5d5
--- /dev/null
+++ b/third_party/bspatch/bspatch.gyp
@@ -0,0 +1,31 @@
+# Copyright (c) 2009 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.
+
+{
+  'includes': [
+    '../../build/common.gypi',
+  ],
+  'targets': [
+    {
+      'target_name': 'bspatch',
+      'type': '<(library)',
+      'msvs_guid': 'D7ED06E8-6138-4CE3-A906-5EF1D9C804E0',
+      'dependencies': [
+        '../lzma_sdk/lzma_sdk.gyp:lzma_sdk',
+      ],
+      'include_dirs': [
+        '.',
+      ],
+      'direct_dependent_settings': {
+        'include_dirs': [
+          '.',
+        ],
+      },
+      'sources': [
+        'mbspatch.cc',
+        'mbspatch.h',
+      ],
+    },
+  ],
+}
-- 
GitLab