blob: 4cbb6e8d5e877b9a72e30ca125793d42bb216447 [file] [log] [blame]
scroggo3e562272015-03-25 10:22:41 -07001# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
msarett6d0e7b22015-03-30 07:52:52 -07005
borenet@google.comaf730912012-08-09 15:54:28 +00006# This GYP file stores the dependencies necessary to build Skia on the Android
7# platform. The OS doesn't provide many stable libraries as part of the
rmistry@google.comd6176b02012-08-23 18:14:13 +00008# distribution so we have to build a few of them ourselves.
borenet@google.comaf730912012-08-09 15:54:28 +00009#
rmistry@google.comd6176b02012-08-23 18:14:13 +000010# We tried adding this gyp file to the android directory at the root of
borenet@google.comaf730912012-08-09 15:54:28 +000011# the Skia repo, but that resulted in the generated makefiles being created
12# outside of the intended output directory. So to avoid this we created a simple
13# shim here that includes the android_deps.gypi file. The actual dependencies
rmistry@google.comd6176b02012-08-23 18:14:13 +000014# are defined and maintained in that gypi file.
15#
borenet@google.comaf730912012-08-09 15:54:28 +000016# Also this assumes that the android directory is a sibling to the directory
17# that contains your primary Skia checkout. If it is not then you must manually
18# edit the includes below to specify the actual location of the android.gypi.
19# This is due to the fact that we cannot use variables in an includes as the
rmistry@google.comd6176b02012-08-23 18:14:13 +000020# variable expansion step for gyp happens after the includes are processed.
borenet@google.comaf730912012-08-09 15:54:28 +000021{
scroggo@google.comd4adfa32014-02-05 16:35:12 +000022 'conditions': [
23 [ 'skia_android_framework == 0',
24 {
25 'includes': [
26 '../platform_tools/android/gyp/dependencies.gypi',
27 ],
28 }, { # else skia_android_framework
29 'cflags': [
30 '-Wno-error'
31 ],
32 'targets': [
33 {
msarett80d46cc2016-07-15 14:18:49 -070034 'target_name': 'expat_android',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000035 'type': 'none',
36 'direct_dependent_settings': {
37 'libraries' : [
38 '-lexpat',
39 ],
bungeman7147ee12016-08-26 12:15:54 -070040 'include_dirs': [
41 'external/expat/lib',
42 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000043 },
44 },
45 {
scroggo@google.comd4adfa32014-02-05 16:35:12 +000046 'target_name': 'png',
47 'type': 'none',
48 'direct_dependent_settings': {
49 'libraries' : [
50 '-lpng',
51 ],
52 'include_dirs': [
53 'external/libpng',
54 ],
55 },
56 },
57 {
msarettb747b902015-11-06 11:15:49 -080058 'target_name': 'libjpeg-turbo',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000059 'type': 'none',
60 'direct_dependent_settings': {
61 'libraries' : [
msarett54ed1ed2015-12-03 09:48:54 -080062 '-ljpeg',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000063 ],
64 'include_dirs': [
msarettb747b902015-11-06 11:15:49 -080065 'external/libjpeg-turbo',
scroggo@google.comd4adfa32014-02-05 16:35:12 +000066 ],
67 },
68 },
69 {
msarett7869bbf2016-01-25 11:40:02 -080070 'target_name': 'libdng_sdk',
yujieqin916de9f2016-01-25 08:26:16 -080071 'type': 'none',
72 'direct_dependent_settings': {
73 'libraries' : [
74 '-ldng_sdk',
75 ],
76 'include_dirs': [
77 'external/dng_sdk',
78 ],
79 },
80 },
81 {
msarett7869bbf2016-01-25 11:40:02 -080082 'target_name': 'libpiex',
yujieqin916de9f2016-01-25 08:26:16 -080083 'type': 'none',
84 'direct_dependent_settings': {
85 'libraries' : [
86 '-lpiex',
87 ],
88 'include_dirs': [
89 'external/piex',
90 ],
91 },
92 },
93 {
scroggo@google.comd4adfa32014-02-05 16:35:12 +000094 'target_name': 'cpu_features',
95 'type': 'none',
96 },
97 ],
98 }
99 ],
borenet@google.comaf730912012-08-09 15:54:28 +0000100 ],
101}