blob: 89b863a94d4138147164b85c97041f4204d18fb6 [file] [log] [blame]
# Copyright 2015 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.
# A tool that removes all non-interface-specific parts from a .jar file.
if (current_toolchain == host_toolchain) {
executable("ijar") {
sources = [
"classfile.cc",
"common.h",
"ijar.cc",
"mapped_file.h",
"zip.cc",
"zip.h",
]
if (is_win) {
sources += [ "mapped_file_windows.cc" ]
} else {
sources += [ "mapped_file_unix.cc" ]
}
# Always build release since this is a build tool.
if (is_debug) {
configs -= [ "//build/config:debug" ]
configs += [ "//build/config:release" ]
}
ldflags = [ "-lz" ]
}
}