1 # GYP file to build experimental directory. 2 { 3 'targets': [ 4 { 5 'target_name': 'experimental', 6 'type': 'static_library', 7 'include_dirs': [ 8 '../include/config', 9 '../include/core', 10 ], 11 'sources': [ 12 '../experimental/SkSetPoly3To3.cpp', 13 '../experimental/SkSetPoly3To3_A.cpp', 14 '../experimental/SkSetPoly3To3_D.cpp', 15 ], 16 'direct_dependent_settings': { 17 'include_dirs': [ 18 '../experimental', 19 ], 20 }, 21 }, 22 { 23 'target_name': 'SkiaExamples', 24 'type': 'executable', 25 'mac_bundle' : 1, 26 'include_dirs' : [ 27 '../tools/flags', 28 ], 29 'includes': [], 30 'sources': [ 31 '../experimental/SkiaExamples/SkExample.h', 32 '../experimental/SkiaExamples/SkExample.cpp', 33 '../experimental/SkiaExamples/HelloSkiaExample.cpp', 34 ], 35 'dependencies': [ 36 'skia_lib.gyp:skia_lib', 37 'views.gyp:views', 38 'xml.gyp:xml', 39 'flags.gyp:flags' 40 ], 41 'conditions' : [ 42 [ 'skia_gpu == 1', { 43 'include_dirs' : [ 44 '../src/gpu', #gl/GrGLUtil.h 45 ] 46 }], 47 [ 'skia_os == "win"', { 48 'sources' : [ 49 '../src/views/win/SkOSWindow_Win.cpp', 50 '../src/views/win/skia_win.cpp', 51 ], 52 }, 53 ], 54 55 [ 'skia_os == "mac"', { 56 'sources': [ 57 58 # SkiaExamples specific files 59 '../experimental/SkiaExamples/SkiaExamples-Info.plist', 60 '../experimental/SkiaExamples/SkExampleNSView.h', 61 '../experimental/SkiaExamples/SkExampleNSView.mm', 62 63 # Mac files 64 '../src/views/mac/SampleAppDelegate.h', 65 '../src/views/mac/SampleAppDelegate.mm', 66 '../src/views/mac/SkEventNotifier.mm', 67 '../src/views/mac/skia_mac.mm', 68 '../src/views/mac/SkNSView.h', 69 '../src/views/mac/SkNSView.mm', 70 '../src/views/mac/SkOptionsTableView.h', 71 '../src/views/mac/SkOptionsTableView.mm', 72 '../src/views/mac/SkOSWindow_Mac.mm', 73 '../src/views/mac/SkTextFieldCell.h', 74 '../src/views/mac/SkTextFieldCell.m', 75 ], 76 'include_dirs' : [ 77 '../src/views/mac/' 78 ], 79 'link_settings': { 80 }, 81 'xcode_settings' : { 82 'INFOPLIST_FILE' : '../experimental/SkiaExamples/SkiaExamples-Info.plist', 83 }, 84 'mac_bundle_resources' : [ 85 '../experimental/SkiaExamples/SkiaExamples.xib' 86 ], 87 } 88 ], 89 ], 90 } 91 ], 92 } 93