OLD | NEW |
1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This is a copy of ../third_party/externals/libjpeg/libjpeg.gyp , modified | 5 # This is a copy of ../third_party/externals/libjpeg/libjpeg.gyp , modified |
6 # such that all source paths point into that directory. | 6 # such that all source paths point into that directory. |
7 # See http://code.google.com/p/skia/issues/detail?id=543 ('wrap libjpeg.gyp | 7 # See http://code.google.com/p/skia/issues/detail?id=543 ('wrap libjpeg.gyp |
8 # from Chrome's libjpeg port, rather than making our own copy') for a better | 8 # from Chrome's libjpeg port, rather than making our own copy') for a better |
9 # long-term solution. | 9 # long-term solution. |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 '../third_party/externals/libjpeg/jquant2.c', | 73 '../third_party/externals/libjpeg/jquant2.c', |
74 '../third_party/externals/libjpeg/jutils.c', | 74 '../third_party/externals/libjpeg/jutils.c', |
75 '../third_party/externals/libjpeg/jversion.h', | 75 '../third_party/externals/libjpeg/jversion.h', |
76 ], | 76 ], |
77 'direct_dependent_settings': { | 77 'direct_dependent_settings': { |
78 'include_dirs': [ | 78 'include_dirs': [ |
79 '../third_party/externals/libjpeg', | 79 '../third_party/externals/libjpeg', |
80 ], | 80 ], |
81 }, | 81 }, |
82 'conditions': [ | 82 'conditions': [ |
83 ['OS!="win"', { | 83 [ 'skia_os != "win"', { |
84 'product_name': 'jpeg', | 84 'product_name': 'jpeg', |
85 'cflags': [ | 85 'cflags': [ |
86 '-Wno-main', # supresses warnings about naming things "main" | 86 '-Wno-main', # supresses warnings about naming things "main" |
87 ], | 87 ], |
88 }], | 88 }], |
89 ['OS=="android"', { | 89 [ 'skia_os == "android"', { |
90 'cflags!': [ | 90 'cflags!': [ |
91 '-fno-rtti', # supresses warnings about invalid option of non-C++
code | 91 '-fno-rtti', # supresses warnings about invalid option of non-C++
code |
92 '-Wall', | 92 '-Wall', |
93 '-Werror', | |
94 ], | 93 ], |
95 }], | 94 }], |
96 ['OS in ["linux", "freebsd", "openbsd", "solaris", "nacl"]', { | 95 # Turn off warnings as errors. |
97 'cflags!': [ | 96 [ 'skia_warnings_as_errors', { |
98 '-Werror', | 97 'conditions': [ |
| 98 [ 'skia_os == "mac"', { |
| 99 'xcode_settings': { |
| 100 'OTHER_CPLUSPLUSFLAGS!': [ |
| 101 '-Werror', |
| 102 ] |
| 103 }, |
| 104 }], |
| 105 [ 'skia_os == "win"', { |
| 106 'msvs_settings': { |
| 107 'VCCLCompilerTool': { |
| 108 'WarnAsError': 'false', |
| 109 }, |
| 110 }, |
| 111 }], |
| 112 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl",
"android"]', { |
| 113 'cflags!': [ |
| 114 '-Werror', |
| 115 ], |
| 116 }], |
99 ], | 117 ], |
100 }], | 118 }], |
101 ], | 119 ], |
102 }, | 120 }, |
103 ], | 121 ], |
104 }, { | 122 }, { |
105 'targets': [ | 123 'targets': [ |
106 { | 124 { |
107 'target_name': 'libjpeg', | 125 'target_name': 'libjpeg', |
108 'type': 'none', | 126 'type': 'none', |
(...skipping 11 matching lines...) Expand all Loading... |
120 ], | 138 ], |
121 }], | 139 }], |
122 ], | 140 ], |
123 } | 141 } |
124 | 142 |
125 # Local Variables: | 143 # Local Variables: |
126 # tab-width:2 | 144 # tab-width:2 |
127 # indent-tabs-mode:nil | 145 # indent-tabs-mode:nil |
128 # End: | 146 # End: |
129 # vim: set expandtab tabstop=2 shiftwidth=2: | 147 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |