| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 | 6 |
| 7 static_library("courgette_lib") { | 7 static_library("courgette_lib") { |
| 8 sources = [ | 8 sources = [ |
| 9 "adjustment_method.cc", | 9 "adjustment_method.cc", |
| 10 "adjustment_method.h", | 10 "adjustment_method.h", |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 "types_elf.h", | 61 "types_elf.h", |
| 62 "types_win_pe.h", | 62 "types_win_pe.h", |
| 63 ] | 63 ] |
| 64 | 64 |
| 65 deps = [ | 65 deps = [ |
| 66 "//base", | 66 "//base", |
| 67 "//third_party/lzma_sdk", | 67 "//third_party/lzma_sdk", |
| 68 ] | 68 ] |
| 69 } | 69 } |
| 70 | 70 |
| 71 executable("courgette") { | 71 if (!is_ios) { |
| 72 if (is_win && current_cpu == "x64") { | 72 executable("courgette") { |
| 73 # The build infrastructure needs courgette to be named courgette64. | 73 if (is_win && current_cpu == "x64") { |
| 74 output_name = "courgette64" | 74 # The build infrastructure needs courgette to be named courgette64. |
| 75 output_name = "courgette64" |
| 76 } |
| 77 |
| 78 sources = [ |
| 79 "courgette_tool.cc", |
| 80 ] |
| 81 |
| 82 if (is_win) { |
| 83 ldflags = [ "/LARGEADDRESSAWARE" ] |
| 84 } |
| 85 |
| 86 deps = [ |
| 87 ":courgette_lib", |
| 88 "//base", |
| 89 "//build/config/sanitizers:deps", |
| 90 "//build/win:default_exe_manifest", |
| 91 ] |
| 75 } | 92 } |
| 76 | 93 |
| 77 sources = [ | 94 executable("courgette_minimal_tool") { |
| 78 "courgette_tool.cc", | 95 sources = [ |
| 79 ] | 96 "courgette_minimal_tool.cc", |
| 97 ] |
| 80 | 98 |
| 81 if (is_win) { | 99 deps = [ |
| 82 ldflags = [ "/LARGEADDRESSAWARE" ] | 100 ":courgette_lib", |
| 101 "//base", |
| 102 "//build/config/sanitizers:deps", |
| 103 "//build/win:default_exe_manifest", |
| 104 ] |
| 83 } | 105 } |
| 84 | |
| 85 deps = [ | |
| 86 ":courgette_lib", | |
| 87 "//base", | |
| 88 "//build/config/sanitizers:deps", | |
| 89 "//build/win:default_exe_manifest", | |
| 90 ] | |
| 91 } | |
| 92 | |
| 93 executable("courgette_minimal_tool") { | |
| 94 sources = [ | |
| 95 "courgette_minimal_tool.cc", | |
| 96 ] | |
| 97 | |
| 98 deps = [ | |
| 99 ":courgette_lib", | |
| 100 "//base", | |
| 101 "//build/config/sanitizers:deps", | |
| 102 "//build/win:default_exe_manifest", | |
| 103 ] | |
| 104 } | 106 } |
| 105 | 107 |
| 106 test("courgette_unittests") { | 108 test("courgette_unittests") { |
| 107 sources = [ | 109 sources = [ |
| 108 "adjustment_method_unittest.cc", | 110 "adjustment_method_unittest.cc", |
| 109 "base_test_unittest.cc", | 111 "base_test_unittest.cc", |
| 110 "base_test_unittest.h", | 112 "base_test_unittest.h", |
| 111 "bsdiff_memory_unittest.cc", | 113 "bsdiff_memory_unittest.cc", |
| 112 "consecutive_range_visitor_unittest.cc", | 114 "consecutive_range_visitor_unittest.cc", |
| 113 "difference_estimator_unittest.cc", | 115 "difference_estimator_unittest.cc", |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 "encoded_program_fuzz_unittest.cc", | 154 "encoded_program_fuzz_unittest.cc", |
| 153 ] | 155 ] |
| 154 deps = [ | 156 deps = [ |
| 155 ":courgette_lib", | 157 ":courgette_lib", |
| 156 "//base", | 158 "//base", |
| 157 "//base:i18n", | 159 "//base:i18n", |
| 158 "//base/test:test_support", | 160 "//base/test:test_support", |
| 159 "//testing/gtest", | 161 "//testing/gtest", |
| 160 ] | 162 ] |
| 161 } | 163 } |
| OLD | NEW |