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',
14 'third_party/bsdiff.h',
15 'third_party/bsdiff_apply.cc',
16 'third_party/bsdiff_create.cc',
17 'third_party/paged_array.h',
21 'difference_estimator.cc',
22 'difference_estimator.h',
25 'disassembler_elf_32.cc',
26 'disassembler_elf_32.h',
27 'disassembler_elf_32_arm.cc',
28 'disassembler_elf_32_arm.h',
29 'disassembler_elf_32_x86.cc',
30 'disassembler_elf_32_x86.h',
31 'disassembler_win32_x86.cc',
32 'disassembler_win32_x86.h',
33 'disassembler_win32_x64.cc',
34 'disassembler_win32_x64.h',
41 'memory_allocator.cc',
50 'patch_generator_x86_32.h',
56 'target_name': 'courgette_lib',
57 'type': 'static_library',
59 '../base/base.gyp:base',
60 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
63 '<@(courgette_lib_sources)'
67 'target_name': 'courgette',
74 '../base/base.gyp:base',
78 'LargeAddressAware': 2,
83 'target_name': 'courgette_minimal_tool',
86 'courgette_minimal_tool.cc',
90 '../base/base.gyp:base',
94 'target_name': 'courgette_unittests',
97 'adjustment_method_unittest.cc',
98 'bsdiff_memory_unittest.cc',
99 'base_test_unittest.cc',
100 'base_test_unittest.h',
101 'difference_estimator_unittest.cc',
102 'disassembler_elf_32_x86_unittest.cc',
103 'disassembler_win32_x86_unittest.cc',
104 'disassembler_win32_x64_unittest.cc',
105 'encoded_program_unittest.cc',
106 'encode_decode_unittest.cc',
107 'ensemble_unittest.cc',
108 'memory_allocator_unittest.cc',
109 'streams_unittest.cc',
110 'typedrva_unittest.cc',
111 'versioning_unittest.cc',
112 'third_party/paged_array_unittest.cc'
116 '../base/base.gyp:base',
117 '../base/base.gyp:base_i18n',
118 '../base/base.gyp:run_all_unittests',
119 '../base/base.gyp:test_support_base',
120 '../testing/gtest.gyp:gtest',
123 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
125 ['use_allocator!="none"', {
127 '../base/allocator/allocator.gyp:allocator',
133 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
134 'msvs_disabled_warnings': [4267, ],
137 'target_name': 'courgette_fuzz',
138 'type': 'executable',
140 'base_test_unittest.cc',
141 'base_test_unittest.h',
142 'encoded_program_fuzz_unittest.cc',
146 '../base/base.gyp:base',
147 '../base/base.gyp:base_i18n',
148 '../base/base.gyp:test_support_base',
149 '../testing/gtest.gyp:gtest',
154 ['OS=="win" and target_arch=="ia32"', {
157 'target_name': 'courgette_lib64',
158 'type': 'static_library',
160 '../base/base.gyp:base_win64',
161 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64',
164 '<@(courgette_lib_sources)',
168 'msvs_target_platform': 'x64',
173 'target_name': 'courgette64',
174 'type': 'executable',
180 '../base/base.gyp:base_win64',
184 'msvs_target_platform': 'x64',
190 # The build infrastructure needs courgette to be named courgette64.
191 ['OS=="win" and target_arch=="x64"', {
194 'target_name': 'courgette64',
200 'action_name': 'courgette64',
202 '<(PRODUCT_DIR)/courgette.exe',
205 '<(PRODUCT_DIR)/courgette64.exe',
217 ['test_isolation_mode != "noop"', {
220 'target_name': 'courgette_unittests_run',
223 'courgette_unittests',
226 '../build/isolate.gypi',
229 'courgette_unittests.isolate',