Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # Linux should use system libexif | |
| 6 if (!is_linux || is_chromeos) { | |
| 7 | |
| 8 # TODO(thestig): Properly support building on Linux. | |
| 9 config("libexif_config") { | |
| 10 include_dirs = [ "sources" ] | |
| 11 } | |
| 12 | |
| 13 static_library("libexif") { | |
|
Nico
2015/09/02 22:54:49
doesn't this have to be a dll? image_metadata_extr
Slava Chigrin
2015/09/03 19:28:17
Yes, my bad. In GYP it defined ad "loadable_module
| |
| 14 sources = [ | |
| 15 "sources/libexif/exif-byte-order.c", | |
| 16 "sources/libexif/exif-content.c", | |
| 17 "sources/libexif/exif-data.c", | |
| 18 "sources/libexif/exif-entry.c", | |
| 19 "sources/libexif/exif-format.c", | |
| 20 "sources/libexif/exif-ifd.c", | |
| 21 "sources/libexif/exif-loader.c", | |
| 22 "sources/libexif/exif-log.c", | |
| 23 "sources/libexif/exif-mem.c", | |
| 24 "sources/libexif/exif-mnote-data.c", | |
| 25 "sources/libexif/exif-tag.c", | |
| 26 "sources/libexif/exif-utils.c", | |
| 27 "sources/libexif/canon/exif-mnote-data-canon.c", | |
| 28 "sources/libexif/canon/mnote-canon-entry.c", | |
| 29 "sources/libexif/canon/mnote-canon-tag.c", | |
| 30 "sources/libexif/fuji/exif-mnote-data-fuji.c", | |
| 31 "sources/libexif/fuji/mnote-fuji-entry.c", | |
| 32 "sources/libexif/fuji/mnote-fuji-tag.c", | |
| 33 "sources/libexif/olympus/exif-mnote-data-olympus.c", | |
| 34 "sources/libexif/olympus/mnote-olympus-entry.c", | |
| 35 "sources/libexif/olympus/mnote-olympus-tag.c", | |
| 36 "sources/libexif/pentax/exif-mnote-data-pentax.c", | |
| 37 "sources/libexif/pentax/mnote-pentax-entry.c", | |
| 38 "sources/libexif/pentax/mnote-pentax-tag.c", | |
| 39 ] | |
| 40 | |
| 41 include_dirs = [ "sources" ] | |
| 42 | |
| 43 # TODO(GYP): Additional options for non-Windows platforms. | |
| 44 | |
| 45 if (is_win) { | |
| 46 defines = [ | |
| 47 # This seems like a hack, but this is what WebKit Win does. | |
| 48 "snprintf=_snprintf", | |
| 49 "inline=__inline", | |
| 50 ] | |
| 51 | |
| 52 ldflags = [ "/DEF:" + rebase_path("libexif.def") ] | |
| 53 | |
| 54 cflags = [ | |
| 55 "/wd4018", # size/unsigned mismatch | |
| 56 "/wd4267", # size_t -> ExifLong truncation on amd64 | |
| 57 ] | |
| 58 | |
| 59 # TODO(GYP): Handle /analyze switch, when it will be used in GN. | |
| 60 } | |
| 61 | |
| 62 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 63 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 64 | |
| 65 public_configs = [ ":libexif_config" ] | |
| 66 } | |
| 67 } | |
| OLD | NEW |