caryclark | 52edc4d | 2015-02-02 12:55:14 -0800 | [diff] [blame] | 1 | # GYP file to build hello world example. |
| 2 | { |
| 3 | 'targets': [ |
| 4 | { |
| 5 | 'target_name': 'HelloWorld', |
| 6 | 'type': 'executable', |
| 7 | 'mac_bundle' : 1, |
| 8 | 'include_dirs' : [ |
| 9 | '../include/gpu', |
| 10 | ], |
| 11 | 'sources': [ |
| 12 | '../example/HelloWorld.h', |
| 13 | '../example/HelloWorld.cpp', |
| 14 | ], |
| 15 | 'dependencies': [ |
| 16 | 'skia_lib.gyp:skia_lib', |
| 17 | 'views.gyp:views', |
| 18 | ], |
| 19 | 'conditions' : [ |
| 20 | [ 'skia_os == "win"', { |
| 21 | 'sources' : [ |
| 22 | '../src/views/win/SkOSWindow_Win.cpp', |
| 23 | '../src/views/win/skia_win.cpp', |
| 24 | ], |
| 25 | }], |
| 26 | [ 'skia_os == "mac"', { |
| 27 | 'sources': [ |
| 28 | '../example/mac/HelloWorldNSView.mm', |
| 29 | '../example/mac/HelloWorldDelegate.mm', |
| 30 | |
| 31 | '../src/views/mac/SkEventNotifier.mm', |
| 32 | '../src/views/mac/skia_mac.mm', |
| 33 | '../src/views/mac/SkNSView.mm', |
| 34 | '../src/views/mac/SkOptionsTableView.mm', |
| 35 | '../src/views/mac/SkOSWindow_Mac.mm', |
| 36 | '../src/views/mac/SkTextFieldCell.m', |
| 37 | ], |
| 38 | 'include_dirs' : [ |
| 39 | '../src/views/mac/' |
| 40 | ], |
| 41 | 'xcode_settings' : { |
| 42 | 'INFOPLIST_FILE' : '../example/mac/HelloWorld-Info.plist', |
| 43 | }, |
| 44 | 'mac_bundle_resources' : [ |
| 45 | '../example/mac/HelloWorld.xib' |
| 46 | ], |
| 47 | }], |
| 48 | ], |
| 49 | }, |
| 50 | ], |
| 51 | } |