summaryrefslogtreecommitdiffstats
path: root/courgette/courgette.gyp
diff options
context:
space:
mode:
authorbradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 01:03:43 +0000
committerbradnelson@google.com <bradnelson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-21 01:03:43 +0000
commit104a608acbf0fe57728f95d21c59ed25f61b0482 (patch)
treef62f6ce78a3379b043e0ff71cfccef0baa46d98f /courgette/courgette.gyp
parentc840d52c54743d3353e90136fe17b8c697083d25 (diff)
downloadchromium_src-104a608acbf0fe57728f95d21c59ed25f61b0482.zip
chromium_src-104a608acbf0fe57728f95d21c59ed25f61b0482.tar.gz
chromium_src-104a608acbf0fe57728f95d21c59ed25f61b0482.tar.bz2
Also build a 64-bit exe version of the 32-bit courgette
utility + library to support larger input sizes. BUG=63793 TEST=None Review URL: http://codereview.chromium.org/5096007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/courgette.gyp')
-rw-r--r--courgette/courgette.gyp115
1 files changed, 78 insertions, 37 deletions
diff --git a/courgette/courgette.gyp b/courgette/courgette.gyp
index c45b3ac..a192050 100644
--- a/courgette/courgette.gyp
+++ b/courgette/courgette.gyp
@@ -5,6 +5,39 @@
{
'variables': {
'chromium_code': 1,
+ 'courgette_lib_sources': [
+ 'adjustment_method.cc',
+ 'adjustment_method_2.cc',
+ 'adjustment_method.h',
+ 'assembly_program.cc',
+ 'assembly_program.h',
+ 'third_party/bsdiff.h',
+ 'third_party/bsdiff_apply.cc',
+ 'third_party/bsdiff_create.cc',
+ 'third_party/paged_array.h',
+ 'courgette.h',
+ 'crc.cc',
+ 'crc.h',
+ 'difference_estimator.cc',
+ 'difference_estimator.h',
+ 'disassembler.cc',
+ 'disassembler.h',
+ 'encoded_program.cc',
+ 'encoded_program.h',
+ 'ensemble.cc',
+ 'ensemble.h',
+ 'ensemble_apply.cc',
+ 'ensemble_create.cc',
+ 'image_info.cc',
+ 'image_info.h',
+ 'region.h',
+ 'simple_delta.cc',
+ 'simple_delta.h',
+ 'streams.cc',
+ 'streams.h',
+ 'win32_x86_generator.h',
+ 'win32_x86_patcher.h',
+ ],
},
'targets': [
{
@@ -16,58 +49,28 @@
],
'msvs_guid': '9A72A362-E617-4205-B9F2-43C6FB280FA1',
'sources': [
- 'adjustment_method.cc',
- 'adjustment_method_2.cc',
- 'adjustment_method.h',
- 'assembly_program.cc',
- 'assembly_program.h',
- 'third_party/bsdiff.h',
- 'third_party/bsdiff_apply.cc',
- 'third_party/bsdiff_create.cc',
- 'third_party/paged_array.h',
- 'courgette.h',
- 'crc.cc',
- 'crc.h',
- 'difference_estimator.cc',
- 'difference_estimator.h',
- 'disassembler.cc',
- 'disassembler.h',
- 'encoded_program.cc',
- 'encoded_program.h',
- 'ensemble.cc',
- 'ensemble.h',
- 'ensemble_apply.cc',
- 'ensemble_create.cc',
- 'image_info.cc',
- 'image_info.h',
- 'region.h',
- 'simple_delta.cc',
- 'simple_delta.h',
- 'streams.cc',
- 'streams.h',
- 'win32_x86_generator.h',
- 'win32_x86_patcher.h',
+ '<@(courgette_lib_sources)'
],
},
- {
+ {
'target_name': 'courgette',
'type': 'executable',
'msvs_guid': '4EA8CE12-9C6F-45E5-9D08-720383FE3685',
'sources': [
'courgette_tool.cc',
- ],
+ ],
'dependencies': [
'courgette_lib',
'../base/base.gyp:base',
],
},
- {
+ {
'target_name': 'courgette_minimal_tool',
'type': 'executable',
'msvs_guid': 'EB79415F-2F17-4BDC-AADD-4CA4C2D21B73',
'sources': [
'courgette_minimal_tool.cc',
- ],
+ ],
'dependencies': [
'courgette_lib',
'../base/base.gyp:base',
@@ -87,7 +90,7 @@
'run_all_unittests.cc',
'streams_unittest.cc',
'third_party/paged_array_unittest.cc'
- ],
+ ],
'dependencies': [
'courgette_lib',
'../base/base.gyp:base',
@@ -107,7 +110,7 @@
}],
],
},
- {
+ {
'target_name': 'courgette_fuzz',
'type': 'executable',
'msvs_guid': '57C27529-8CA9-4FC3-9C02-DA05B172F785',
@@ -134,6 +137,44 @@
],
},
],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'courgette_lib64',
+ 'type': '<(library)',
+ 'dependencies': [
+ '../base/base.gyp:base_nacl_win64',
+ '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64',
+ ],
+ 'sources': [
+ '<@(courgette_lib_sources)',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ },
+ {
+ 'target_name': 'courgette64',
+ 'type': 'executable',
+ 'sources': [
+ 'courgette_tool.cc',
+ ],
+ 'dependencies': [
+ 'courgette_lib64',
+ '../base/base.gyp:base_nacl_win64',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ },
+ ],
+ }],
+ ],
}
# Local Variables: