blob: 333a00899cfe97d0e43afb08afeb26c51274c380 [file] [log] [blame]
# Copyright 2018 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.
if (safe_browsing_mode == 1) {
static_library("unrar") {
sources = [
if (is_win) {
sources += [ "src/isnt.cpp" ]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [
# This must be after no_chromium_code for warning flags to be ordered correctly
defines = [
# The following is set to disable certain macro definitions in the unrar
# source code.
# Disables exceptions in unrar, replaces them with process termination.
deps = [
config("unrar_warnings") {
cflags = [
# unrar frequently drops parentheses around logical ops
# unrar frequently has dangling elses
# unrar has several non-exhaustive switch statements
# unrar has several unused functions
# unrar has missing braces for initialization in rarvm.cpp