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_x86.cc',
26 'disassembler_elf_32_x86.h',
27 'disassembler_win32_x86.cc',
28 'disassembler_win32_x86.h',
35 'memory_allocator.cc',
44 'patch_generator_x86_32.h',
50 'target_name': 'courgette_lib',
51 'type': 'static_library',
53 '../base/base.gyp:base',
54 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
57 '<@(courgette_lib_sources)'
61 'target_name': 'courgette',
68 '../base/base.gyp:base',
72 'LargeAddressAware': 2,
77 'target_name': 'courgette_minimal_tool',
80 'courgette_minimal_tool.cc',
84 '../base/base.gyp:base',
88 'target_name': 'courgette_unittests',
91 'adjustment_method_unittest.cc',
92 'bsdiff_memory_unittest.cc',
93 'base_test_unittest.cc',
94 'base_test_unittest.h',
95 'difference_estimator_unittest.cc',
96 'disassembler_elf_32_x86_unittest.cc',
97 'disassembler_win32_x86_unittest.cc',
98 'encoded_program_unittest.cc',
99 'encode_decode_unittest.cc',
100 'ensemble_unittest.cc',
101 'run_all_unittests.cc',
102 'streams_unittest.cc',
103 'versioning_unittest.cc',
104 'third_party/paged_array_unittest.cc'
108 '../base/base.gyp:base',
109 '../base/base.gyp:base_i18n',
110 '../base/base.gyp:test_support_base',
111 '../testing/gtest.gyp:gtest',
114 [ 'toolkit_uses_gtk == 1', {
116 # Workaround for gyp bug 69.
117 # Needed to handle the #include chain:
120 '../build/linux/system.gyp:gtk',
124 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
125 'msvs_disabled_warnings': [4267, ],
128 'target_name': 'courgette_fuzz',
129 'type': 'executable',
131 'base_test_unittest.cc',
132 'base_test_unittest.h',
133 'encoded_program_fuzz_unittest.cc',
137 '../base/base.gyp:base',
138 '../base/base.gyp:base_i18n',
139 '../base/base.gyp:test_support_base',
140 '../testing/gtest.gyp:gtest',
143 [ 'toolkit_uses_gtk == 1', {
145 # Workaround for gyp bug 69.
146 # Needed to handle the #include chain:
149 '../build/linux/system.gyp:gtk',
156 ['OS=="win" and target_arch=="ia32"', {
159 'target_name': 'courgette_lib64',
160 'type': 'static_library',
162 '../base/base.gyp:base_nacl_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_nacl_win64',
186 'msvs_target_platform': 'x64',