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

Side by Side Diff: pdfium.gyp

Issue 826613004: Use system FreeType (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: update GN files Created 5 years, 10 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 | « core/src/fxge/ge/fx_ge_text.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 'variables': { 2 'variables': {
3 'pdf_use_skia%': 0, 3 'pdf_use_skia%': 0,
4 'conditions': [
5 ['OS=="linux"', {
6 'bundle_freetype%': 0,
7 }, { # On Android there's no system FreeType. On Windows and Mac, only a
8 # few methods are used from it.
9 'bundle_freetype%': 1,
10 }],
11 ],
4 }, 12 },
5 'target_defaults': { 13 'target_defaults': {
6 'defines' : [ 14 'defines' : [
7 'FT2_BUILD_LIBRARY',
8 '_FPDFSDK_LIB', 15 '_FPDFSDK_LIB',
9 '_NO_GDIPLUS_', # workaround text rendering issues on Windows 16 '_NO_GDIPLUS_', # workaround text rendering issues on Windows
10 'OPJ_STATIC', 17 'OPJ_STATIC',
11 ], 18 ],
12 'include_dirs': [
13 'third_party/freetype/include',
14 ],
15 'conditions': [ 19 'conditions': [
16 ['pdf_use_skia==1', { 20 ['pdf_use_skia==1', {
17 'defines': ['_SKIA_SUPPORT_'], 21 'defines': ['_SKIA_SUPPORT_'],
18 }], 22 }],
23 ['bundle_freetype==1', {
24 'include_dirs': [
25 'third_party/freetype/include',
26 ],
27 'defines' : [
28 'FT2_BUILD_LIBRARY',
29 ],
30 }, {
31 'include_dirs' : [
32 '/usr/include/freetype2',
33 ],
34 }],
19 ['OS=="linux"', { 35 ['OS=="linux"', {
20 'conditions': [ 36 'conditions': [
21 ['target_arch=="x64"', { 37 ['target_arch=="x64"', {
22 'defines' : [ '_FX_CPU_=_FX_X64_', ], 38 'defines' : [ '_FX_CPU_=_FX_X64_', ],
23 'cflags': [ '-fPIC', ], 39 'cflags': [ '-fPIC', ],
24 }], 40 }],
25 ['target_arch=="ia32"', { 41 ['target_arch=="ia32"', {
26 'defines' : [ '_FX_CPU_=_FX_X86_', ], 42 'defines' : [ '_FX_CPU_=_FX_X86_', ],
27 }], 43 }],
28 ], 44 ],
29 }], 45 }],
30 ], 46 ],
31 'msvs_disabled_warnings': [ 47 'msvs_disabled_warnings': [
32 4005, 4018, 4146, 4333, 4345, 4267 48 4005, 4018, 4146, 4333, 4345, 4267
33 ], 49 ],
34 }, 50 },
35 'targets': [ 51 'targets': [
36 { 52 {
37 'target_name': 'pdfium', 53 'target_name': 'pdfium',
38 'type': 'static_library', 54 'type': 'static_library',
39 'dependencies': [ 55 'dependencies': [
40 'third_party/third_party.gyp:bigint', 56 'third_party/third_party.gyp:bigint',
41 'third_party/third_party.gyp:freetype',
42 'third_party/third_party.gyp:safemath', 57 'third_party/third_party.gyp:safemath',
43 'fdrm', 58 'fdrm',
44 'fpdfdoc', 59 'fpdfdoc',
45 'fpdfapi', 60 'fpdfapi',
46 'fpdftext', 61 'fpdftext',
47 'formfiller', 62 'formfiller',
48 'fxcodec', 63 'fxcodec',
49 'fxcrt', 64 'fxcrt',
50 'fxedit', 65 'fxedit',
51 'fxge', 66 'fxge',
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 'fpdfsdk/src/resource.h', 110 'fpdfsdk/src/resource.h',
96 'fpdfsdk/include/fpdf_transformpage.h', 111 'fpdfsdk/include/fpdf_transformpage.h',
97 'fpdfsdk/src/fpdf_transformpage.cpp', 112 'fpdfsdk/src/fpdf_transformpage.cpp',
98 ], 113 ],
99 'conditions': [ 114 'conditions': [
100 ['OS!="win"', { 115 ['OS!="win"', {
101 'sources!': [ 116 'sources!': [
102 'fpdfsdk/src/fpdfsdkdll.rc', 117 'fpdfsdk/src/fpdfsdkdll.rc',
103 ], 118 ],
104 }], 119 }],
120 ['bundle_freetype==1', {
121 'dependencies': [
122 'third_party/third_party.gyp:freetype',
123 ],
124 }, {
125 'link_settings': {
126 'libraries': [
127 '-lfreetype',
128 ],
129 },
130 }],
105 ], 131 ],
106 'all_dependent_settings': { 132 'all_dependent_settings': {
107 'msvs_settings': { 133 'msvs_settings': {
108 'VCLinkerTool': { 134 'VCLinkerTool': {
109 'AdditionalDependencies': [ 135 'AdditionalDependencies': [
110 'advapi32.lib', 136 'advapi32.lib',
111 'gdi32.lib', 137 'gdi32.lib',
112 'user32.lib', 138 'user32.lib',
113 ], 139 ],
114 }, 140 },
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 'fpdfsdk/src/fpdfdoc_embeddertest.cpp', 868 'fpdfsdk/src/fpdfdoc_embeddertest.cpp',
843 'fpdfsdk/src/fpdfview_embeddertest.cpp', 869 'fpdfsdk/src/fpdfview_embeddertest.cpp',
844 'testing/embedder_test.cpp', 870 'testing/embedder_test.cpp',
845 'testing/embedder_test.h', 871 'testing/embedder_test.h',
846 'testing/fx_string_testhelpers.cpp', 872 'testing/fx_string_testhelpers.cpp',
847 'testing/fx_string_testhelpers.h', 873 'testing/fx_string_testhelpers.h',
848 ], 874 ],
849 }, 875 },
850 ], 876 ],
851 } 877 }
OLDNEW
« no previous file with comments | « core/src/fxge/ge/fx_ge_text.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698