| 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 # Linux should use system libexif | 5 # Linux should use system libexif |
| 6 config("libexif_config") { | 6 config("libexif_config") { |
| 7 include_dirs = [ "sources" ] | 7 include_dirs = [ "sources" ] |
| 8 if (is_clang) { | 8 if (is_clang) { |
| 9 cflags = [ | 9 cflags = [ |
| 10 "-Wno-enum-conversion", | 10 "-Wno-enum-conversion", |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 libs = [ "m" ] | 77 libs = [ "m" ] |
| 78 } | 78 } |
| 79 | 79 |
| 80 configs -= [ "//build/config/compiler:chromium_code" ] | 80 configs -= [ "//build/config/compiler:chromium_code" ] |
| 81 configs += [ "//build/config/compiler:no_chromium_code" ] | 81 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 82 | 82 |
| 83 public_configs = [ ":libexif_config" ] | 83 public_configs = [ ":libexif_config" ] |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 # used by libfuzzer fuzzers only atm. | 87 if (is_linux) { |
| 88 source_set("libexif_fuzzers") { | 88 # used by libfuzzer fuzzers only atm. |
| 89 sources = libexif_sources | 89 source_set("libexif_fuzzers") { |
| 90 sources = libexif_sources |
| 90 | 91 |
| 91 include_dirs = [ "sources" ] | 92 include_dirs = [ "sources" ] |
| 92 | 93 |
| 93 libs = [ "m" ] | 94 libs = [ "m" ] |
| 94 | 95 |
| 95 configs -= [ "//build/config/compiler:chromium_code" ] | 96 configs -= [ "//build/config/compiler:chromium_code" ] |
| 96 configs += [ "//build/config/compiler:no_chromium_code" ] | 97 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 97 | 98 |
| 98 public_configs = [ ":libexif_config" ] | 99 public_configs = [ ":libexif_config" ] |
| 100 } |
| 99 } | 101 } |
| OLD | NEW |