OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'conditions': [ | 7 'conditions': [ |
8 # TODO(kmadhusu): We are not ready to build this library on Android. | 8 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
Lei Zhang
2014/03/12 22:49:46
Maybe just do: OS == Linux ?
tommycli
2014/03/12 23:27:21
Works with me. What's the situation with ChromeOS
| |
9 # Resolve the issues and build on Android. | 9 'use_system_libexif%': 1, |
10 ['os_posix==1 and OS!="mac"', { | 10 }, { # os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android" |
11 'use_system_libexif%': 0, | |
12 }, { # os_posix != 1 or OS == "mac" | |
13 'use_system_libexif%': 0, | 11 'use_system_libexif%': 0, |
14 }], | 12 }], |
15 ], | 13 ], |
16 }, | 14 }, |
17 'conditions': [ | 15 'conditions': [ |
18 ['use_system_libexif==0', { | 16 ['use_system_libexif==0', { |
19 'targets': [ | 17 'targets': [ |
20 { | 18 { |
21 'target_name': 'libexif', | 19 'target_name': 'libexif', |
22 'type': 'shared_library', | 20 'type': 'shared_library', |
(...skipping 26 matching lines...) Expand all Loading... | |
49 ], | 47 ], |
50 'include_dirs': [ | 48 'include_dirs': [ |
51 'sources', | 49 'sources', |
52 ], | 50 ], |
53 'direct_dependent_settings': { | 51 'direct_dependent_settings': { |
54 'include_dirs': [ | 52 'include_dirs': [ |
55 'sources', | 53 'sources', |
56 ], | 54 ], |
57 }, | 55 }, |
58 'conditions': [ | 56 'conditions': [ |
57 ['clang==1', { | |
58 'cflags': ['-Wno-enum-conversion', '-Wno-switch'], | |
59 }], | |
59 ['os_posix==1 and OS!="mac"', { | 60 ['os_posix==1 and OS!="mac"', { |
60 'cflags!': ['-fvisibility=hidden'], | 61 'cflags!': ['-fvisibility=hidden'], |
61 }], | 62 }], |
62 ['OS=="mac"', { | 63 ['OS=="mac"', { |
63 'conditions': [ | 64 'conditions': [ |
64 ['mac_breakpad==1', { | 65 ['mac_breakpad==1', { |
65 'variables': { | 66 'variables': { |
66 'mac_real_dsym': 1, | 67 'mac_real_dsym': 1, |
67 }, | 68 }, |
68 }], | 69 }], |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 ], | 121 ], |
121 'libraries': [ | 122 'libraries': [ |
122 '<!@(<(pkg-config) --libs-only-l libexif)', | 123 '<!@(<(pkg-config) --libs-only-l libexif)', |
123 ], | 124 ], |
124 }, | 125 }, |
125 } | 126 } |
126 ], | 127 ], |
127 }], | 128 }], |
128 ] | 129 ] |
129 } | 130 } |
OLD | NEW |