Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: gyp/pdf.gyp

Issue 2208743003: SkPDF: fewer GYP_DEFINES (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tests/PDFPrimitivesTest.cpp » ('j') | tests/PDFPrimitivesTest.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 Google Inc. 1 # Copyright 2015 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 # This file builds the PDF backend. 5 # This file builds the PDF backend.
6 { 6 {
7 'targets': [ 7 'targets': [
8 { 8 {
9 'target_name': 'nopdf', 9 'target_name': 'nopdf',
10 'type': 'static_library', 10 'type': 'static_library',
11 'dependencies': [ 'skia_lib.gyp:skia_lib', ], 11 'dependencies': [ 'skia_lib.gyp:skia_lib', ],
12 'sources': [ '<(skia_src_path)/pdf/SkDocument_PDF_None.cpp', ], 12 'sources': [ '<(skia_src_path)/pdf/SkDocument_PDF_None.cpp', ],
13 }, 13 },
14 { 14 {
15 'target_name': 'pdf', 15 'target_name': 'pdf',
16 'product_name': 'skia_pdf', 16 'product_name': 'skia_pdf',
17 'type': 'static_library', 17 'type': 'static_library',
18 'standalone_static_library': 1, 18 'standalone_static_library': 1,
19 'variables': { 19 'variables': {
20 'skia_pdf_use_sfntly%': 1, 20 'skia_pdf_use_sfntly%': 1,
21 'skia_pdf_less_compression%': 0, # enable for debugging only
22 }, 21 },
23 'dependencies': [ 22 'dependencies': [
24 'skia_lib.gyp:skia_lib', 23 'skia_lib.gyp:skia_lib',
25 'zlib.gyp:zlib', 24 'zlib.gyp:zlib',
26 ], 25 ],
27 'includes': [ 26 'includes': [
28 'pdf.gypi', 27 'pdf.gypi',
29 ], 28 ],
30 'include_dirs': [ 29 'include_dirs': [
31 '../include/private', 30 '../include/private',
32 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h 31 '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
33 '../src/image', 32 '../src/image',
34 '../src/utils', # needed to get SkBitSet.h 33 '../src/utils', # needed to get SkBitSet.h
35 ], 34 ],
36 'sources': [ 35 'sources': [
37 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the bui ld). 36 'pdf.gypi', # Makes the gypi appear in IDEs (but does not modify the bui ld).
38 ], 37 ],
39 'conditions': [ 38 'conditions': [
40 [ 'skia_pdf_use_sfntly and not skia_android_framework and \ 39 [ 'skia_pdf_use_sfntly and not skia_android_framework and \
41 skia_os in ["win", "android", "linux", "mac"]', 40 skia_os in ["win", "android", "linux", "mac"]',
42 { 'dependencies': [ 'sfntly.gyp:sfntly' ] } 41 { 'dependencies': [ 'sfntly.gyp:sfntly' ] }
43 ], 42 ],
44 [ 'skia_pdf_less_compression',
45 {'defines': ['SK_PDF_LESS_COMPRESSION'] }
46 ],
47 [ 'skia_android_framework', { 43 [ 'skia_android_framework', {
48 # Add SFTNLY support for PDF (which in turns depends on ICU) 44 # Add SFTNLY support for PDF (which in turns depends on ICU)
49 'include_dirs': [ 45 'include_dirs': [
50 'external/sfntly/cpp/src', 46 'external/sfntly/cpp/src',
51 ], 47 ],
52 'libraries': [ 48 'libraries': [
53 'libsfntly.a', 49 'libsfntly.a',
54 '-licuuc', 50 '-licuuc',
55 '-licui18n', 51 '-licui18n',
56 ], 52 ],
57 } 53 }
58 ], 54 ],
59 ], 55 ],
60 'direct_dependent_settings': { 56 'direct_dependent_settings': {
61 'include_dirs': [ 57 'include_dirs': [
62 '../include/core', # SkDocument.h 58 '../include/core', # SkDocument.h
63 ], 59 ],
64 }, 60 },
65 }, 61 },
66 ], 62 ],
67 } 63 }
OLDNEW
« no previous file with comments | « no previous file | tests/PDFPrimitivesTest.cpp » ('j') | tests/PDFPrimitivesTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698