commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 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': [ |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 14 | [ 'skia_android_framework == 0', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 15 | { |
| 16 | 'type': 'static_library', |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 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 | ], |
msarett | 9b3edef | 2015-03-30 11:59:36 -0700 | [diff] [blame] | 30 | 'xcode_settings': { |
| 31 | 'WARNING_CFLAGS': [ |
| 32 | '-w' |
| 33 | ], |
| 34 | }, |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 35 | 'msvs_settings': { |
| 36 | 'VCCLCompilerTool': { |
| 37 | 'AdditionalOptions': [ |
msarett | 0e6ff38 | 2015-08-24 12:00:15 -0700 | [diff] [blame] | 38 | '/wd4996', |
| 39 | '/wd4018', |
| 40 | '/wd4267', |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 41 | ], |
| 42 | }, |
| 43 | }, |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 44 | 'sources': [ |
| 45 | '../third_party/externals/giflib/dgif_lib.c', |
| 46 | '../third_party/externals/giflib/gifalloc.c', |
| 47 | '../third_party/externals/giflib/gif_err.c', |
| 48 | ], |
msarett | 8c8f22a | 2015-04-01 06:58:48 -0700 | [diff] [blame] | 49 | 'conditions' : [ |
| 50 | [ 'skia_os == "win"', { |
| 51 | 'include_dirs': [ |
| 52 | # Used to include a dummy unistd.h file for windows |
| 53 | '../third_party/giflib', |
| 54 | ], |
| 55 | }, |
| 56 | ], |
| 57 | ], |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 58 | }, { # skia_android_framework |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 59 | 'type': 'none', |
| 60 | 'direct_dependent_settings': { |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 61 | 'libraries' : [ |
| 62 | 'libgif.a', |
| 63 | ], |
| 64 | 'include_dirs': [ |
| 65 | 'external/giflib', |
| 66 | ] |
| 67 | } |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 68 | } |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 69 | ] |
commit-bot@chromium.org | f84722e | 2014-02-24 20:22:34 +0000 | [diff] [blame] | 70 | ] |
| 71 | } |
| 72 | ] |
| 73 | } |