scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 1 | # 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. |
msarett | 6d0e7b2 | 2015-03-30 07:52:52 -0700 | [diff] [blame] | 5 | |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 6 | # 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.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 8 | # distribution so we have to build a few of them ourselves. |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 9 | # |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 10 | # We tried adding this gyp file to the android directory at the root of |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 11 | # 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.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 14 | # are defined and maintained in that gypi file. |
| 15 | # |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 16 | # 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.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 20 | # variable expansion step for gyp happens after the includes are processed. |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 21 | { |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 22 | '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 | { |
| 34 | 'target_name': 'expat', |
| 35 | 'type': 'none', |
| 36 | 'direct_dependent_settings': { |
| 37 | 'libraries' : [ |
| 38 | '-lexpat', |
| 39 | ], |
| 40 | }, |
| 41 | }, |
| 42 | { |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 43 | 'target_name': 'png', |
| 44 | 'type': 'none', |
| 45 | 'direct_dependent_settings': { |
| 46 | 'libraries' : [ |
| 47 | '-lpng', |
| 48 | ], |
| 49 | 'include_dirs': [ |
| 50 | 'external/libpng', |
| 51 | ], |
| 52 | }, |
| 53 | }, |
| 54 | { |
msarett | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 55 | 'target_name': 'libjpeg-turbo', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 56 | 'type': 'none', |
| 57 | 'direct_dependent_settings': { |
| 58 | 'libraries' : [ |
msarett | 54ed1ed | 2015-12-03 09:48:54 -0800 | [diff] [blame] | 59 | '-ljpeg', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 60 | ], |
| 61 | 'include_dirs': [ |
msarett | b747b90 | 2015-11-06 11:15:49 -0800 | [diff] [blame] | 62 | 'external/libjpeg-turbo', |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 63 | ], |
| 64 | }, |
| 65 | }, |
| 66 | { |
msarett | 7869bbf | 2016-01-25 11:40:02 -0800 | [diff] [blame] | 67 | 'target_name': 'libdng_sdk', |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 68 | 'type': 'none', |
| 69 | 'direct_dependent_settings': { |
| 70 | 'libraries' : [ |
| 71 | '-ldng_sdk', |
| 72 | ], |
| 73 | 'include_dirs': [ |
| 74 | 'external/dng_sdk', |
| 75 | ], |
| 76 | }, |
| 77 | }, |
| 78 | { |
msarett | 7869bbf | 2016-01-25 11:40:02 -0800 | [diff] [blame] | 79 | 'target_name': 'libpiex', |
yujieqin | 916de9f | 2016-01-25 08:26:16 -0800 | [diff] [blame] | 80 | 'type': 'none', |
| 81 | 'direct_dependent_settings': { |
| 82 | 'libraries' : [ |
| 83 | '-lpiex', |
| 84 | ], |
| 85 | 'include_dirs': [ |
| 86 | 'external/piex', |
| 87 | ], |
| 88 | }, |
| 89 | }, |
| 90 | { |
scroggo@google.com | d4adfa3 | 2014-02-05 16:35:12 +0000 | [diff] [blame] | 91 | 'target_name': 'cpu_features', |
| 92 | 'type': 'none', |
| 93 | }, |
| 94 | ], |
| 95 | } |
| 96 | ], |
borenet@google.com | af73091 | 2012-08-09 15:54:28 +0000 | [diff] [blame] | 97 | ], |
| 98 | } |