| OLD | NEW |
| 1 # Copyright 2014 Google Inc. | 1 # Copyright 2014 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 { | 6 { |
| 7 'variables': { | 7 'variables': { |
| 8 'skia_warnings_as_errors': 0, | 8 'skia_warnings_as_errors': 0, |
| 9 }, | 9 }, |
| 10 'targets': [ | 10 'targets': [ |
| 11 { | 11 { |
| 12 'target_name': 'giflib', | 12 'target_name': 'giflib', |
| 13 'conditions': [ | 13 'conditions': [ |
| 14 [ 'skia_giflib_static', | 14 [ 'skia_android_framework == 0', |
| 15 { | 15 { |
| 16 'type': 'static_library', | 16 'type': 'static_library', |
| 17 'defines': [ | 17 'defines': [ |
| 18 'HAVE_CONFIG_H', | 18 'HAVE_CONFIG_H', |
| 19 ], | 19 ], |
| 20 'include_dirs': [ | 20 'include_dirs': [ |
| 21 '../third_party/externals/giflib', | 21 '../third_party/externals/giflib', |
| 22 ], | 22 ], |
| 23 'dependencies': [ | 23 'dependencies': [ |
| 24 ], | 24 ], |
| 25 'direct_dependent_settings': { | 25 'direct_dependent_settings': { |
| 26 'include_dirs': [ | 26 'include_dirs': [ |
| 27 '../third_party/externals/giflib', | 27 '../third_party/externals/giflib', |
| 28 ], | 28 ], |
| 29 }, | 29 }, |
| 30 'cflags': [ | 30 'cflags': [ |
| 31 '-w', | 31 '-w', |
| 32 ], | 32 ], |
| 33 'sources': [ | 33 'sources': [ |
| 34 '../third_party/externals/giflib/dgif_lib.c', | 34 '../third_party/externals/giflib/dgif_lib.c', |
| 35 '../third_party/externals/giflib/gifalloc.c', | 35 '../third_party/externals/giflib/gifalloc.c', |
| 36 '../third_party/externals/giflib/gif_err.c', | 36 '../third_party/externals/giflib/gif_err.c', |
| 37 ], | 37 ], |
| 38 }, { # not skia_giflib_static | 38 }, { # skia_android_framework |
| 39 'type': 'none', | 39 'type': 'none', |
| 40 'direct_dependent_settings': { | 40 'direct_dependent_settings': { |
| 41 'link_settings': { | 41 'libraries' : [ |
| 42 'libraries': [ | 42 'libgif.a', |
| 43 '-lgif', | 43 ], |
| 44 ], | 44 'include_dirs': [ |
| 45 }, | 45 'external/giflib', |
| 46 }, | 46 ] |
| 47 } |
| 47 } | 48 } |
| 48 ], | 49 ] |
| 49 ] | 50 ] |
| 50 } | 51 } |
| 51 ] | 52 ] |
| 52 } | 53 } |
| OLD | NEW |