blob: e9d990565b6d8deae257aa9d23dc9243da6fe677 [file] [log] [blame]
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +00001# 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': [
msarett6d0e7b22015-03-30 07:52:52 -070014 [ 'skia_android_framework == 0',
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000015 {
16 'type': 'static_library',
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000017 '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 ],
msarett9b3edef2015-03-30 11:59:36 -070030 'xcode_settings': {
31 'WARNING_CFLAGS': [
32 '-w'
33 ],
34 },
msarett8c8f22a2015-04-01 06:58:48 -070035 'msvs_settings': {
36 'VCCLCompilerTool': {
37 'AdditionalOptions': [
38 '/w',
39 ],
40 },
41 },
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000042 '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 ],
msarett8c8f22a2015-04-01 06:58:48 -070047 '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 ],
msarett6d0e7b22015-03-30 07:52:52 -070056 }, { # skia_android_framework
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000057 'type': 'none',
58 'direct_dependent_settings': {
msarett6d0e7b22015-03-30 07:52:52 -070059 'libraries' : [
60 'libgif.a',
61 ],
62 'include_dirs': [
63 'external/giflib',
64 ]
65 }
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000066 }
msarett6d0e7b22015-03-30 07:52:52 -070067 ]
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000068 ]
69 }
70 ]
71}