1 # Copyright (c) 2012 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.
8 # TODO(kmadhusu): We are not ready to build this library on Android.
9 # Resolve the issues and build on Android.
10 ['os_posix==1 and OS!="mac"', {
11 'use_system_libexif%': 0,
12 }, { # os_posix != 1 or OS == "mac"
13 'use_system_libexif%': 0,
18 ['use_system_libexif==0', {
21 'target_name': 'libexif',
22 'type': 'shared_library',
23 'product_name': 'exif',
25 'sources/libexif/exif-byte-order.c',
26 'sources/libexif/exif-content.c',
27 'sources/libexif/exif-data.c',
28 'sources/libexif/exif-entry.c',
29 'sources/libexif/exif-format.c',
30 'sources/libexif/exif-ifd.c',
31 'sources/libexif/exif-loader.c',
32 'sources/libexif/exif-log.c',
33 'sources/libexif/exif-mem.c',
34 'sources/libexif/exif-mnote-data.c',
35 'sources/libexif/exif-tag.c',
36 'sources/libexif/exif-utils.c',
37 'sources/libexif/canon/exif-mnote-data-canon.c',
38 'sources/libexif/canon/mnote-canon-entry.c',
39 'sources/libexif/canon/mnote-canon-tag.c',
40 'sources/libexif/fuji/exif-mnote-data-fuji.c',
41 'sources/libexif/fuji/mnote-fuji-entry.c',
42 'sources/libexif/fuji/mnote-fuji-tag.c',
43 'sources/libexif/olympus/exif-mnote-data-olympus.c',
44 'sources/libexif/olympus/mnote-olympus-entry.c',
45 'sources/libexif/olympus/mnote-olympus-tag.c',
46 'sources/libexif/pentax/exif-mnote-data-pentax.c',
47 'sources/libexif/pentax/mnote-pentax-entry.c',
48 'sources/libexif/pentax/mnote-pentax-tag.c',
53 'direct_dependent_settings': {
59 ['os_posix==1 and OS!="mac"', {
60 'cflags!': ['-fvisibility=hidden'],
71 'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO', # no -fvisibility=hidden
72 # TODO(kmadhusu): Copy this dylib to Versions folder.
73 # (Do something similar to libplugin_carbon_interpose.dylib).
74 'DYLIB_INSTALL_NAME_BASE': '@executable_path/../../..',
78 'product_name': 'libexif',
81 'ModuleDefinitionFile': 'libexif.def',
85 # This seems like a hack, but this is what WebKit Win does.
93 }, { # 'use_system_libexif==0
97 'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
101 'pkg-config': 'pkg-config'
107 'target_name': 'libexif',
109 'direct_dependent_settings': {
111 '<!@(<(pkg-config) --cflags libexif)',
114 'USE_SYSTEM_LIBEXIF',
119 '<!@(<(pkg-config) --libs-only-L --libs-only-other libexif)',
122 '<!@(<(pkg-config) --libs-only-l libexif)',