Home | History | Annotate | Download | only in gyp
      1 
      2 {
      3   'includes': [
      4     'common.gypi',
      5   ],
      6   'targets': [
      7     {
      8       'target_name': 'SampleApp',
      9       'type': 'executable',
     10       'mac_bundle' : 1,
     11       'include_dirs' : [
     12         '../src/core', # needed to get SkConcaveToTriangle, maybe this should be moved to include dir?
     13         '../gm',       # needed to pull gm.h
     14         '../include/pipe', # To pull in SkGPipe.h for pipe reader/writer
     15         '../samplecode', # To pull SampleApp.h and SampleCode.h
     16       ],
     17       'includes': [
     18         'gmslides.gypi',
     19       ],
     20       'sources': [
     21         '../gm/gm.cpp',
     22         '../gm/gm.h',
     23 
     24         '../samplecode/GMSampleView.h',
     25         '../samplecode/ClockFaceView.cpp',
     26         '../samplecode/OverView.cpp',
     27         '../samplecode/Sample2PtRadial.cpp',
     28         '../samplecode/SampleAAClip.cpp',
     29         '../samplecode/SampleAAClip2.cpp',
     30         '../samplecode/SampleAARects.cpp',
     31         '../samplecode/SampleAARectModes.cpp',
     32         '../samplecode/SampleAll.cpp',
     33         '../samplecode/SampleAnimator.cpp',
     34         '../samplecode/SampleApp.cpp',
     35         '../samplecode/SampleArc.cpp',
     36         '../samplecode/SampleAvoid.cpp',
     37         '../samplecode/SampleBigBlur.cpp',
     38         '../samplecode/SampleBigGradient.cpp',
     39         '../samplecode/SampleBitmapRect.cpp',
     40         '../samplecode/SampleBlur.cpp',
     41         '../samplecode/SampleCamera.cpp',
     42         '../samplecode/SampleCircle.cpp',
     43         '../samplecode/SampleClip.cpp',
     44         '../samplecode/SampleCode.h',
     45         '../samplecode/SampleColorFilter.cpp',
     46         '../samplecode/SampleComplexClip.cpp',
     47         '../samplecode/SampleConcavePaths.cpp',
     48         '../samplecode/SampleCull.cpp',
     49         '../samplecode/SampleDecode.cpp',
     50         '../samplecode/SampleDegenerateTwoPtRadials.cpp',
     51         '../samplecode/SampleDither.cpp',
     52         '../samplecode/SampleDitherBitmap.cpp',
     53         '../samplecode/SampleDrawBitmap.cpp',
     54         '../samplecode/SampleDrawLooper.cpp',
     55         '../samplecode/SampleEffects.cpp',
     56         '../samplecode/SampleEmboss.cpp',
     57         '../samplecode/SampleEmptyPath.cpp',
     58         '../samplecode/SampleEncode.cpp',
     59         '../samplecode/SampleFillType.cpp',
     60         '../samplecode/SampleFilter.cpp',
     61         '../samplecode/SampleFilter2.cpp',
     62         '../samplecode/SampleFontCache.cpp',
     63         '../samplecode/SampleFontScalerTest.cpp',
     64         '../samplecode/SampleFuzz.cpp',
     65         '../samplecode/SampleGradients.cpp',
     66         '../samplecode/SampleHairCurves.cpp',
     67         '../samplecode/SampleHairline.cpp',
     68         '../samplecode/SampleHairModes.cpp',
     69         '../samplecode/SampleImage.cpp',
     70         '../samplecode/SampleImageDir.cpp',
     71         '../samplecode/SampleLayerMask.cpp',
     72         '../samplecode/SampleLayers.cpp',
     73         '../samplecode/SampleLCD.cpp',
     74         '../samplecode/SampleLineClipper.cpp',
     75         '../samplecode/SampleLines.cpp',
     76         '../samplecode/SampleMeasure.cpp',
     77         '../samplecode/SampleMipMap.cpp',
     78         '../samplecode/SampleMovie.cpp',
     79         '../samplecode/SampleNinePatch.cpp',
     80         '../samplecode/SampleOvalTest.cpp',
     81         '../samplecode/SampleOverflow.cpp',
     82         '../samplecode/SamplePageFlip.cpp',
     83         '../samplecode/SamplePatch.cpp',
     84         '../samplecode/SamplePath.cpp',
     85         '../samplecode/SamplePathClip.cpp',
     86         '../samplecode/SamplePathEffects.cpp',
     87         '../samplecode/SamplePicture.cpp',
     88         '../samplecode/SamplePoints.cpp',
     89         '../samplecode/SamplePolyToPoly.cpp',
     90         '../samplecode/SampleRegion.cpp',
     91         '../samplecode/SampleRepeatTile.cpp',
     92         '../samplecode/SampleShaders.cpp',
     93         '../samplecode/SampleShaderText.cpp',
     94         '../samplecode/SampleShapes.cpp',
     95         '../samplecode/SampleSkLayer.cpp',
     96         '../samplecode/SampleSlides.cpp',
     97         '../samplecode/SampleStrokePath.cpp',
     98         '../samplecode/SampleStrokeText.cpp',
     99         '../samplecode/SampleTests.cpp',
    100         '../samplecode/SampleText.cpp',
    101         '../samplecode/SampleTextAlpha.cpp',
    102         '../samplecode/SampleTextBox.cpp',
    103         '../samplecode/SampleTextEffects.cpp',
    104         '../samplecode/SampleTextOnPath.cpp',
    105         '../samplecode/SampleTextureDomain.cpp',
    106         '../samplecode/SampleTiling.cpp',
    107         '../samplecode/SampleTinyBitmap.cpp',
    108         '../samplecode/SampleTriangles.cpp',
    109         '../samplecode/SampleTypeface.cpp',
    110         '../samplecode/SampleUnitMapper.cpp',
    111         '../samplecode/SampleVertices.cpp',
    112         '../samplecode/SampleXfermodes.cpp',
    113         '../samplecode/SampleXfermodesBlur.cpp',
    114         '../samplecode/TransitionView.cpp',
    115         
    116         # Dependencies for the pipe code in SampleApp
    117         '../src/pipe/SkGPipeRead.cpp',
    118         '../src/pipe/SkGPipeWrite.cpp',
    119         
    120         # DrawingBoard
    121         #'../experimental/DrawingBoard/SkColorPalette.h',
    122         #'../experimental/DrawingBoard/SkColorPalette.cpp',
    123         #'../experimental/DrawingBoard/SkNetPipeController.h',
    124         #'../experimental/DrawingBoard/SkNetPipeController.cpp',
    125         #'../experimental/DrawingBoard/SampleDrawingClient.cpp',
    126         #'../experimental/DrawingBoard/SampleDrawingServer.cpp',
    127     
    128         # Networking
    129         #'../experimental/Networking/SampleNetPipeReader.cpp',
    130         #'../experimental/Networking/SkSockets.cpp',
    131         #'../experimental/Networking/SkSockets.h',
    132         
    133         # Debugger
    134         '../experimental/Debugger/DebuggerViews.h',
    135         '../experimental/Debugger/DebuggerContentView.cpp',
    136         '../experimental/Debugger/DebuggerCommandsView.cpp',
    137         '../experimental/Debugger/DebuggerStateView.cpp',
    138         '../experimental/Debugger/SkDebugDumper.cpp',
    139         '../experimental/Debugger/SkDebugDumper.h',
    140       ],
    141       'sources!': [
    142         '../samplecode/SampleSkLayer.cpp', #relies on SkMatrix44 which doesn't compile
    143         '../samplecode/SampleTests.cpp',   #includes unknown file SkShaderExtras.h
    144         '../samplecode/SampleWarp.cpp',
    145         '../samplecode/SampleFontCache.cpp',
    146       ],
    147       'dependencies': [
    148         'core.gyp:core',
    149         'effects.gyp:effects',
    150         'images.gyp:images',
    151         'ports.gyp:ports',
    152         'views.gyp:views',
    153         'utils.gyp:utils',
    154         'animator.gyp:animator',
    155         'xml.gyp:xml',
    156         'experimental.gyp:experimental',
    157         'gpu.gyp:gr',
    158         'gpu.gyp:skgr',
    159         'pdf.gyp:pdf',
    160       ],
    161       'conditions' : [
    162        [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
    163          'sources!': [
    164             '../samplecode/SampleDecode.cpp',
    165          ],
    166         }],
    167         [ 'skia_os == "win"', {
    168           'sources!': [
    169             # require UNIX functions
    170             '../samplecode/SampleEncode.cpp',
    171             '../samplecode/SamplePageFlip.cpp',
    172           ],
    173         }],
    174         [ 'skia_os == "mac"', {
    175           'sources!': [
    176             '../samplecode/SampleDecode.cpp',
    177           ],
    178           'sources': [
    179             # Sample App specific files
    180             '../src/utils/mac/SampleApp-Info.plist',
    181             '../src/utils/mac/SampleAppDelegate.h',
    182             '../src/utils/mac/SampleAppDelegate.mm',
    183             '../src/utils/mac/SkSampleNSView.h',
    184             '../src/utils/mac/SkSampleNSView.mm',
    185             
    186             # Mac files
    187             '../src/utils/mac/SkEventNotifier.h',
    188             '../src/utils/mac/SkEventNotifier.mm',
    189             '../src/utils/mac/skia_mac.mm',
    190             '../src/utils/mac/SkNSView.h',
    191             '../src/utils/mac/SkNSView.mm',
    192             '../src/utils/mac/SkOptionsTableView.h',
    193             '../src/utils/mac/SkOptionsTableView.mm',
    194             '../src/utils/mac/SkOSWindow_Mac.mm',
    195             '../src/utils/mac/SkTextFieldCell.h',
    196             '../src/utils/mac/SkTextFieldCell.m',
    197           ],
    198           'libraries': [
    199             '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
    200             '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
    201           ],
    202           'xcode_settings' : {
    203             'INFOPLIST_FILE' : '../src/utils/mac/SampleApp-Info.plist',
    204           },
    205           'mac_bundle_resources' : [
    206             '../src/utils/mac/SampleApp.xib',
    207           ],
    208         }],
    209         [ 'skia_os == "ios"', {
    210           # TODO: This doesn't build properly yet, but it's getting there.
    211           'sources!': [
    212             '../samplecode/SampleDecode.cpp',
    213           ],
    214           'sources': [
    215             '../experimental/iOSSampleApp/SkIOSNotifier.mm',
    216             '../experimental/iOSSampleApp/SkTime_iOS.mm',
    217             '../experimental/iOSSampleApp/SkUIDetailViewController.mm',
    218             '../experimental/iOSSampleApp/SkUIRootViewController.mm',
    219             '../experimental/iOSSampleApp/SkUIView_shell.mm',
    220 
    221             '../experimental/iOSSampleApp/iOSSampleApp_Prefix.pch',
    222             '../experimental/iOSSampleApp/Shared/main.m',
    223             '../experimental/iOSSampleApp/iPad/AppDelegate_iPad.mm',
    224             '../experimental/iOSSampleApp/iPad/SkUISplitViewController.mm',
    225             '../experimental/iOSSampleApp/iPhone/AppDelegate_iPhone.mm',
    226             '../experimental/iOSSampleApp/iPhone/SkUINavigationController.mm',
    227 
    228             '../src/utils/ios/SkOSWindow_iOS.mm',
    229             '../src/utils/ios/SkImageDecoder_iOS.mm',
    230             '../src/utils/ios/SkStream_NSData.mm',
    231             '../src/utils/ios/SkOSFile_iOS.mm',
    232 
    233             '../src/utils/mac/SkCreateCGImageRef.cpp',
    234             '../experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig',
    235             '../experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig',
    236           ],
    237           'include_dirs' : [
    238             '../experimental/iOSSampleApp',
    239             '../experimental/iOSSampleApp/iPad',
    240             '../experimental/iOSSampleApp/iPhone',
    241             '../include/utils/ios',
    242             '../../include/gpu',
    243           ],
    244           'xcode_config_file': '../experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig',
    245           'mac_bundle_resources' : [
    246             '../experimental/iOSSampleApp/iPad/MainWindow_iPad.xib',
    247             '../experimental/iOSSampleApp/iPhone/MainWindow_iPhone.xib',
    248           ],
    249         }],
    250         [ 'skia_os == "android"', {
    251           'sources!': [
    252             '../samplecode/SampleAnimator.cpp',
    253             '../samplecode/SampleUnitMapper.cpp',
    254           ],
    255           'dependencies!': [
    256             'animator.gyp:animator',
    257             'experimental.gyp:experimental',
    258           ],
    259           'dependencies': [
    260             'android_system.gyp:sampleApp',
    261           ],
    262         }],
    263       ],
    264       'msvs_settings': {
    265         'VCLinkerTool': {
    266           'SubSystem': '2',
    267           'AdditionalDependencies': [
    268             'd3d9.lib',
    269           ],
    270         },
    271       },
    272     },
    273   ],
    274 }
    275 
    276 # Local Variables:
    277 # tab-width:2
    278 # indent-tabs-mode:nil
    279 # End:
    280 # vim: set expandtab tabstop=2 shiftwidth=2:
    281