OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # A tool that removes all non-interface-specific parts from a .jar file. | 5 # A tool that removes all non-interface-specific parts from a .jar file. |
6 | 6 |
7 if (current_toolchain == host_toolchain) { | 7 if (current_toolchain == host_toolchain) { |
8 executable("ijar") { | 8 executable("ijar") { |
9 sources = [ | 9 sources = [ |
10 "classfile.cc", | 10 "classfile.cc", |
11 "common.h", | 11 "common.h", |
12 "ijar.cc", | 12 "ijar.cc", |
13 "mapped_file.h", | 13 "mapped_file.h", |
14 "zip.cc", | 14 "zip.cc", |
15 "zip.h", | 15 "zip.h", |
16 ] | 16 ] |
17 if (is_win) { | 17 if (is_win) { |
18 sources += [ "mapped_file_windows.cc" ] | 18 sources += [ "mapped_file_windows.cc" ] |
19 } else { | 19 } else { |
20 sources += [ "mapped_file_unix.cc" ] | 20 sources += [ "mapped_file_unix.cc" ] |
21 } | 21 } |
22 | 22 |
23 # Always build release since this is a build tool. | 23 # Always build release since this is a build tool. |
24 if (is_debug) { | 24 if (is_debug) { |
25 configs -= [ "//build/config:debug" ] | 25 configs -= [ "//build/config:debug" ] |
26 configs += [ "//build/config:release" ] | 26 configs += [ "//build/config:release" ] |
27 } | 27 } |
28 ldflags = [ "-lz" ] | 28 ldflags = [ "-lz" ] |
29 deps = [ | 29 deps = [ |
30 "//build/config/sanitizers:deps", | 30 "//build/config:exe_and_shlib_deps", |
31 ] | 31 ] |
32 } | 32 } |
33 } | 33 } |
OLD | NEW |