1 # Copyright 2015 Google Inc. 2 # 3 # Use of this source code is governed by a BSD-style license that can be 4 # found in the LICENSE file. 5 # GYP file to build hello world example. 6 { 7 'targets': [ 8 { 9 'target_name': 'HelloWorld', 10 'type': 'executable', 11 'mac_bundle' : 1, 12 'include_dirs' : [ 13 '../include/gpu', 14 ], 15 'sources': [ 16 '../example/HelloWorld.h', 17 '../example/HelloWorld.cpp', 18 ], 19 'dependencies': [ 20 'skia_lib.gyp:skia_lib', 21 'views.gyp:views', 22 ], 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 }, 54 ], 55 } 56