1 # Copyright 2018 The Chromium Authors
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 config("unrar_warnings") {
7 # unrar frequently drops parentheses around logical ops
8 "-Wno-logical-op-parentheses",
10 # unrar frequently has dangling elses
13 # unrar has several non-exhaustive switch statements
16 # unrar has several unused functions
17 "-Wno-unused-function",
19 # unrar has missing braces for initialization in rarvm.cpp
20 "-Wno-missing-braces",
24 static_library("unrar") {
26 "google/unrar_wrapper.cc",
27 "google/unrar_wrapper.h",
62 "src/secpassword.cpp",
77 sources += [ "src/isnt.cpp" ]
80 configs -= [ "//build/config/compiler:chromium_code" ]
82 "//build/config/compiler:no_chromium_code",
84 # This must be after no_chromium_code for warning flags to be ordered
90 "_FILE_OFFSET_BITS=64",
96 # The following is set to disable certain macro definitions in the unrar
100 # Disables exceptions in unrar, replaces them with process termination.
101 "UNRAR_NO_EXCEPTIONS",