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.
8 'courgette_lib_sources': [
9 'adjustment_method.cc',
10 'adjustment_method_2.cc',
11 'adjustment_method.h',
12 'assembly_program.cc',
17 'difference_estimator.cc',
18 'difference_estimator.h',
21 'disassembler_elf_32.cc',
22 'disassembler_elf_32.h',
23 'disassembler_elf_32_arm.cc',
24 'disassembler_elf_32_arm.h',
25 'disassembler_elf_32_x86.cc',
26 'disassembler_elf_32_x86.h',
27 'disassembler_win32_x86.cc',
28 'disassembler_win32_x86.h',
29 'disassembler_win32_x64.cc',
30 'disassembler_win32_x64.h',
37 'memory_allocator.cc',
44 'third_party/bsdiff.h',
45 'third_party/bsdiff_apply.cc',
46 'third_party/bsdiff_create.cc',
47 'third_party/paged_array.h',
48 'third_party/qsufsort.h',
51 'patch_generator_x86_32.h',
57 'target_name': 'courgette_lib',
58 'type': 'static_library',
60 '../base/base.gyp:base',
61 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
64 '<@(courgette_lib_sources)'
68 'target_name': 'courgette',
75 '../base/base.gyp:base',
79 'LargeAddressAware': 2,
84 'target_name': 'courgette_minimal_tool',
87 'courgette_minimal_tool.cc',
91 '../base/base.gyp:base',
95 'target_name': 'courgette_unittests',
98 'adjustment_method_unittest.cc',
99 'bsdiff_memory_unittest.cc',
100 'base_test_unittest.cc',
101 'base_test_unittest.h',
102 'difference_estimator_unittest.cc',
103 'disassembler_elf_32_x86_unittest.cc',
104 'disassembler_win32_x86_unittest.cc',
105 'disassembler_win32_x64_unittest.cc',
106 'encoded_program_unittest.cc',
107 'encode_decode_unittest.cc',
108 'ensemble_unittest.cc',
109 'memory_allocator_unittest.cc',
110 'streams_unittest.cc',
111 'typedrva_unittest.cc',
112 'versioning_unittest.cc',
113 'third_party/paged_array_unittest.cc',
114 'third_party/qsufsort_unittest.cc',
118 '../base/base.gyp:base',
119 '../base/base.gyp:base_i18n',
120 '../base/base.gyp:run_all_unittests',
121 '../base/base.gyp:test_support_base',
122 '../testing/gtest.gyp:gtest',
125 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
127 ['use_allocator!="none"', {
129 '../base/allocator/allocator.gyp:allocator',
135 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
136 'msvs_disabled_warnings': [4267, ],
139 'target_name': 'courgette_fuzz',
140 'type': 'executable',
142 'base_test_unittest.cc',
143 'base_test_unittest.h',
144 'encoded_program_fuzz_unittest.cc',
148 '../base/base.gyp:base',
149 '../base/base.gyp:base_i18n',
150 '../base/base.gyp:test_support_base',
151 '../testing/gtest.gyp:gtest',
156 ['OS=="win" and target_arch=="ia32"', {
159 'target_name': 'courgette_lib64',
160 'type': 'static_library',
162 '../base/base.gyp:base_win64',
163 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64',
166 '<@(courgette_lib_sources)',
170 'msvs_target_platform': 'x64',
175 'target_name': 'courgette64',
176 'type': 'executable',
182 '../base/base.gyp:base_win64',
186 'msvs_target_platform': 'x64',
192 # The build infrastructure needs courgette to be named courgette64.
193 ['OS=="win" and target_arch=="x64"', {
196 'target_name': 'courgette64',
202 'action_name': 'courgette64',
204 '<(PRODUCT_DIR)/courgette.exe',
207 '<(PRODUCT_DIR)/courgette64.exe',
219 ['test_isolation_mode != "noop"', {
222 'target_name': 'courgette_unittests_run',
225 'courgette_unittests',
228 '../build/isolate.gypi',
231 'courgette_unittests.isolate',