Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(782)

Side by Side Diff: third_party/libexif/BUILD.gn

Issue 1579213002: build libexif_fuzzer only on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698