| OLD | NEW |
| 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 # | 5 # |
| 6 { | 6 { |
| 7 'includes': [ | 7 'includes': [ |
| 8 'apptype_console.gypi', | 8 'apptype_console.gypi', |
| 9 ], | 9 ], |
| 10 'variables': { | |
| 11 #manually set sample_pdf_file_viewer to 1 to have the PdfViewer in SampleApp | |
| 12 'sample_pdf_file_viewer%': 0, | |
| 13 }, | |
| 14 'targets': [ | 10 'targets': [ |
| 15 { | 11 { |
| 16 'target_name': 'SampleApp', | 12 'target_name': 'SampleApp', |
| 17 'type': 'executable', | 13 'type': 'executable', |
| 18 'include_dirs' : [ | 14 'include_dirs' : [ |
| 19 '../include/private', | 15 '../include/private', |
| 20 '../src/core', | 16 '../src/core', |
| 21 '../src/effects', #needed for BlurMask.h | 17 '../src/effects', #needed for BlurMask.h |
| 22 '../src/gpu', # needed by SkLua.cpp | 18 '../src/gpu', # needed by SkLua.cpp |
| 23 '../src/images', | 19 '../src/images', |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 'flags.gyp:flags', | 151 'flags.gyp:flags', |
| 156 'lua.gyp:lua', | 152 'lua.gyp:lua', |
| 157 'pdf.gyp:pdf', | 153 'pdf.gyp:pdf', |
| 158 'skia_lib.gyp:skia_lib', | 154 'skia_lib.gyp:skia_lib', |
| 159 'tools.gyp:resources', | 155 'tools.gyp:resources', |
| 160 'tools.gyp:sk_tool_utils', | 156 'tools.gyp:sk_tool_utils', |
| 161 'views.gyp:views', | 157 'views.gyp:views', |
| 162 'views_animated.gyp:views_animated', | 158 'views_animated.gyp:views_animated', |
| 163 'xml.gyp:xml', | 159 'xml.gyp:xml', |
| 164 ], | 160 ], |
| 165 'conditions' : [ | 161 'conditions' : [ |
| 166 [ 'sample_pdf_file_viewer == 1', { | |
| 167 'defines': [ | |
| 168 'SAMPLE_PDF_FILE_VIEWER', | |
| 169 ], | |
| 170 'dependencies': [ | |
| 171 'pdfviewer_lib.gyp:pdfviewer_lib', | |
| 172 ], | |
| 173 'include_dirs' : [ | |
| 174 '../experimental/PdfViewer/inc', | |
| 175 ], | |
| 176 'sources': [ | |
| 177 '../samplecode/SamplePdfFileViewer.cpp', | |
| 178 ] | |
| 179 }], | |
| 180 [ 'skia_os == "win"', { | 162 [ 'skia_os == "win"', { |
| 181 'sources!': [ | 163 'sources!': [ |
| 182 # require UNIX functions | 164 # require UNIX functions |
| 183 '../samplecode/SampleEncode.cpp', | 165 '../samplecode/SampleEncode.cpp', |
| 184 ], | 166 ], |
| 185 }], | 167 }], |
| 186 [ 'skia_os == "ios"', { | 168 [ 'skia_os == "ios"', { |
| 187 # TODO: This doesn't build properly yet, but it's getting there. | 169 # TODO: This doesn't build properly yet, but it's getting there. |
| 188 'sources!': [ | 170 'sources!': [ |
| 189 '../samplecode/SampleDecode.cpp', | 171 '../samplecode/SampleDecode.cpp', |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 }], | 250 }], |
| 269 [ 'skia_gpu == 1', { | 251 [ 'skia_gpu == 1', { |
| 270 'dependencies': [ | 252 'dependencies': [ |
| 271 'gputest.gyp:skgputest', | 253 'gputest.gyp:skgputest', |
| 272 ], | 254 ], |
| 273 }], | 255 }], |
| 274 ], | 256 ], |
| 275 }, | 257 }, |
| 276 ], | 258 ], |
| 277 } | 259 } |
| OLD | NEW |