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