summaryrefslogtreecommitdiffstats
path: root/third_party/libexif/libexif.gyp
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 20:39:36 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 20:39:36 +0000
commit47d1a47a5af989e191ef0eccf314c8f1e02c5a43 (patch)
treebb54b21e1bb275ab6a7ff6bab36054a5ee8ba5d3 /third_party/libexif/libexif.gyp
parentb07bbdd73a0bbe6d8e1423a8a003de8ee90c4c7b (diff)
downloadchromium_src-47d1a47a5af989e191ef0eccf314c8f1e02c5a43.zip
chromium_src-47d1a47a5af989e191ef0eccf314c8f1e02c5a43.tar.gz
chromium_src-47d1a47a5af989e191ef0eccf314c8f1e02c5a43.tar.bz2
Reland 142154: Adds libexif gyp file to third_party to handle image metadata.
libexif source files are added to deps/third_party/libexif(r141967). This change doesn't make us use the library yet, that will be the next step. This is a no-op change from the point of view of the build. Please find the previous review comments at http://codereview.chromium.org/10391195. BUG=none TEST=none TBR=thestig@chromium.org Review URL: https://chromiumcodereview.appspot.com/10562037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142799 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/libexif/libexif.gyp')
-rw-r--r--third_party/libexif/libexif.gyp129
1 files changed, 129 insertions, 0 deletions
diff --git a/third_party/libexif/libexif.gyp b/third_party/libexif/libexif.gyp
new file mode 100644
index 0000000..20aa227
--- /dev/null
+++ b/third_party/libexif/libexif.gyp
@@ -0,0 +1,129 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ 'conditions': [
+ # TODO(kmadhusu): We are not ready to build this library on Android.
+ # Resolve the issues and build on Android.
+ ['os_posix==1 and OS!="mac"', {
+ 'use_system_libexif%': 0,
+ }, { # os_posix != 1 or OS == "mac"
+ 'use_system_libexif%': 0,
+ }],
+ ],
+ },
+ 'conditions': [
+ ['use_system_libexif==0', {
+ 'targets': [
+ {
+ 'target_name': 'libexif',
+ 'type': 'shared_library',
+ 'product_name': 'exif',
+ 'sources': [
+ 'sources/libexif/exif-byte-order.c',
+ 'sources/libexif/exif-content.c',
+ 'sources/libexif/exif-data.c',
+ 'sources/libexif/exif-entry.c',
+ 'sources/libexif/exif-format.c',
+ 'sources/libexif/exif-ifd.c',
+ 'sources/libexif/exif-loader.c',
+ 'sources/libexif/exif-log.c',
+ 'sources/libexif/exif-mem.c',
+ 'sources/libexif/exif-mnote-data.c',
+ 'sources/libexif/exif-tag.c',
+ 'sources/libexif/exif-utils.c',
+ 'sources/libexif/canon/exif-mnote-data-canon.c',
+ 'sources/libexif/canon/mnote-canon-entry.c',
+ 'sources/libexif/canon/mnote-canon-tag.c',
+ 'sources/libexif/fuji/exif-mnote-data-fuji.c',
+ 'sources/libexif/fuji/mnote-fuji-entry.c',
+ 'sources/libexif/fuji/mnote-fuji-tag.c',
+ 'sources/libexif/olympus/exif-mnote-data-olympus.c',
+ 'sources/libexif/olympus/mnote-olympus-entry.c',
+ 'sources/libexif/olympus/mnote-olympus-tag.c',
+ 'sources/libexif/pentax/exif-mnote-data-pentax.c',
+ 'sources/libexif/pentax/mnote-pentax-entry.c',
+ 'sources/libexif/pentax/mnote-pentax-tag.c',
+ ],
+ 'include_dirs': [
+ 'sources',
+ ],
+ 'direct_dependent_settings': {
+ 'include_dirs': [
+ 'sources',
+ ],
+ },
+ 'conditions': [
+ ['os_posix==1 and OS!="mac"', {
+ 'cflags!': ['-fvisibility=hidden'],
+ }],
+ ['OS=="mac"', {
+ 'conditions': [
+ ['mac_breakpad==1', {
+ 'variables': {
+ 'mac_real_dsym': 1,
+ },
+ }],
+ ],
+ 'xcode_settings': {
+ 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # no -fvisibility=hidden
+ # TODO(kmadhusu): Copy this dylib to Versions folder.
+ # (Do something similar to libplugin_carbon_interpose.dylib).
+ 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../../..',
+ },
+ }],
+ ['OS=="win"', {
+ 'product_name': 'libexif',
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'ModuleDefinitionFile': 'libexif.def',
+ },
+ },
+ 'defines': [
+ # This seems like a hack, but this is what WebKit Win does.
+ 'snprintf=_snprintf',
+ 'inline=__inline',
+ ],
+ }],
+ ],
+ },
+ ],
+ }, { # 'use_system_libexif==0
+ 'conditions': [
+ ['sysroot!=""', {
+ 'variables': {
+ 'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
+ },
+ }, {
+ 'variables': {
+ 'pkg-config': 'pkg-config'
+ },
+ }],
+ ],
+ 'targets': [
+ {
+ 'target_name': 'libexif',
+ 'type': 'none',
+ 'direct_dependent_settings': {
+ 'cflags': [
+ '<!@(<(pkg-config) --cflags libexif)',
+ ],
+ 'defines': [
+ 'USE_SYSTEM_LIBEXIF',
+ ],
+ },
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(<(pkg-config) --libs-only-L --libs-only-other libexif)',
+ ],
+ 'libraries': [
+ '<!@(<(pkg-config) --libs-only-l libexif)',
+ ],
+ },
+ }
+ ],
+ }],
+ ]
+}