2011-12-14 17:12:04 +00:00
|
|
|
# Port-specific Skia library code.
|
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'ports',
|
2012-10-10 19:45:51 +00:00
|
|
|
'product_name': 'skia_ports',
|
2011-12-14 17:12:04 +00:00
|
|
|
'type': 'static_library',
|
2012-10-10 19:45:51 +00:00
|
|
|
'standalone_static_library': 1,
|
2013-05-31 20:09:47 +00:00
|
|
|
'dependencies': [
|
|
|
|
'core.gyp:core',
|
|
|
|
'sfnt.gyp:sfnt',
|
|
|
|
'utils.gyp:utils',
|
|
|
|
],
|
2011-12-14 17:12:04 +00:00
|
|
|
'include_dirs': [
|
2012-03-29 14:51:56 +00:00
|
|
|
'../include/effects',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../include/images',
|
2012-03-29 14:28:59 +00:00
|
|
|
'../include/ports',
|
2012-03-29 14:51:56 +00:00
|
|
|
'../include/xml',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/core',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/lazy',
|
2012-05-16 18:21:56 +00:00
|
|
|
'../src/utils',
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2012-11-01 17:43:44 +00:00
|
|
|
'../src/ports/SkDebug_nacl.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkDebug_stdio.cpp',
|
|
|
|
'../src/ports/SkDebug_win.cpp',
|
|
|
|
'../src/ports/SkFontHost_win.cpp',
|
2012-08-16 16:13:40 +00:00
|
|
|
'../src/ports/SkFontHost_win_dw.cpp',
|
2011-12-15 14:16:43 +00:00
|
|
|
'../src/ports/SkGlobalInitialization_default.cpp',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/ports/SkPurgeableMemoryBlock_none.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkThread_win.cpp',
|
|
|
|
|
|
|
|
'../src/ports/SkMemory_malloc.cpp',
|
2013-05-29 13:43:31 +00:00
|
|
|
'../src/ports/SkOSFile_posix.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkOSFile_stdio.cpp',
|
2013-05-29 13:43:31 +00:00
|
|
|
'../src/ports/SkOSFile_win.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkTime_Unix.cpp',
|
|
|
|
'../src/ports/SkTime_win.cpp',
|
|
|
|
'../src/ports/SkXMLParser_empty.cpp',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
|
2012-11-01 17:43:44 +00:00
|
|
|
'defines': [
|
|
|
|
#The font host requires at least FreeType 2.3.0 at runtime.
|
|
|
|
'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\
|
|
|
|
'SK_CAN_USE_DLOPEN=1',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lfreetype',
|
2013-03-04 14:45:29 +00:00
|
|
|
'-lfontconfig',
|
2012-11-01 17:43:44 +00:00
|
|
|
'-ldl',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
'sources': [
|
2013-05-13 19:43:59 +00:00
|
|
|
'../src/fonts/SkFontMgr_fontconfig.cpp',
|
2012-11-01 17:43:44 +00:00
|
|
|
'../src/ports/SkFontHost_FreeType.cpp',
|
|
|
|
'../src/ports/SkFontHost_FreeType_common.cpp',
|
2013-03-04 14:45:29 +00:00
|
|
|
'../src/ports/SkFontHost_fontconfig.cpp',
|
|
|
|
'../src/ports/SkFontConfigInterface_direct.cpp',
|
2012-11-01 17:43:44 +00:00
|
|
|
'../src/ports/SkThread_pthread.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "nacl"', {
|
|
|
|
'dependencies': [
|
|
|
|
# On other OS, we can dynamically link against freetype. For nacl,
|
|
|
|
# we have to include our own version since the naclports version is
|
|
|
|
# too old (<0x020300) to provide the functionality we need.
|
|
|
|
'freetype.gyp:freetype',
|
|
|
|
],
|
|
|
|
'export_dependent_settings': [
|
|
|
|
'freetype.gyp:freetype',
|
|
|
|
],
|
|
|
|
'defines': [
|
|
|
|
# We use Android's repo, which provides at least FreeType 2.4.0
|
|
|
|
'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',\
|
2012-08-24 17:46:11 +00:00
|
|
|
],
|
2011-12-14 17:12:04 +00:00
|
|
|
'sources': [
|
2012-11-01 17:43:44 +00:00
|
|
|
'../src/ports/SkFontHost_FreeType.cpp',
|
|
|
|
'../src/ports/SkFontHost_FreeType_common.cpp',
|
|
|
|
'../src/ports/SkFontHost_linux.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkThread_pthread.cpp',
|
|
|
|
],
|
2012-11-01 17:43:44 +00:00
|
|
|
'sources!': [
|
|
|
|
'../src/ports/SkDebug_stdio.cpp',
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'sources!': [
|
|
|
|
'../src/ports/SkDebug_nacl.cpp',
|
|
|
|
],
|
2011-12-14 17:12:04 +00:00
|
|
|
}],
|
|
|
|
[ 'skia_os == "mac"', {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/utils/mac',
|
|
|
|
'../third_party/freetype/include/**',
|
|
|
|
],
|
|
|
|
'sources': [
|
2013-03-03 03:50:09 +00:00
|
|
|
'../src/ports/SkFontHost_mac.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
# '../src/ports/SkFontHost_FreeType.cpp',
|
2012-08-23 00:39:08 +00:00
|
|
|
# '../src/ports/SkFontHost_FreeType_common.cpp',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/ports/SkPurgeableMemoryBlock_mac.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkThread_pthread.cpp',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/utils/mac/SkStream_mac.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
2012-02-23 14:51:10 +00:00
|
|
|
'sources!': [
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/ports/SkPurgeableMemoryBlock_none.cpp',
|
2012-02-23 14:51:10 +00:00
|
|
|
'../src/ports/SkFontHost_tables.cpp',
|
|
|
|
],
|
2011-12-14 17:12:04 +00:00
|
|
|
}],
|
|
|
|
[ 'skia_os == "ios"', {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/utils/ios',
|
2012-09-18 15:41:18 +00:00
|
|
|
'../include/utils/mac',
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
2013-03-03 03:50:09 +00:00
|
|
|
'../src/ports/SkFontHost_mac.cpp',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/ports/SkPurgeableMemoryBlock_mac.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkThread_pthread.cpp',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/utils/mac/SkStream_mac.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
2012-09-20 15:45:41 +00:00
|
|
|
'sources!': [
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/ports/SkPurgeableMemoryBlock_none.cpp',
|
2012-09-20 15:45:41 +00:00
|
|
|
'../src/ports/SkFontHost_tables.cpp',
|
|
|
|
],
|
2011-12-14 17:12:04 +00:00
|
|
|
}],
|
|
|
|
[ 'skia_os == "win"', {
|
|
|
|
'include_dirs': [
|
|
|
|
'config/win',
|
2012-08-16 16:13:40 +00:00
|
|
|
'../src/utils/win',
|
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'skia_directwrite', {
|
|
|
|
'sources!': [
|
|
|
|
'../src/ports/SkFontHost_win.cpp',
|
|
|
|
],
|
|
|
|
}, { # else !skia_directwrite
|
|
|
|
'sources!': [
|
|
|
|
'../src/ports/SkFontHost_win_dw.cpp',
|
|
|
|
],
|
|
|
|
}],
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
|
|
|
'sources!': [ # these are used everywhere but windows
|
|
|
|
'../src/ports/SkDebug_stdio.cpp',
|
|
|
|
'../src/ports/SkTime_Unix.cpp',
|
2013-05-29 13:43:31 +00:00
|
|
|
'../src/ports/SkOSFile_posix.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
|
|
|
}, { # else !win
|
|
|
|
'sources!': [
|
|
|
|
'../src/ports/SkDebug_win.cpp',
|
|
|
|
'../src/ports/SkFontHost_win.cpp',
|
2012-08-16 16:23:09 +00:00
|
|
|
'../src/ports/SkFontHost_win_dw.cpp',
|
2013-05-29 13:43:31 +00:00
|
|
|
'../src/ports/SkOSFile_win.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkThread_win.cpp',
|
|
|
|
'../src/ports/SkTime_win.cpp',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
[ 'skia_os == "android"', {
|
2012-08-24 17:46:11 +00:00
|
|
|
'defines': [
|
|
|
|
#Android provides at least FreeType 2.4.0 at runtime.
|
|
|
|
'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400',
|
|
|
|
#Skia should not use dlopen on Android.
|
|
|
|
'SK_CAN_USE_DLOPEN=0',
|
|
|
|
],
|
2011-12-14 17:12:04 +00:00
|
|
|
'sources!': [
|
|
|
|
'../src/ports/SkDebug_stdio.cpp',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/ports/SkPurgeableMemoryBlock_none.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'../src/ports/SkDebug_android.cpp',
|
|
|
|
'../src/ports/SkThread_pthread.cpp',
|
2013-05-21 16:53:50 +00:00
|
|
|
'../src/ports/SkFontConfigInterface_android.cpp',
|
|
|
|
'../src/ports/SkFontConfigParser_android.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
'../src/ports/SkFontHost_FreeType.cpp',
|
2012-08-23 00:39:08 +00:00
|
|
|
'../src/ports/SkFontHost_FreeType_common.cpp',
|
2013-05-21 16:53:50 +00:00
|
|
|
'../src/ports/SkFontHost_fontconfig.cpp',
|
2013-03-15 18:08:09 +00:00
|
|
|
'../src/ports/SkPurgeableMemoryBlock_android.cpp',
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
2011-12-15 16:16:22 +00:00
|
|
|
'dependencies': [
|
2012-11-01 17:43:44 +00:00
|
|
|
'freetype.gyp:freetype',
|
2012-08-09 15:54:28 +00:00
|
|
|
'android_deps.gyp:expat',
|
2011-12-15 16:16:22 +00:00
|
|
|
],
|
2012-08-23 18:14:13 +00:00
|
|
|
}],
|
2011-12-14 17:12:04 +00:00
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': [
|
|
|
|
'../include/ports',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|