eb6295044b
Split off from https://codereview.chromium.org/140503007/. The eventual goal is to create our Android.mk from gyp. This patch adds an option for skia_android_framework with the right settings. The follow-up (https://codereview.chromium.org/140503007/) will use scripts to create the final makefile. gyp/android_deps.gyp: Use different dependencies for the framework than for building Skia normally. gyp/android_framework_lib.gyp: Like skia_lib, specifies the minimum needed for building Skia, in this case for the framework. gyp/common_conditions.gypi: Add settings specific to skia_android_framework. In some cases this means turning off flags and defines. gyp/common.gypi Turn off SK_DEBUG and SK_DEVELOPER when building for the framework. This allows the framework to create a single makefile which can be modified to add SK_DEBUG and SK_DEVELOPER as desired. gyp/common_variables.gypi: Add skia_android_framework. gyp/core.gyp: Don't depend on cpufeatures, and add the cutils library for skia_android_framework. gyp/freetype.gyp: skia_android_framework-specific options: Don't include freetype_static as a dependency. Include the proper folders. Include the android library. gyp/images.gyp: Don't export libjpeg as a dependency for targets that include images for the framework. Also reorder image decoders to match the Android order, leaving our most commonly used ones last (and therefore first in the chain for trying them). gyp/libwebp.gyp: Use the system webp when building for the Android framework. Specify the correct settings for the framework. gyp/opts.gyp: Specify a default set of files to compile when there are no possible optimizations. gyp/pdf.gyp: Add dependencies for Android framework. gyp/zlib.gyp: Include the zlib folder, and undefine SK_ZLIB_INCLUDE. BUG=skia:1975 R=djsollen@google.com Committed: https://code.google.com/p/skia/source/detail?r=13298 Review URL: https://codereview.chromium.org/153093003 git-svn-id: http://skia.googlecode.com/svn/trunk@13304 2bbb7eff-a529-9590-31e7-b0007b416f81
21 lines
1.0 KiB
Python
21 lines
1.0 KiB
Python
# 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
|
|
# distribution so we have to build a few of them ourselves.
|
|
#
|
|
# We tried adding this gyp file to the android directory at the root of
|
|
# 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
|
|
# are defined and maintained in that gypi file.
|
|
#
|
|
# 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
|
|
# variable expansion step for gyp happens after the includes are processed.
|
|
{
|
|
'includes': [
|
|
'../platform_tools/android/gyp/dependencies.gypi',
|
|
],
|
|
}
|