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

Side by Side Diff: gyp/pdfviewer.gyp

Issue 23163007: pdfviewer: make pdfviewer compile on mac Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.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 # GYP file to build pdfviewer. 1 # GYP file to build pdfviewer.
2 # 2 #
3 # To build on Linux: 3 # To build on Linux:
4 # ./gyp_skia pdfviewer.gyp && make pdfviewer 4 # ./gyp_skia pdfviewer.gyp && make pdfviewer
5 # 5 #
6 { 6 {
7 'includes': [ 7 'includes': [
8 'apptype_console.gypi', 8 'apptype_console.gypi',
9 ], 9 ],
10 # TODO(edisonn): Hack! on mack, SHARED_INTERMEDIATE_DIR can't be reliable used in a sources context
11 'conditions' : [
12 [ 'skia_os != "mac"', {
13 'variables': {
14 'GENERATE_DIR%' : '<(SHARED_INTERMEDIATE_DIR)',
15 },
16 },
17 ],
18 [ 'skia_os == "mac"', {
19 'variables': {
20 'GENERATE_DIR%' : '../src/tmp_autogen',
21 },
22 },
23 ],
24 ],
10 'targets': [ 25 'targets': [
11 { 26 {
12 'target_name': 'libpdfviewer', 27 'target_name': 'libpdfviewer',
13 'type': 'static_library', 28 'type': 'static_library',
14 'sources': [ 29 'sources': [
15 '../experimental/PdfViewer/SkPdfGraphicsState.cpp', 30 '../experimental/PdfViewer/SkPdfGraphicsState.cpp',
16 '../experimental/PdfViewer/SkPdfFont.cpp', 31 '../experimental/PdfViewer/SkPdfFont.cpp',
17 '../experimental/PdfViewer/SkPdfRenderer.cpp', 32 '../experimental/PdfViewer/SkPdfRenderer.cpp',
18 '../experimental/PdfViewer/SkPdfUtils.cpp', 33 '../experimental/PdfViewer/SkPdfUtils.cpp',
19 #'../experimental/PdfViewer/SkPdfNYI.cpp', 34 #'../experimental/PdfViewer/SkPdfNYI.cpp',
20 '../experimental/PdfViewer/SkTrackDevice.cpp', 35 '../experimental/PdfViewer/SkTrackDevice.cpp',
21 '../experimental/PdfViewer/SkTracker.cpp', 36 '../experimental/PdfViewer/SkTracker.cpp',
22 '../experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.cpp', 37 '../experimental/PdfViewer/pdfparser/native/SkPdfNativeObject.cpp',
23 '../experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp', 38 '../experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp',
24 '../experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp', 39 '../experimental/PdfViewer/pdfparser/native/SkPdfNativeDoc.cpp',
25 '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp', 40 '<(GENERATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp',
26 '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp', 41 '<(GENERATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp',
27 ],
28 'copies': [
29 {
30 'files': [
31 '../experimental/PdfViewer/datatypes.py',
32 '../experimental/PdfViewer/generate_code.py',
33 ],
34 'destination': '<(SHARED_INTERMEDIATE_DIR)',
35 },
36 ], 42 ],
37 'actions': [ 43 'actions': [
38 { 44 {
39 'action_name': 'spec2def', 45 'action_name': 'spec2def',
40 'inputs': [ 46 'inputs': [
41 '../experimental/PdfViewer/spec2def.py', 47 '../experimental/PdfViewer/spec2def.py',
42 '../experimental/PdfViewer/PdfReference-okular-1.txt', 48 '../experimental/PdfViewer/PdfReference-okular-1.txt',
43 ], 49 ],
44 'outputs': [ 50 'outputs': [
45 '<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py', 51 '<(GENERATE_DIR)/pdfspec_autogen.py',
46 ], 52 ],
47 'action': ['python', '../experimental/PdfViewer/spec2def.py', '../expe rimental/PdfViewer/PdfReference-okular-1.txt', '<(SHARED_INTERMEDIATE_DIR)/pdfsp ec_autogen.py'], 53 'action': ['python', '../experimental/PdfViewer/spec2def.py', '../expe rimental/PdfViewer/PdfReference-okular-1.txt', '<(GENERATE_DIR)/pdfspec_autogen. py'],
54 },
55 {
56 'action_name': 'copy_files',
57 'variables': {
58 'sources' : [
59 '../experimental/PdfViewer/datatypes.py',
60 '../experimental/PdfViewer/generate_code.py',
61 ]
62 },
63 'inputs' : ['<(sources)'],
64 'outputs': [
65 '<(GENERATE_DIR)/datatypes.py',
66 '<(GENERATE_DIR)/generate_code.py',
67 ],
68 'action': ['python', '../experimental/PdfViewer/copy_files.py', '<(GEN ERATE_DIR)', '<@(sources)'],
48 }, 69 },
49 { 70 {
50 'action_name': 'generate_code', 71 'action_name': 'generate_code',
51 'inputs': [ 72 'inputs': [
52 '<(SHARED_INTERMEDIATE_DIR)/datatypes.py', 73 '<(GENERATE_DIR)/datatypes.py',
53 '<(SHARED_INTERMEDIATE_DIR)/generate_code.py', 74 '<(GENERATE_DIR)/generate_code.py',
54 '<(SHARED_INTERMEDIATE_DIR)/pdfspec_autogen.py', 75 '<(GENERATE_DIR)/pdfspec_autogen.py',
55 ], 76 ],
56 'outputs': [ 77 'outputs': [
57 '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfEnums_autogen.h', 78 '<(GENERATE_DIR)/native/autogen/SkPdfEnums_autogen.h',
58 '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.h', 79 '<(GENERATE_DIR)/native/autogen/SkPdfMapper_autogen.h',
59 '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.h', 80 '<(GENERATE_DIR)/native/autogen/SkPdfHeaders_autogen.h',
60 '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp', 81 '<(GENERATE_DIR)/native/autogen/SkPdfMapper_autogen.cpp',
61 '<(SHARED_INTERMEDIATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp' , 82 '<(GENERATE_DIR)/native/autogen/SkPdfHeaders_autogen.cpp',
62 # TODO(edisonn): ok, there are many more files here, which we should list but since 83 # TODO(edisonn): ok, there are many more files here, which we should list but since
63 # any change in the above should trigger a change here, we should be fine normally 84 # any change in the above should trigger a change here, we should be fine normally
64 ], 85 ],
65 'action': ['python', '<(SHARED_INTERMEDIATE_DIR)/generate_code.py', '< (SHARED_INTERMEDIATE_DIR)'], 86 'action': ['python', '<(GENERATE_DIR)/generate_code.py', '<(GENERATE_D IR)'],
66 }, 87 },
67 ], 88 ],
68 'include_dirs': [ 89 'include_dirs': [
69 '../experimental/PdfViewer', 90 '../experimental/PdfViewer',
70 '../experimental/PdfViewer/pdfparser', 91 '../experimental/PdfViewer/pdfparser',
71 '../experimental/PdfViewer/pdfparser/native', 92 '../experimental/PdfViewer/pdfparser/native',
72 '<(SHARED_INTERMEDIATE_DIR)/native/autogen', 93 '<(GENERATE_DIR)/native/autogen',
73 ], 94 ],
74 'dependencies': [ 95 'dependencies': [
75 'skia_lib.gyp:skia_lib', 96 'skia_lib.gyp:skia_lib',
76 'zlib.gyp:zlib', 97 'zlib.gyp:zlib',
77 ], 98 ],
78 }, 99 },
79 { 100 {
80 'target_name': 'pdfviewer', 101 'target_name': 'pdfviewer',
81 'type': 'executable', 102 'type': 'executable',
82 'cflags': ['-fexceptions'], 103 'cflags': ['-fexceptions'],
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ], 137 ],
117 }, 138 },
118 ], 139 ],
119 } 140 }
120 141
121 # Local Variables: 142 # Local Variables:
122 # tab-width:2 143 # tab-width:2
123 # indent-tabs-mode:nil 144 # indent-tabs-mode:nil
124 # End: 145 # End:
125 # vim: set expandtab tabstop=2 shiftwidth=2: 146 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « experimental/PdfViewer/pdfparser/native/SkPdfNativeTokenizer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698