2012-03-26 18:29:26 +00:00
|
|
|
# Copyright 2012 The Chromium Authors. All rights reserved.
|
2012-03-16 19:01:38 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2012-03-26 18:29:26 +00:00
|
|
|
# This is a copy of ../third_party/externals/libjpeg/libjpeg.gyp , modified
|
|
|
|
# such that all source paths point into that directory.
|
|
|
|
# See http://code.google.com/p/skia/issues/detail?id=543 ('wrap libjpeg.gyp
|
|
|
|
# from Chrome's libjpeg port, rather than making our own copy') for a better
|
|
|
|
# long-term solution.
|
2012-03-16 19:01:38 +00:00
|
|
|
|
|
|
|
{
|
2012-03-26 18:29:26 +00:00
|
|
|
'variables': {
|
2012-03-26 20:04:54 +00:00
|
|
|
'use_system_libjpeg%': 0,
|
2013-03-22 13:16:06 +00:00
|
|
|
'skia_warnings_as_errors': 0,
|
2012-03-26 18:29:26 +00:00
|
|
|
},
|
|
|
|
'conditions': [
|
2013-03-20 17:45:27 +00:00
|
|
|
['skia_os == "android"', {
|
2012-03-26 18:29:26 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'libjpeg',
|
2013-03-20 17:45:27 +00:00
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'android_deps.gyp:jpeg',
|
2012-03-26 18:29:26 +00:00
|
|
|
],
|
2013-03-20 17:45:27 +00:00
|
|
|
'export_dependent_settings': [
|
|
|
|
'android_deps.gyp:jpeg',
|
2012-03-26 18:29:26 +00:00
|
|
|
],
|
|
|
|
},
|
2012-03-16 19:01:38 +00:00
|
|
|
],
|
2013-03-20 17:45:27 +00:00
|
|
|
}, { # skia_os != android
|
2015-08-11 20:32:54 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'libjpeg',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
2015-08-11 21:44:02 +00:00
|
|
|
'libjpeg-turbo.gyp:libjpeg-turbo',
|
2013-03-20 17:45:27 +00:00
|
|
|
],
|
2015-08-11 20:32:54 +00:00
|
|
|
'export_dependent_settings': [
|
2015-08-11 21:44:02 +00:00
|
|
|
'libjpeg-turbo.gyp:libjpeg-turbo',
|
2013-03-20 17:45:27 +00:00
|
|
|
],
|
2015-08-11 20:32:54 +00:00
|
|
|
},
|
2012-03-26 18:29:26 +00:00
|
|
|
],
|
|
|
|
}],
|
2012-03-16 19:01:38 +00:00
|
|
|
],
|
|
|
|
}
|