| 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 if (!is_linux || is_chromeos) { | 6 if (!is_linux || is_chromeos) { |
| 7 # TODO(thestig): Properly support building on Linux. | 7 # TODO(thestig): Properly support building on Linux. |
| 8 config("libexif_config") { | 8 config("libexif_config") { |
| 9 include_dirs = [ "sources" ] | 9 include_dirs = [ "sources" ] |
| 10 if (is_clang) { | 10 if (is_clang) { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 if (is_win) { | 54 if (is_win) { |
| 55 defines = [ | 55 defines = [ |
| 56 # This seems like a hack, but this is what WebKit Win does. | 56 # This seems like a hack, but this is what WebKit Win does. |
| 57 "snprintf=_snprintf", | 57 "snprintf=_snprintf", |
| 58 "inline=__inline", | 58 "inline=__inline", |
| 59 ] | 59 ] |
| 60 | 60 |
| 61 ldflags = [ "/DEF:" + rebase_path("libexif.def") ] | 61 ldflags = [ "/DEF:" + rebase_path("libexif.def") ] |
| 62 | 62 |
| 63 cflags = [ "/wd4018" ] # size/unsigned mismatch | 63 cflags = [ "/wd4018" ] # Signed/unsigned mismatch in comparison. |
| 64 | 64 |
| 65 # TODO(GYP): Handle /analyze switch, when it will be used in GN. | 65 # TODO(GYP): Handle /analyze switch, when it will be used in GN. |
| 66 } else if (is_linux) { | 66 } else if (is_linux) { |
| 67 libs = [ "m" ] | 67 libs = [ "m" ] |
| 68 } | 68 } |
| 69 | 69 |
| 70 configs -= [ "//build/config/compiler:chromium_code" ] | 70 configs -= [ "//build/config/compiler:chromium_code" ] |
| 71 configs += [ "//build/config/compiler:no_chromium_code" ] | 71 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 72 | 72 |
| 73 public_configs = [ ":libexif_config" ] | 73 public_configs = [ ":libexif_config" ] |
| 74 } | 74 } |
| 75 } | 75 } |
| OLD | NEW |