aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp/android_deps.gyp
blob: 1a8d81bfcc20dd841a8b41acf3a825ccf2e89af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# 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.
{
  'conditions': [
    [ 'skia_android_framework == 0',
      {
        'includes': [
          '../platform_tools/android/gyp/dependencies.gypi',
        ],
      }, { # else skia_android_framework
        'cflags': [
          '-Wno-error'
        ],
        'targets': [
          {
            'target_name': 'expat',
            'type': 'none',
            'direct_dependent_settings': {
              'libraries' : [
                '-lexpat',
              ],
            },
          },
          {
            'target_name': 'png',
            'type': 'none',
            'direct_dependent_settings': {
              'libraries' : [
                '-lpng',
              ],
              'include_dirs': [
                'external/libpng',
              ],
            },
          },
          {
            'target_name': 'libjpeg-turbo',
            'type': 'none',
            'direct_dependent_settings': {
              'libraries' : [
                '-ljpeg',
              ],
              'include_dirs': [
                'external/libjpeg-turbo',
              ],
            },
          },
          {
            'target_name': 'libdng_sdk',
            'type': 'none',
            'direct_dependent_settings': {
              'libraries' : [
                '-ldng_sdk',
              ],
              'include_dirs': [
                'external/dng_sdk',
              ],
            },
          },
          {
            'target_name': 'libpiex',
            'type': 'none',
            'direct_dependent_settings': {
              'libraries' : [
                '-lpiex',
              ],
              'include_dirs': [
                'external/piex',
              ],
            },
          },
          {
            'target_name': 'cpu_features',
            'type': 'none',
          },
        ],
      }
    ],
  ],
}