blob: 9436970a013607a9c5b40094cc55b65459b7cdc2 [file] [log] [blame]
caryclark@google.comafcb55c2011-12-14 17:12:04 +00001# Port-specific Skia library code.
2{
caryclark@google.comafcb55c2011-12-14 17:12:04 +00003 'targets': [
4 {
5 'target_name': 'ports',
6 'type': 'static_library',
bungeman@google.coma02bc152012-05-16 18:21:56 +00007 'dependencies': [
8 'core.gyp:core',
9 'sfnt.gyp:sfnt',
10 'utils.gyp:utils',
11 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +000012 'include_dirs': [
bungeman@google.com5a64e582012-03-29 14:51:56 +000013 '../include/images',
14 '../include/effects',
bungeman@google.com29b63dc2012-03-29 14:28:59 +000015 '../include/ports',
bungeman@google.com5a64e582012-03-29 14:51:56 +000016 '../include/xml',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000017 '../src/core',
bungeman@google.coma02bc152012-05-16 18:21:56 +000018 '../src/utils',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000019 ],
20 'sources': [
21 '../src/ports/SkDebug_stdio.cpp',
22 '../src/ports/SkDebug_win.cpp',
djsollen@google.com97145162012-05-31 19:55:08 +000023 '../src/ports/SkFontDescriptor.h',
24 '../src/ports/SkFontDescriptor.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000025 '../src/ports/SkFontHost_sandbox_none.cpp',
26 '../src/ports/SkFontHost_win.cpp',
caryclark@google.comd26147a2011-12-15 14:16:43 +000027 '../src/ports/SkGlobalInitialization_default.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000028 '../src/ports/SkThread_win.cpp',
29
30 '../src/ports/SkFontHost_tables.cpp',
31 '../src/ports/SkMemory_malloc.cpp',
32 '../src/ports/SkOSFile_stdio.cpp',
33 '../src/ports/SkTime_Unix.cpp',
34 '../src/ports/SkTime_win.cpp',
35 '../src/ports/SkXMLParser_empty.cpp',
36 '../src/ports/sk_predefined_gamma.h',
37 ],
38 'conditions': [
39 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
40 'sources': [
41 '../src/ports/SkThread_pthread.cpp',
42 '../src/ports/SkFontHost_FreeType.cpp',
43 '../src/ports/SkFontHost_gamma_none.cpp',
44 '../src/ports/SkFontHost_linux.cpp',
45 ],
46 }],
47 [ 'skia_os == "mac"', {
48 'include_dirs': [
49 '../include/utils/mac',
50 '../third_party/freetype/include/**',
51 ],
52 'sources': [
53 '../src/ports/SkFontHost_mac_coretext.cpp',
reed@google.com61c22042012-02-24 15:29:00 +000054 '../src/utils/mac/SkStream_mac.cpp',
caryclark@google.comafcb55c2011-12-14 17:12:04 +000055# '../src/ports/SkFontHost_FreeType.cpp',
56# '../src/ports/SkFontHost_freetype_mac.cpp',
57# '../src/ports/SkFontHost_gamma_none.cpp',
58 '../src/ports/SkThread_pthread.cpp',
59 ],
reed@google.com17aa07d2012-02-23 14:51:10 +000060 'sources!': [
61 '../src/ports/SkFontHost_tables.cpp',
62 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +000063 }],
64 [ 'skia_os == "ios"', {
65 'include_dirs': [
66 '../include/utils/ios',
67 ],
68 'sources': [
69 '../src/ports/SkFontHost_mac_coretext.cpp',
70 '../src/ports/SkThread_pthread.cpp',
71 ],
72 }],
73 [ 'skia_os == "win"', {
74 'include_dirs': [
75 'config/win',
76 ],
77 'sources!': [ # these are used everywhere but windows
78 '../src/ports/SkDebug_stdio.cpp',
79 '../src/ports/SkTime_Unix.cpp',
80 ],
81 }, { # else !win
82 'sources!': [
83 '../src/ports/SkDebug_win.cpp',
84 '../src/ports/SkFontHost_win.cpp',
85 '../src/ports/SkThread_win.cpp',
86 '../src/ports/SkTime_win.cpp',
87 ],
88 }],
89 [ 'skia_os == "android"', {
90 'sources!': [
91 '../src/ports/SkDebug_stdio.cpp',
92 ],
93 'sources': [
94 '../src/ports/SkDebug_android.cpp',
95 '../src/ports/SkThread_pthread.cpp',
96 '../src/ports/SkFontHost_android.cpp',
97 '../src/ports/SkFontHost_gamma.cpp',
98 '../src/ports/SkFontHost_FreeType.cpp',
99 '../src/ports/FontHostConfiguration_android.cpp',
djsollen@google.com60abb072012-02-15 18:49:15 +0000100 #TODO: include the ports/SkImageRef_ashmem.cpp for non-NDK builds
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000101 ],
djsollen@google.com62b24b12011-12-15 16:16:22 +0000102 'dependencies': [
103 'android_system.gyp:ft2',
104 'android_system.gyp:expat',
105 ],
caryclark@google.comafcb55c2011-12-14 17:12:04 +0000106 }],
107 ],
108 'direct_dependent_settings': {
109 'include_dirs': [
110 '../include/ports',
111 ],
112 },
113 },
114 ],
115}
116
117# Local Variables:
118# tab-width:2
119# indent-tabs-mode:nil
120# End:
121# vim: set expandtab tabstop=2 shiftwidth=2: