summaryrefslogtreecommitdiff
path: root/chromium/courgette
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
committerZeno Albisser <zeno.albisser@digia.com>2013-08-15 21:46:11 +0200
commit679147eead574d186ebf3069647b4c23e8ccace6 (patch)
treefc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/courgette
downloadqtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz
Initial import.
Diffstat (limited to 'chromium/courgette')
-rw-r--r--chromium/courgette/courgette.gyp207
1 files changed, 207 insertions, 0 deletions
diff --git a/chromium/courgette/courgette.gyp b/chromium/courgette/courgette.gyp
new file mode 100644
index 00000000000..d6d4c154a2d
--- /dev/null
+++ b/chromium/courgette/courgette.gyp
@@ -0,0 +1,207 @@
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'chromium_code': 1,
+ 'courgette_lib_sources': [
+ 'adjustment_method.cc',
+ 'adjustment_method_2.cc',
+ 'adjustment_method.h',
+ 'assembly_program.cc',
+ 'assembly_program.h',
+ 'third_party/bsdiff.h',
+ 'third_party/bsdiff_apply.cc',
+ 'third_party/bsdiff_create.cc',
+ 'third_party/paged_array.h',
+ 'courgette.h',
+ 'crc.cc',
+ 'crc.h',
+ 'difference_estimator.cc',
+ 'difference_estimator.h',
+ 'disassembler.cc',
+ 'disassembler.h',
+ 'disassembler_elf_32.cc',
+ 'disassembler_elf_32.h',
+ 'disassembler_elf_32_arm.cc',
+ 'disassembler_elf_32_arm.h',
+ 'disassembler_elf_32_x86.cc',
+ 'disassembler_elf_32_x86.h',
+ 'disassembler_win32_x86.cc',
+ 'disassembler_win32_x86.h',
+ 'encoded_program.cc',
+ 'encoded_program.h',
+ 'ensemble.cc',
+ 'ensemble.h',
+ 'ensemble_apply.cc',
+ 'ensemble_create.cc',
+ 'memory_allocator.cc',
+ 'memory_allocator.h',
+ 'region.h',
+ 'simple_delta.cc',
+ 'simple_delta.h',
+ 'streams.cc',
+ 'streams.h',
+ 'types_elf.h',
+ 'types_win_pe.h',
+ 'patch_generator_x86_32.h',
+ 'patcher_x86_32.h',
+ ],
+ },
+ 'targets': [
+ {
+ 'target_name': 'courgette_lib',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
+ ],
+ 'sources': [
+ '<@(courgette_lib_sources)'
+ ],
+ },
+ {
+ 'target_name': 'courgette',
+ 'type': 'executable',
+ 'sources': [
+ 'courgette_tool.cc',
+ ],
+ 'dependencies': [
+ 'courgette_lib',
+ '../base/base.gyp:base',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'LargeAddressAware': 2,
+ },
+ },
+ },
+ {
+ 'target_name': 'courgette_minimal_tool',
+ 'type': 'executable',
+ 'sources': [
+ 'courgette_minimal_tool.cc',
+ ],
+ 'dependencies': [
+ 'courgette_lib',
+ '../base/base.gyp:base',
+ ],
+ },
+ {
+ 'target_name': 'courgette_unittests',
+ 'type': 'executable',
+ 'sources': [
+ 'adjustment_method_unittest.cc',
+ 'bsdiff_memory_unittest.cc',
+ 'base_test_unittest.cc',
+ 'base_test_unittest.h',
+ 'difference_estimator_unittest.cc',
+ 'disassembler_elf_32_x86_unittest.cc',
+ 'disassembler_win32_x86_unittest.cc',
+ 'encoded_program_unittest.cc',
+ 'encode_decode_unittest.cc',
+ 'ensemble_unittest.cc',
+ 'run_all_unittests.cc',
+ 'streams_unittest.cc',
+ 'typedrva_unittest.cc',
+ 'versioning_unittest.cc',
+ 'third_party/paged_array_unittest.cc'
+ ],
+ 'dependencies': [
+ 'courgette_lib',
+ '../base/base.gyp:base',
+ '../base/base.gyp:base_i18n',
+ '../base/base.gyp:test_support_base',
+ '../testing/gtest.gyp:gtest',
+ ],
+ 'conditions': [
+ [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
+ 'conditions': [
+ ['linux_use_tcmalloc==1', {
+ 'dependencies': [
+ '../base/allocator/allocator.gyp:allocator',
+ ],
+ }],
+ ],
+ }],
+ [ 'toolkit_uses_gtk == 1', {
+ 'dependencies': [
+ # Workaround for gyp bug 69.
+ # Needed to handle the #include chain:
+ # base/test_suite.h
+ # gtk/gtk.h
+ '../build/linux/system.gyp:gtk',
+ ],
+ }],
+ ],
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ 'msvs_disabled_warnings': [4267, ],
+ },
+ {
+ 'target_name': 'courgette_fuzz',
+ 'type': 'executable',
+ 'sources': [
+ 'base_test_unittest.cc',
+ 'base_test_unittest.h',
+ 'encoded_program_fuzz_unittest.cc',
+ ],
+ 'dependencies': [
+ 'courgette_lib',
+ '../base/base.gyp:base',
+ '../base/base.gyp:base_i18n',
+ '../base/base.gyp:test_support_base',
+ '../testing/gtest.gyp:gtest',
+ ],
+ 'conditions': [
+ [ 'toolkit_uses_gtk == 1', {
+ 'dependencies': [
+ # Workaround for gyp bug 69.
+ # Needed to handle the #include chain:
+ # base/test_suite.h
+ # gtk/gtk.h
+ '../build/linux/system.gyp:gtk',
+ ],
+ }],
+ ],
+ },
+ ],
+ 'conditions': [
+ ['OS=="win" and target_arch=="ia32"', {
+ 'targets': [
+ {
+ 'target_name': 'courgette_lib64',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../base/base.gyp:base_nacl_win64',
+ '../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk64',
+ ],
+ 'sources': [
+ '<@(courgette_lib_sources)',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ },
+ {
+ 'target_name': 'courgette64',
+ 'type': 'executable',
+ 'sources': [
+ 'courgette_tool.cc',
+ ],
+ 'dependencies': [
+ 'courgette_lib64',
+ '../base/base.gyp:base_nacl_win64',
+ ],
+ 'configurations': {
+ 'Common_Base': {
+ 'msvs_target_platform': 'x64',
+ },
+ },
+ },
+ ],
+ }],
+ ],
+}