aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/gyp/skia_android.gypi
blob: 87c47147cfe5087c17990c7644ba7230a60e2f9d (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
# 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.
#
{
  'variables': {
    'conditions': [
      [ 'skia_arch_type == "arm" and arm_version != 7', {
        'android_arch%': "armeabi",
        'android_variant%': "arm",
      }],
      [ 'skia_arch_type == "arm" and arm_version == 7', {
        'android_arch%': "armeabi-v7a",
        'android_variant%': "arm",
      }],
      [ 'skia_arch_type == "arm64"', {
        'android_arch%': "arm64-v8a",
        'android_variant%': "arm64",
      }],
      [ 'skia_arch_type == "x86"', {
        'android_arch%': "x86",
        'android_variant%': "x86",
      }],
      [ 'skia_arch_type == "x86_64"', {
        'android_arch%': "x86_64",
        'android_variant%': "x86_64",
      }],
      [ 'skia_arch_type == "mips32"', {
        'android_arch%': "mips",
        'android_variant%': "mips",
      }],
      [ 'skia_arch_type == "mips64"', {
        'android_arch%': "mips64",
        'android_variant%': "mips64",
      }],
      [ 'android_buildtype == "Debug"', {
        'android_apk_suffix': "debug.apk",
      }, {
        # This also accounts for Release_Developer BUILDTYPE
        'android_buildtype': "Release", 
        'android_apk_suffix': "release.apk",
      }],
    ],
  },
  'includes' : [
      'canvasproof.gypi',
      'viewer.gypi',
  ],
}