| 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_android_framework == 0', | 14 [ 'skia_android_framework == 0', |
| 15 { | 15 { |
| 16 'type': 'static_library', | 16 'type': 'static_library', |
| 17 'defines': [ | |
| 18 'HAVE_CONFIG_H', | |
| 19 ], | |
| 20 'include_dirs': [ | 17 'include_dirs': [ |
| 21 '../third_party/externals/giflib', | 18 '../third_party/externals/giflib', |
| 22 ], | 19 ], |
| 23 'dependencies': [ | 20 'dependencies': [ |
| 24 ], | 21 ], |
| 25 'direct_dependent_settings': { | 22 'direct_dependent_settings': { |
| 26 'include_dirs': [ | 23 'include_dirs': [ |
| 27 '../third_party/externals/giflib', | 24 '../third_party/externals/giflib', |
| 28 ], | 25 ], |
| 29 }, | 26 }, |
| 30 'cflags': [ | 27 'cflags': [ |
| 31 '-w', | 28 '-w', |
| 32 ], | 29 ], |
| 33 'xcode_settings': { | 30 'xcode_settings': { |
| 34 'WARNING_CFLAGS': [ | 31 'WARNING_CFLAGS': [ |
| 35 '-w' | 32 '-w' |
| 36 ], | 33 ], |
| 37 }, | 34 }, |
| 35 'msvs_settings': { |
| 36 'VCCLCompilerTool': { |
| 37 'AdditionalOptions': [ |
| 38 '/w', |
| 39 ], |
| 40 }, |
| 41 }, |
| 38 'sources': [ | 42 'sources': [ |
| 39 '../third_party/externals/giflib/dgif_lib.c', | 43 '../third_party/externals/giflib/dgif_lib.c', |
| 40 '../third_party/externals/giflib/gifalloc.c', | 44 '../third_party/externals/giflib/gifalloc.c', |
| 41 '../third_party/externals/giflib/gif_err.c', | 45 '../third_party/externals/giflib/gif_err.c', |
| 42 ], | 46 ], |
| 47 'conditions' : [ |
| 48 [ 'skia_os == "win"', { |
| 49 'include_dirs': [ |
| 50 # Used to include a dummy unistd.h file for windows |
| 51 '../third_party/giflib', |
| 52 ], |
| 53 }, |
| 54 ], |
| 55 ], |
| 43 }, { # skia_android_framework | 56 }, { # skia_android_framework |
| 44 'type': 'none', | 57 'type': 'none', |
| 45 'direct_dependent_settings': { | 58 'direct_dependent_settings': { |
| 46 'libraries' : [ | 59 'libraries' : [ |
| 47 'libgif.a', | 60 'libgif.a', |
| 48 ], | 61 ], |
| 49 'include_dirs': [ | 62 'include_dirs': [ |
| 50 'external/giflib', | 63 'external/giflib', |
| 51 ] | 64 ] |
| 52 } | 65 } |
| 53 } | 66 } |
| 54 ] | 67 ] |
| 55 ] | 68 ] |
| 56 } | 69 } |
| 57 ] | 70 ] |
| 58 } | 71 } |
| OLD | NEW |