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',
15 'courgette_config.cc',
19 'difference_estimator.cc',
20 'difference_estimator.h',
23 'disassembler_elf_32.cc',
24 'disassembler_elf_32.h',
25 'disassembler_elf_32_arm.cc',
26 'disassembler_elf_32_arm.h',
27 'disassembler_elf_32_x86.cc',
28 'disassembler_elf_32_x86.h',
29 'disassembler_win32_x86.cc',
30 'disassembler_win32_x86.h',
31 'disassembler_win32_x64.cc',
32 'disassembler_win32_x64.h',
39 'memory_allocator.cc',
46 'third_party/bsdiff.h',
47 'third_party/bsdiff_apply.cc',
48 'third_party/bsdiff_create.cc',
49 'third_party/paged_array.h',
50 'third_party/qsufsort.h',
53 'patch_generator_x86_32.h',
59 'target_name': 'courgette_lib',
60 'type': 'static_library',
62 '../base/base.gyp:base',
63 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
66 '<@(courgette_lib_sources)'
70 'target_name': 'courgette',
77 '../base/base.gyp:base',
81 'LargeAddressAware': 2,
86 'target_name': 'courgette_minimal_tool',
89 'courgette_minimal_tool.cc',
93 '../base/base.gyp:base',
97 'target_name': 'courgette_unittests',
100 'adjustment_method_unittest.cc',
101 'bsdiff_memory_unittest.cc',
102 'base_test_unittest.cc',
103 'base_test_unittest.h',
104 'difference_estimator_unittest.cc',
105 'disassembler_elf_32_x86_unittest.cc',
106 'disassembler_win32_x86_unittest.cc',
107 'disassembler_win32_x64_unittest.cc',
108 'encoded_program_unittest.cc',
109 'encode_decode_unittest.cc',
110 'ensemble_unittest.cc',
111 'memory_allocator_unittest.cc',
112 'streams_unittest.cc',
113 'typedrva_unittest.cc',
114 'versioning_unittest.cc',
115 'third_party/paged_array_unittest.cc',
116 'third_party/qsufsort_unittest.cc',
120 '../base/base.gyp:base',
121 '../base/base.gyp:base_i18n',
122 '../base/base.gyp:run_all_unittests',
123 '../base/base.gyp:test_support_base',
124 '../testing/gtest.gyp:gtest',
127 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
129 ['use_allocator!="none"', {
131 '../base/allocator/allocator.gyp:allocator',
137 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
138 'msvs_disabled_warnings': [4267, ],
141 'target_name': 'courgette_fuzz',
142 'type': 'executable',
144 'base_test_unittest.cc',
145 'base_test_unittest.h',
146 'encoded_program_fuzz_unittest.cc',
150 '../base/base.gyp:base',
151 '../base/base.gyp:base_i18n',
152 '../base/base.gyp:test_support_base',
153 '../testing/gtest.gyp:gtest',
158 ['OS=="win" and target_arch=="ia32"', {
161 'target_name': 'courgette_lib64',
162 'type': 'static_library',
164 '../base/base.gyp:base_win64',
165 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64',
168 '<@(courgette_lib_sources)',
172 'msvs_target_platform': 'x64',
177 'target_name': 'courgette64',
178 'type': 'executable',
184 '../base/base.gyp:base_win64',
188 'msvs_target_platform': 'x64',
194 # The build infrastructure needs courgette to be named courgette64.
195 ['OS=="win" and target_arch=="x64"', {
198 'target_name': 'courgette64',
204 'action_name': 'courgette64',
206 '<(PRODUCT_DIR)/courgette.exe',
209 '<(PRODUCT_DIR)/courgette64.exe',
221 ['test_isolation_mode != "noop"', {
224 'target_name': 'courgette_unittests_run',
227 'courgette_unittests',
230 '../build/isolate.gypi',
233 'courgette_unittests.isolate',