blob: f4f853200fbae9d0d879ca86e02f8c345d0a1861 [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': [
msarett0e6ff382015-08-24 12:00:15 -070038 '/wd4996',
39 '/wd4018',
40 '/wd4267',
msarett8c8f22a2015-04-01 06:58:48 -070041 ],
42 },
43 },
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000044 '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 ],
msarett8c8f22a2015-04-01 06:58:48 -070049 '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 ],
msarett6d0e7b22015-03-30 07:52:52 -070058 }, { # skia_android_framework
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000059 'type': 'none',
60 'direct_dependent_settings': {
msarett6d0e7b22015-03-30 07:52:52 -070061 'libraries' : [
62 'libgif.a',
63 ],
64 'include_dirs': [
65 'external/giflib',
66 ]
67 }
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000068 }
msarett6d0e7b22015-03-30 07:52:52 -070069 ]
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000070 ]
71 }
72 ]
73}