-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_mac_app.gyp
64 lines (64 loc) · 2.04 KB
/
sample_mac_app.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
'targets': [
{
'configurations': {
'Debug': { },
'Release': { }
},
'target_name': 'sample_mac_app',
'product_name': 'SampleMacApp',
'type': 'executable',
'mac_bundle': 1,
'dependencies': [
'third_party/skia/gyp/skia_lib.gyp:skia_lib',
'third_party/skia/gyp/views.gyp:views',
'third_party/skia/gyp/xml.gyp:xml',
'third_party/skia/gyp/codec.gyp:codec',
'third_party/skia/gyp/libpng.gyp:libpng_static'
],
'include_dirs': [
'third_party/skia/include/config',
'third_party/skia/include/core',
'third_party/skia/include/views',
'third_party/skia/include/private',
'third_party/skia/src/views/mac',
'third_party/skia/src/core',
'third_party/skia/src/codec',
'SampleMacApp',
],
'sources': [
'SampleMacApp/AppDelegate.mm',
'SampleMacApp/AppDelegate.h',
'SampleMacApp/main.mm',
'SampleMacApp/SampleSkNSView.h',
'SampleMacApp/SampleSkNSView.mm',
'SampleMacApp/SampleWindow.h',
'SampleMacApp/SampleWindow.cpp',
'SampleMacApp/<(_product_name)-Bridging-Header.h'
],
'xcode_settings': {
'INFOPLIST_FILE': 'SampleMacApp/Info.plist',
'MACOSX_DEPLOYMENT_TARGET': '10.11',
'CLANG_ENABLE_MODULES': 'YES',
'CLANG_ENABLE_OBJC_ARC': 'YES',
'SWIFT_OBJC_BRIDGING_HEADER': 'SampleMacApp/<(_product_name)-Bridging-Header.h',
'LD_RUNPATH_SEARCH_PATHS': ['@executable_path/../Frameworks', '@loader_path/../Frameworks'],
},
'mac_bundle_resources': [
'SampleMacApp/Base.lproj/MainMenu.xib',
'SampleMacApp/Assets.xcassets',
],
'link_settings': {
'libraries': [
'/System/Library/Frameworks/Cocoa.framework',
],
},
'ldflags': [
'-lskia', '-stdlib=libc++', '-std=c++1y'
],
'cflags': [
'-Werror', '-W', '-Wall', '-Wextra', '-Wno-unused-parameter', '-g', '-O0', '-stdlib=libc++'
]
}
]
}