1 # Copyright 2014 Google Inc. 2 # 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 6 { 7 'variables': { 8 'skia_warnings_as_errors': 0, 9 }, 10 'targets': [ 11 { 12 'target_name': 'giflib', 13 'conditions': [ 14 [ 'skia_android_framework == 0', 15 { 16 'type': 'static_library', 17 'include_dirs': [ 18 '../third_party/externals/giflib', 19 ], 20 'dependencies': [ 21 ], 22 'direct_dependent_settings': { 23 'include_dirs': [ 24 '../third_party/externals/giflib', 25 ], 26 }, 27 'cflags': [ 28 '-w', 29 ], 30 'xcode_settings': { 31 'WARNING_CFLAGS': [ 32 '-w' 33 ], 34 }, 35 'msvs_settings': { 36 'VCCLCompilerTool': { 37 'AdditionalOptions': [ 38 '/w', 39 ], 40 }, 41 }, 42 'sources': [ 43 '../third_party/externals/giflib/dgif_lib.c', 44 '../third_party/externals/giflib/gifalloc.c', 45 '../third_party/externals/giflib/gif_err.c', 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 ], 56 }, { # skia_android_framework 57 'type': 'none', 58 'direct_dependent_settings': { 59 'libraries' : [ 60 'libgif.a', 61 ], 62 'include_dirs': [ 63 'external/giflib', 64 ] 65 } 66 } 67 ] 68 ] 69 } 70 ] 71 } 72