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) { | |
|
Lei Zhang
2015/01/14 23:17:41
Don't you need to handle the linux case as well? A
Slava Chigrin
2015/01/15 08:07:45
Done. Although I thought that chromium already com
| |
| 7 config("libexif_config") { | |
| 8 include_dirs = [ "sources" ] | |
| 9 } | |
| 10 | |
| 11 static_library("libexif") { | |
| 12 sources = [ | |
| 13 "sources/libexif/exif-byte-order.c", | |
| 14 "sources/libexif/exif-content.c", | |
| 15 "sources/libexif/exif-data.c", | |
| 16 "sources/libexif/exif-entry.c", | |
| 17 "sources/libexif/exif-format.c", | |
| 18 "sources/libexif/exif-ifd.c", | |
| 19 "sources/libexif/exif-loader.c", | |
| 20 "sources/libexif/exif-log.c", | |
| 21 "sources/libexif/exif-mem.c", | |
| 22 "sources/libexif/exif-mnote-data.c", | |
| 23 "sources/libexif/exif-tag.c", | |
| 24 "sources/libexif/exif-utils.c", | |
| 25 "sources/libexif/canon/exif-mnote-data-canon.c", | |
| 26 "sources/libexif/canon/mnote-canon-entry.c", | |
| 27 "sources/libexif/canon/mnote-canon-tag.c", | |
| 28 "sources/libexif/fuji/exif-mnote-data-fuji.c", | |
| 29 "sources/libexif/fuji/mnote-fuji-entry.c", | |
| 30 "sources/libexif/fuji/mnote-fuji-tag.c", | |
| 31 "sources/libexif/olympus/exif-mnote-data-olympus.c", | |
| 32 "sources/libexif/olympus/mnote-olympus-entry.c", | |
| 33 "sources/libexif/olympus/mnote-olympus-tag.c", | |
| 34 "sources/libexif/pentax/exif-mnote-data-pentax.c", | |
| 35 "sources/libexif/pentax/mnote-pentax-entry.c", | |
| 36 "sources/libexif/pentax/mnote-pentax-tag.c", | |
| 37 ] | |
| 38 | |
| 39 include_dirs = [ "sources" ] | |
| 40 | |
| 41 #TODO(GYP): Additional options for non-Windows platforms. | |
|
Slava Chigrin
2015/01/14 20:08:30
At present I am focused on making GN work on Windo
| |
| 42 | |
| 43 if (is_win) { | |
| 44 defines = [ | |
| 45 # This seems like a hack, but this is what WebKit Win does. | |
|
Slava Chigrin
2015/01/14 20:08:30
Taken from GYP - see https://code.google.com/p/chr
| |
| 46 "snprintf=_snprintf", | |
| 47 "inline=__inline", | |
| 48 ] | |
| 49 | |
| 50 ldflags = [ "/DEF:" + rebase_path("libexif.def") ] | |
| 51 | |
| 52 cflags = [ | |
| 53 "/wd4018", # size/unsigned mismatch | |
| 54 "/wd4267", # size_t -> ExifLong truncation on amd64 | |
| 55 ] | |
| 56 } | |
| 57 | |
| 58 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 59 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 60 | |
| 61 public_configs = [ ":libexif_config" ] | |
| 62 } | |
| 63 } | |
| OLD | NEW |