2015-03-25 17:22:41 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
2015-03-30 14:52:52 +00:00
|
|
|
|
2012-08-09 15:54:28 +00:00
|
|
|
# This GYP file stores the dependencies necessary to build Skia on the Android
|
|
|
|
# platform. The OS doesn't provide many stable libraries as part of the
|
2012-08-23 18:14:13 +00:00
|
|
|
# distribution so we have to build a few of them ourselves.
|
2012-08-09 15:54:28 +00:00
|
|
|
#
|
2012-08-23 18:14:13 +00:00
|
|
|
# We tried adding this gyp file to the android directory at the root of
|
2012-08-09 15:54:28 +00:00
|
|
|
# the Skia repo, but that resulted in the generated makefiles being created
|
|
|
|
# outside of the intended output directory. So to avoid this we created a simple
|
|
|
|
# shim here that includes the android_deps.gypi file. The actual dependencies
|
2012-08-23 18:14:13 +00:00
|
|
|
# are defined and maintained in that gypi file.
|
|
|
|
#
|
2012-08-09 15:54:28 +00:00
|
|
|
# Also this assumes that the android directory is a sibling to the directory
|
|
|
|
# that contains your primary Skia checkout. If it is not then you must manually
|
|
|
|
# edit the includes below to specify the actual location of the android.gypi.
|
|
|
|
# This is due to the fact that we cannot use variables in an includes as the
|
2012-08-23 18:14:13 +00:00
|
|
|
# variable expansion step for gyp happens after the includes are processed.
|
2012-08-09 15:54:28 +00:00
|
|
|
{
|
2014-02-05 16:35:12 +00:00
|
|
|
'conditions': [
|
|
|
|
[ 'skia_android_framework == 0',
|
|
|
|
{
|
|
|
|
'includes': [
|
|
|
|
'../platform_tools/android/gyp/dependencies.gypi',
|
|
|
|
],
|
|
|
|
}, { # else skia_android_framework
|
|
|
|
'cflags': [
|
|
|
|
'-Wno-error'
|
|
|
|
],
|
|
|
|
'targets': [
|
|
|
|
{
|
2016-07-15 21:18:49 +00:00
|
|
|
'target_name': 'expat_android',
|
2014-02-05 16:35:12 +00:00
|
|
|
'type': 'none',
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'libraries' : [
|
|
|
|
'-lexpat',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'target_name': 'png',
|
|
|
|
'type': 'none',
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'libraries' : [
|
|
|
|
'-lpng',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'external/libpng',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2015-11-06 19:15:49 +00:00
|
|
|
'target_name': 'libjpeg-turbo',
|
2014-02-05 16:35:12 +00:00
|
|
|
'type': 'none',
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'libraries' : [
|
2015-12-03 17:48:54 +00:00
|
|
|
'-ljpeg',
|
2014-02-05 16:35:12 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
2015-11-06 19:15:49 +00:00
|
|
|
'external/libjpeg-turbo',
|
2014-02-05 16:35:12 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2016-01-25 16:26:16 +00:00
|
|
|
{
|
2016-01-25 19:40:02 +00:00
|
|
|
'target_name': 'libdng_sdk',
|
2016-01-25 16:26:16 +00:00
|
|
|
'type': 'none',
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'libraries' : [
|
|
|
|
'-ldng_sdk',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'external/dng_sdk',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2016-01-25 19:40:02 +00:00
|
|
|
'target_name': 'libpiex',
|
2016-01-25 16:26:16 +00:00
|
|
|
'type': 'none',
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'libraries' : [
|
|
|
|
'-lpiex',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'external/piex',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2014-02-05 16:35:12 +00:00
|
|
|
{
|
|
|
|
'target_name': 'cpu_features',
|
|
|
|
'type': 'none',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
],
|
2012-08-09 15:54:28 +00:00
|
|
|
],
|
|
|
|
}
|