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', |
19 # Used to include a dummy unistd.h file for windows | |
20 '../third_party/giflib', | |
22 ], | 21 ], |
23 'dependencies': [ | 22 'dependencies': [ |
24 ], | 23 ], |
25 'direct_dependent_settings': { | 24 'direct_dependent_settings': { |
26 'include_dirs': [ | 25 'include_dirs': [ |
27 '../third_party/externals/giflib', | 26 '../third_party/externals/giflib', |
28 ], | 27 ], |
29 }, | 28 }, |
30 'cflags': [ | 29 'cflags': [ |
31 '-w', | 30 '-w', |
32 ], | 31 ], |
33 'xcode_settings': { | 32 'xcode_settings': { |
34 'WARNING_CFLAGS': [ | 33 'WARNING_CFLAGS': [ |
35 '-w' | 34 '-w' |
36 ], | 35 ], |
37 }, | 36 }, |
37 'msvs_settings': { | |
38 'VCCLCompilerTool': { | |
39 'AdditionalOptions': [ | |
40 '/w', | |
41 ], | |
42 'AdditionalOptions!': [ | |
43 # Remove the default warning flag | |
44 '/W3', | |
scroggo
2015/03/31 18:39:56
I guess this did not work?
msarett
2015/03/31 20:11:40
Unfortunately not. I did a grep for "W3" and it d
scroggo
2015/03/31 20:39:11
I would say no, until someone complains about it.
| |
45 ], | |
46 }, | |
47 }, | |
38 'sources': [ | 48 'sources': [ |
39 '../third_party/externals/giflib/dgif_lib.c', | 49 '../third_party/externals/giflib/dgif_lib.c', |
40 '../third_party/externals/giflib/gifalloc.c', | 50 '../third_party/externals/giflib/gifalloc.c', |
41 '../third_party/externals/giflib/gif_err.c', | 51 '../third_party/externals/giflib/gif_err.c', |
42 ], | 52 ], |
43 }, { # skia_android_framework | 53 }, { # skia_android_framework |
44 'type': 'none', | 54 'type': 'none', |
45 'direct_dependent_settings': { | 55 'direct_dependent_settings': { |
46 'libraries' : [ | 56 'libraries' : [ |
47 'libgif.a', | 57 'libgif.a', |
48 ], | 58 ], |
49 'include_dirs': [ | 59 'include_dirs': [ |
50 'external/giflib', | 60 'external/giflib', |
51 ] | 61 ] |
52 } | 62 } |
53 } | 63 } |
54 ] | 64 ] |
55 ] | 65 ] |
56 } | 66 } |
57 ] | 67 ] |
58 } | 68 } |
OLD | NEW |