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',
39 'memory_allocator.cc',
48 'patch_generator_x86_32.h',
54 'target_name': 'courgette_lib',
55 'type': 'static_library',
57 '../base/base.gyp:base',
58 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
61 '<@(courgette_lib_sources)'
65 'target_name': 'courgette',
72 '../base/base.gyp:base',
76 'LargeAddressAware': 2,
81 'target_name': 'courgette_minimal_tool',
84 'courgette_minimal_tool.cc',
88 '../base/base.gyp:base',
92 'target_name': 'courgette_unittests',
95 'adjustment_method_unittest.cc',
96 'bsdiff_memory_unittest.cc',
97 'base_test_unittest.cc',
98 'base_test_unittest.h',
99 'difference_estimator_unittest.cc',
100 'disassembler_elf_32_x86_unittest.cc',
101 'disassembler_win32_x86_unittest.cc',
102 'encoded_program_unittest.cc',
103 'encode_decode_unittest.cc',
104 'ensemble_unittest.cc',
105 'run_all_unittests.cc',
106 'streams_unittest.cc',
107 'typedrva_unittest.cc',
108 'versioning_unittest.cc',
109 'third_party/paged_array_unittest.cc'
113 '../base/base.gyp:base',
114 '../base/base.gyp:base_i18n',
115 '../base/base.gyp:test_support_base',
116 '../testing/gtest.gyp:gtest',
119 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
121 ['linux_use_tcmalloc==1', {
123 '../base/allocator/allocator.gyp:allocator',
128 [ 'toolkit_uses_gtk == 1', {
130 # Workaround for gyp bug 69.
131 # Needed to handle the #include chain:
134 '../build/linux/system.gyp:gtk',
138 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
139 'msvs_disabled_warnings': [4267, ],
142 'target_name': 'courgette_fuzz',
143 'type': 'executable',
145 'base_test_unittest.cc',
146 'base_test_unittest.h',
147 'encoded_program_fuzz_unittest.cc',
151 '../base/base.gyp:base',
152 '../base/base.gyp:base_i18n',
153 '../base/base.gyp:test_support_base',
154 '../testing/gtest.gyp:gtest',
157 [ 'toolkit_uses_gtk == 1', {
159 # Workaround for gyp bug 69.
160 # Needed to handle the #include chain:
163 '../build/linux/system.gyp:gtk',
170 ['OS=="win" and target_arch=="ia32"', {
173 'target_name': 'courgette_lib64',
174 'type': 'static_library',
176 '../base/base.gyp:base_nacl_win64',
177 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64',
180 '<@(courgette_lib_sources)',
184 'msvs_target_platform': 'x64',
189 'target_name': 'courgette64',
190 'type': 'executable',
196 '../base/base.gyp:base_nacl_win64',
200 'msvs_target_platform': 'x64',
206 # The build infrastructure needs courgette to be named courgette64.
207 ['OS=="win" and target_arch=="x64"', {
210 'target_name': 'courgette64',
216 'action_name': 'courgette64',
218 '<(PRODUCT_DIR)/courgette.exe',
221 '<(PRODUCT_DIR)/courgette64.exe',