| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 { | |
| 6 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 'courgette_lib_sources': [ | |
| 9 'adjustment_method.cc', | |
| 10 'adjustment_method_2.cc', | |
| 11 'adjustment_method.h', | |
| 12 'assembly_program.cc', | |
| 13 'assembly_program.h', | |
| 14 'consecutive_range_visitor.h', | |
| 15 'courgette.h', | |
| 16 'crc.cc', | |
| 17 'crc.h', | |
| 18 'difference_estimator.cc', | |
| 19 'difference_estimator.h', | |
| 20 'disassembler.cc', | |
| 21 'disassembler.h', | |
| 22 'disassembler_elf_32.cc', | |
| 23 'disassembler_elf_32.h', | |
| 24 'disassembler_elf_32_arm.cc', | |
| 25 'disassembler_elf_32_arm.h', | |
| 26 'disassembler_elf_32_x86.cc', | |
| 27 'disassembler_elf_32_x86.h', | |
| 28 'disassembler_win32.cc', | |
| 29 'disassembler_win32.h', | |
| 30 'disassembler_win32_x86.cc', | |
| 31 'disassembler_win32_x86.h', | |
| 32 'disassembler_win32_x64.cc', | |
| 33 'disassembler_win32_x64.h', | |
| 34 'encoded_program.cc', | |
| 35 'encoded_program.h', | |
| 36 'ensemble.cc', | |
| 37 'ensemble.h', | |
| 38 'ensemble_apply.cc', | |
| 39 'ensemble_create.cc', | |
| 40 'image_utils.h', | |
| 41 'label_manager.cc', | |
| 42 'label_manager.h', | |
| 43 'memory_allocator.cc', | |
| 44 'memory_allocator.h', | |
| 45 'patch_generator_x86_32.h', | |
| 46 'patcher_x86_32.h', | |
| 47 'program_detector.cc', | |
| 48 'program_detector.h', | |
| 49 'region.h', | |
| 50 'rel32_finder.cc', | |
| 51 'rel32_finder.h', | |
| 52 'rel32_finder_x64.cc', | |
| 53 'rel32_finder_x64.h', | |
| 54 'rel32_finder_x86.cc', | |
| 55 'rel32_finder_x86.h', | |
| 56 'simple_delta.cc', | |
| 57 'simple_delta.h', | |
| 58 'streams.cc', | |
| 59 'streams.h', | |
| 60 'third_party/bsdiff/bsdiff.h', | |
| 61 'third_party/bsdiff/bsdiff_apply.cc', | |
| 62 'third_party/bsdiff/bsdiff_create.cc', | |
| 63 'third_party/bsdiff/bsdiff_search.h', | |
| 64 'third_party/bsdiff/paged_array.h', | |
| 65 'third_party/divsufsort/divsufsort.cc', | |
| 66 'third_party/divsufsort/divsufsort.h', | |
| 67 'third_party/divsufsort/divsufsort_private.h', | |
| 68 'third_party/divsufsort/sssort.cc', | |
| 69 'third_party/divsufsort/trsort.cc', | |
| 70 'types_elf.h', | |
| 71 'types_win_pe.h', | |
| 72 ], | |
| 73 }, | |
| 74 'targets': [ | |
| 75 { | |
| 76 'target_name': 'courgette_lib', | |
| 77 'type': 'static_library', | |
| 78 'dependencies': [ | |
| 79 '../base/base.gyp:base', | |
| 80 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk', | |
| 81 ], | |
| 82 'sources': [ | |
| 83 '<@(courgette_lib_sources)' | |
| 84 ], | |
| 85 }, | |
| 86 { | |
| 87 'target_name': 'courgette', | |
| 88 'type': 'executable', | |
| 89 'sources': [ | |
| 90 'courgette_tool.cc', | |
| 91 ], | |
| 92 'dependencies': [ | |
| 93 'courgette_lib', | |
| 94 '../base/base.gyp:base', | |
| 95 ], | |
| 96 'msvs_settings': { | |
| 97 'VCLinkerTool': { | |
| 98 'LargeAddressAware': 2, | |
| 99 }, | |
| 100 }, | |
| 101 }, | |
| 102 { | |
| 103 'target_name': 'courgette_minimal_tool', | |
| 104 'type': 'executable', | |
| 105 'sources': [ | |
| 106 'courgette_minimal_tool.cc', | |
| 107 ], | |
| 108 'dependencies': [ | |
| 109 'courgette_lib', | |
| 110 '../base/base.gyp:base', | |
| 111 ], | |
| 112 }, | |
| 113 { | |
| 114 'target_name': 'courgette_unittests', | |
| 115 'type': 'executable', | |
| 116 'sources': [ | |
| 117 'adjustment_method_unittest.cc', | |
| 118 'bsdiff_memory_unittest.cc', | |
| 119 'base_test_unittest.cc', | |
| 120 'base_test_unittest.h', | |
| 121 'consecutive_range_visitor_unittest.cc', | |
| 122 'difference_estimator_unittest.cc', | |
| 123 'disassembler_elf_32_x86_unittest.cc', | |
| 124 'disassembler_win32_x86_unittest.cc', | |
| 125 'disassembler_win32_x64_unittest.cc', | |
| 126 'encoded_program_unittest.cc', | |
| 127 'encode_decode_unittest.cc', | |
| 128 'ensemble_unittest.cc', | |
| 129 'image_utils_unittest.cc', | |
| 130 'label_manager_unittest.cc', | |
| 131 'memory_allocator_unittest.cc', | |
| 132 'program_detector_unittest.cc', | |
| 133 'rel32_finder_unittest.cc', | |
| 134 'streams_unittest.cc', | |
| 135 'typedrva_unittest.cc', | |
| 136 'versioning_unittest.cc', | |
| 137 'third_party/bsdiff/bsdiff_search_unittest.cc', | |
| 138 'third_party/bsdiff/paged_array_unittest.cc', | |
| 139 'third_party/divsufsort/divsufsort_unittest.cc', | |
| 140 ], | |
| 141 'dependencies': [ | |
| 142 'courgette_lib', | |
| 143 '../base/base.gyp:base', | |
| 144 '../base/base.gyp:base_i18n', | |
| 145 '../base/base.gyp:run_all_unittests', | |
| 146 '../base/base.gyp:test_support_base', | |
| 147 '../testing/gtest.gyp:gtest', | |
| 148 ], | |
| 149 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 150 'msvs_disabled_warnings': [4267, ], | |
| 151 }, | |
| 152 { | |
| 153 'target_name': 'courgette_fuzz', | |
| 154 'type': 'executable', | |
| 155 'sources': [ | |
| 156 'base_test_unittest.cc', | |
| 157 'base_test_unittest.h', | |
| 158 'encoded_program_fuzz_unittest.cc', | |
| 159 ], | |
| 160 'dependencies': [ | |
| 161 'courgette_lib', | |
| 162 '../base/base.gyp:base', | |
| 163 '../base/base.gyp:base_i18n', | |
| 164 '../base/base.gyp:test_support_base', | |
| 165 '../testing/gtest.gyp:gtest', | |
| 166 ], | |
| 167 }, | |
| 168 ], | |
| 169 'conditions': [ | |
| 170 ['OS=="win" and target_arch=="ia32"', { | |
| 171 'targets': [ | |
| 172 { | |
| 173 'target_name': 'courgette_lib64', | |
| 174 'type': 'static_library', | |
| 175 'dependencies': [ | |
| 176 '../base/base.gyp:base_win64', | |
| 177 '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64', | |
| 178 ], | |
| 179 'sources': [ | |
| 180 '<@(courgette_lib_sources)', | |
| 181 ], | |
| 182 'configurations': { | |
| 183 'Common_Base': { | |
| 184 'msvs_target_platform': 'x64', | |
| 185 }, | |
| 186 }, | |
| 187 }, | |
| 188 { | |
| 189 'target_name': 'courgette64', | |
| 190 'type': 'executable', | |
| 191 'sources': [ | |
| 192 'courgette_tool.cc', | |
| 193 ], | |
| 194 'dependencies': [ | |
| 195 'courgette_lib64', | |
| 196 '../base/base.gyp:base_win64', | |
| 197 ], | |
| 198 'configurations': { | |
| 199 'Common_Base': { | |
| 200 'msvs_target_platform': 'x64', | |
| 201 }, | |
| 202 }, | |
| 203 }, | |
| 204 ], | |
| 205 }], | |
| 206 # The build infrastructure needs courgette to be named courgette64. | |
| 207 ['OS=="win" and target_arch=="x64"', { | |
| 208 'targets': [ | |
| 209 { | |
| 210 'target_name': 'courgette64', | |
| 211 'type': 'none', | |
| 212 'dependencies': [ | |
| 213 'courgette', | |
| 214 ], | |
| 215 'actions': [{ | |
| 216 'action_name': 'courgette64', | |
| 217 'inputs': [ | |
| 218 '<(PRODUCT_DIR)/courgette.exe', | |
| 219 ], | |
| 220 'outputs': [ | |
| 221 '<(PRODUCT_DIR)/courgette64.exe', | |
| 222 ], | |
| 223 'action': [ | |
| 224 'python', | |
| 225 '../build/cp.py', | |
| 226 '<@(_inputs)', | |
| 227 '<@(_outputs)' | |
| 228 ], | |
| 229 }], | |
| 230 }, | |
| 231 ], | |
| 232 }], | |
| 233 ['test_isolation_mode != "noop"', { | |
| 234 'targets': [ | |
| 235 { | |
| 236 'target_name': 'courgette_unittests_run', | |
| 237 'type': 'none', | |
| 238 'dependencies': [ | |
| 239 'courgette_unittests', | |
| 240 ], | |
| 241 'includes': [ | |
| 242 '../build/isolate.gypi', | |
| 243 ], | |
| 244 'sources': [ | |
| 245 'courgette_unittests.isolate', | |
| 246 ], | |
| 247 }, | |
| 248 ], | |
| 249 }], | |
| 250 ], | |
| 251 } | |
| OLD | NEW |