blob: 1669b2bdad1704164362e8f62307b03a0ee6c797 [file] [log] [blame]
borenet@google.comaf730912012-08-09 15:54:28 +00001# This GYP file stores the dependencies necessary to build Skia on the Android
2# platform. The OS doesn't provide many stable libraries as part of the
rmistry@google.comd6176b02012-08-23 18:14:13 +00003# distribution so we have to build a few of them ourselves.
borenet@google.comaf730912012-08-09 15:54:28 +00004#
rmistry@google.comd6176b02012-08-23 18:14:13 +00005# We tried adding this gyp file to the android directory at the root of
borenet@google.comaf730912012-08-09 15:54:28 +00006# the Skia repo, but that resulted in the generated makefiles being created
7# outside of the intended output directory. So to avoid this we created a simple
8# shim here that includes the android_deps.gypi file. The actual dependencies
rmistry@google.comd6176b02012-08-23 18:14:13 +00009# are defined and maintained in that gypi file.
10#
borenet@google.comaf730912012-08-09 15:54:28 +000011# Also this assumes that the android directory is a sibling to the directory
12# that contains your primary Skia checkout. If it is not then you must manually
13# edit the includes below to specify the actual location of the android.gypi.
14# This is due to the fact that we cannot use variables in an includes as the
rmistry@google.comd6176b02012-08-23 18:14:13 +000015# variable expansion step for gyp happens after the includes are processed.
borenet@google.comaf730912012-08-09 15:54:28 +000016{
scroggo@google.comd4adfa32014-02-05 16:35:12 +000017 'conditions': [
18 [ 'skia_android_framework == 0',
19 {
20 'includes': [
21 '../platform_tools/android/gyp/dependencies.gypi',
22 ],
23 }, { # else skia_android_framework
24 'cflags': [
25 '-Wno-error'
26 ],
27 'targets': [
28 {
29 'target_name': 'expat',
30 'type': 'none',
31 'direct_dependent_settings': {
32 'libraries' : [
33 '-lexpat',
34 ],
35 },
36 },
37 {
38 'target_name': 'gif',
39 'type': 'none',
40 'direct_dependent_settings': {
41 'libraries' : [
42 'libgif.a',
43 ],
44 'include_dirs': [
45 'external/giflib',
46 ],
47 },
48 },
49 {
50 'target_name': 'png',
51 'type': 'none',
52 'direct_dependent_settings': {
53 'libraries' : [
54 '-lpng',
55 ],
56 'include_dirs': [
57 'external/libpng',
58 ],
59 },
60 },
61 {
62 'target_name': 'jpeg',
63 'type': 'none',
64 'direct_dependent_settings': {
65 'libraries' : [
66 '-ljpeg',
67 ],
68 'include_dirs': [
69 'external/jpeg',
70 ],
71 },
72 },
73 {
74 'target_name': 'cpu_features',
75 'type': 'none',
76 },
77 ],
78 }
79 ],
borenet@google.comaf730912012-08-09 15:54:28 +000080 ],
81}