| 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': { | 10 'variables': { |
| 11 #manually set sample_pdf_file_viewer to 1 to have the PdfViewer in SampleApp | 11 #manually set sample_pdf_file_viewer to 1 to have the PdfViewer in SampleApp |
| 12 'sample_pdf_file_viewer%': 0, | 12 'sample_pdf_file_viewer%': 0, |
| 13 }, | 13 }, |
| 14 'targets': [ | 14 'targets': [ |
| 15 { | 15 { |
| 16 'target_name': 'SampleApp', | 16 'target_name': 'SampleApp', |
| 17 'type': 'executable', | 17 'type': 'executable', |
| 18 'mac_bundle' : 1, | |
| 19 'include_dirs' : [ | 18 'include_dirs' : [ |
| 20 '../src/core', | 19 '../src/core', |
| 21 '../src/effects', #needed for BlurMask.h | 20 '../src/effects', #needed for BlurMask.h |
| 22 '../src/gpu', # needed by SkLua.cpp | 21 '../src/gpu', # needed by SkLua.cpp |
| 23 '../src/images', | 22 '../src/images', |
| 24 '../src/lazy', | 23 '../src/lazy', |
| 25 '../gm', # needed to pull gm.h | 24 '../gm', # needed to pull gm.h |
| 26 '../samplecode', # To pull SampleApp.h and SampleCode.h | 25 '../samplecode', # To pull SampleApp.h and SampleCode.h |
| 27 '../src/pipe/utils', # For TiledPipeController | 26 '../src/pipe/utils', # For TiledPipeController |
| 28 '../src/utils/debugger', | 27 '../src/utils/debugger', |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 'sources': [ | 173 'sources': [ |
| 175 '../samplecode/SamplePdfFileViewer.cpp', | 174 '../samplecode/SamplePdfFileViewer.cpp', |
| 176 ] | 175 ] |
| 177 }], | 176 }], |
| 178 [ 'skia_os == "win"', { | 177 [ 'skia_os == "win"', { |
| 179 'sources!': [ | 178 'sources!': [ |
| 180 # require UNIX functions | 179 # require UNIX functions |
| 181 '../samplecode/SampleEncode.cpp', | 180 '../samplecode/SampleEncode.cpp', |
| 182 ], | 181 ], |
| 183 }], | 182 }], |
| 184 [ 'skia_os == "mac"', { | |
| 185 'sources': [ | |
| 186 # Sample App specific files | |
| 187 '../src/views/mac/SampleApp-Info.plist', | |
| 188 '../src/views/mac/SampleAppDelegate.h', | |
| 189 '../src/views/mac/SampleAppDelegate.mm', | |
| 190 '../src/views/mac/SkSampleNSView.h', | |
| 191 '../src/views/mac/SkSampleNSView.mm', | |
| 192 | |
| 193 # Mac files | |
| 194 '../src/views/mac/SkEventNotifier.h', | |
| 195 '../src/views/mac/SkEventNotifier.mm', | |
| 196 '../src/views/mac/skia_mac.mm', | |
| 197 '../src/views/mac/SkNSView.h', | |
| 198 '../src/views/mac/SkNSView.mm', | |
| 199 '../src/views/mac/SkOptionsTableView.h', | |
| 200 '../src/views/mac/SkOptionsTableView.mm', | |
| 201 '../src/views/mac/SkOSWindow_Mac.mm', | |
| 202 '../src/views/mac/SkTextFieldCell.h', | |
| 203 '../src/views/mac/SkTextFieldCell.m', | |
| 204 ], | |
| 205 'libraries': [ | |
| 206 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', | |
| 207 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework', | |
| 208 ], | |
| 209 'xcode_settings' : { | |
| 210 'INFOPLIST_FILE' : '../src/views/mac/SampleApp-Info.plist', | |
| 211 }, | |
| 212 'mac_bundle_resources' : [ | |
| 213 '../src/views/mac/SampleApp.xib', | |
| 214 ], | |
| 215 }], | |
| 216 [ 'skia_os == "ios"', { | 183 [ 'skia_os == "ios"', { |
| 217 # TODO: This doesn't build properly yet, but it's getting there. | 184 # TODO: This doesn't build properly yet, but it's getting there. |
| 218 'sources!': [ | 185 'sources!': [ |
| 219 '../samplecode/SampleDecode.cpp', | 186 '../samplecode/SampleDecode.cpp', |
| 220 '../experimental/SimpleiOSApp/SimpleApp.mm', | 187 '../experimental/SimpleiOSApp/SimpleApp.mm', |
| 221 ], | 188 ], |
| 222 'sources': [ | 189 'sources': [ |
| 223 '../src/views/mac/SkEventNotifier.mm', | 190 '../src/views/mac/SkEventNotifier.mm', |
| 224 '../experimental/iOSSampleApp/SkSampleUIView.mm', | 191 '../experimental/iOSSampleApp/SkSampleUIView.mm', |
| 225 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', | 192 '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig', |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 }], | 263 }], |
| 297 [ 'skia_gpu == 1', { | 264 [ 'skia_gpu == 1', { |
| 298 'dependencies': [ | 265 'dependencies': [ |
| 299 'gputest.gyp:skgputest', | 266 'gputest.gyp:skgputest', |
| 300 ], | 267 ], |
| 301 }], | 268 }], |
| 302 ], | 269 ], |
| 303 }, | 270 }, |
| 304 ], | 271 ], |
| 305 } | 272 } |
| OLD | NEW |