blob: 7efbb5ccf377a514718d642cbff4cdd00c0618fd [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.
scroggo@google.comd4adfa32014-02-05 16:35:12 +00005# This file builds the PDF backend.
epoger@google.comae85aea2011-05-31 13:50:51 +00006{
epoger@google.comae85aea2011-05-31 13:50:51 +00007 'targets': [
8 {
9 'target_name': 'pdf',
borenet@google.comefb1d772012-10-10 19:45:51 +000010 'product_name': 'skia_pdf',
epoger@google.comae85aea2011-05-31 13:50:51 +000011 'type': 'static_library',
borenet@google.comefb1d772012-10-10 19:45:51 +000012 'standalone_static_library': 1,
halcanary7be0ce02015-05-18 13:15:56 -070013 'variables': { 'skia_pdf_use_sfntly%': 1, },
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000014 'dependencies': [
djsollen@google.com52f02972013-06-03 12:10:19 +000015 'skia_lib.gyp:skia_lib',
commit-bot@chromium.orgf84722e2014-02-24 20:22:34 +000016 'skflate.gyp:skflate',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000017 ],
commit-bot@chromium.org7e5d1862013-08-04 15:09:23 +000018 'includes': [
19 'pdf.gypi',
20 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000021 'include_dirs': [
mtklein928e1652015-07-01 11:55:42 -070022 '../include/private',
epoger@google.comae85aea2011-05-31 13:50:51 +000023 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
commit-bot@chromium.org5e009892013-10-14 13:42:12 +000024 '../src/pdf',
vandebo@chromium.orgec1a7fa2012-03-21 23:11:46 +000025 '../src/utils', # needed to get SkBitSet.h
epoger@google.comae85aea2011-05-31 13:50:51 +000026 ],
27 'sources': [
commit-bot@chromium.org7e5d1862013-08-04 15:09:23 +000028 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
epoger@google.comae85aea2011-05-31 13:50:51 +000029 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000030 'conditions': [
halcanary7be0ce02015-05-18 13:15:56 -070031 [ 'skia_pdf_use_sfntly and not skia_android_framework and \
32 skia_os in ["win", "android", "linux", "chromeos", "mac"]',
33 { 'dependencies': [ 'sfntly.gyp:sfntly' ] }
34 ],
scroggo@google.comd4adfa32014-02-05 16:35:12 +000035 [ 'skia_android_framework', {
36 # Add SFTNLY support for PDF (which in turns depends on ICU)
37 'include_dirs': [
38 'external/sfntly/cpp/src',
39 ],
40 'libraries': [
41 'libsfntly.a',
42 '-licuuc',
43 '-licui18n',
44 ],
45 }
46 ],
47 ],
caryclarkac8d8b82015-01-07 07:36:52 -080048 # This section makes all targets that depend on this target
49 # #define SK_SUPPORT_PDF and have access to the pdf header files.
epoger@google.comae85aea2011-05-31 13:50:51 +000050 'direct_dependent_settings': {
epoger@google.comdcab3a12011-06-24 19:09:09 +000051 'defines': [
52 'SK_SUPPORT_PDF',
53 ],
caryclarkac8d8b82015-01-07 07:36:52 -080054 'include_dirs': [
halcanary07327bf2015-02-19 07:26:12 -080055 '../include/core', # SkDocument.h
caryclarkac8d8b82015-01-07 07:36:52 -080056 ],
epoger@google.comae85aea2011-05-31 13:50:51 +000057 },
epoger@google.comae85aea2011-05-31 13:50:51 +000058 },
59 ],
60}