Home | History | Annotate | Download | only in gyp
      1 # Port-specific Skia library code.
      2 {
      3   'targets': [
      4     {
      5       'target_name': 'ports',
      6       'product_name': 'skia_ports',
      7       'type': 'static_library',
      8       'standalone_static_library': 1,
      9       'dependencies': [
     10         'core.gyp:*',
     11       ],
     12       'include_dirs': [
     13         '../include/effects',
     14         '../include/images',
     15         '../include/ports',
     16         '../include/utils',
     17         '../include/utils/win',
     18         '../include/xml',
     19         '../src/core',
     20         '../src/lazy',
     21         '../src/ports',
     22         '../src/sfnt',
     23         '../src/utils',
     24       ],
     25       'sources': [
     26         '../src/ports/SkDebug_nacl.cpp',
     27         '../src/ports/SkDebug_stdio.cpp',
     28         '../src/ports/SkDebug_win.cpp',
     29         '../src/ports/SkFontHost_win.cpp',
     30         '../src/ports/SkFontHost_win_dw.cpp',
     31         '../src/ports/SkGlobalInitialization_default.cpp',
     32         '../src/ports/SkMemory_malloc.cpp',
     33         '../src/ports/SkOSFile_posix.cpp',
     34         '../src/ports/SkOSFile_stdio.cpp',
     35         '../src/ports/SkOSFile_win.cpp',
     36         '../src/ports/SkPurgeableMemoryBlock_none.cpp',
     37        #'../src/ports/SkThread_none.cpp',
     38         '../src/ports/SkThread_pthread.cpp',
     39         '../src/ports/SkThread_win.cpp',
     40         '../src/ports/SkTime_Unix.cpp',
     41         '../src/ports/SkTime_win.cpp',
     42        #'../src/ports/SkTLS_none.cpp',
     43         '../src/ports/SkTLS_pthread.cpp',
     44         '../src/ports/SkTLS_win.cpp',
     45         '../src/ports/SkXMLParser_empty.cpp',
     46       ],
     47       'conditions': [
     48         [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "nacl", "android"]', {
     49           'sources': [
     50             '../src/ports/SkFontHost_FreeType.cpp',
     51             '../src/ports/SkFontHost_FreeType_common.cpp',
     52           ],
     53           'dependencies': [
     54             'freetype.gyp:freetype',
     55           ],
     56         }],
     57         [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
     58           'link_settings': {
     59             'libraries': [
     60               '-lfontconfig',
     61               '-ldl',
     62             ],
     63           },
     64           'sources': [
     65             '../src/fonts/SkFontMgr_fontconfig.cpp',
     66             '../src/ports/SkFontHost_fontconfig.cpp',
     67             '../src/ports/SkFontConfigInterface_direct.cpp',
     68           ],
     69         }],
     70         [ 'skia_os == "nacl"', {
     71           'sources': [
     72             '../src/ports/SkFontHost_linux.cpp',
     73           ],
     74           'sources!': [
     75             '../src/ports/SkDebug_stdio.cpp',
     76           ],
     77         }, {
     78           'sources!': [
     79             '../src/ports/SkDebug_nacl.cpp',
     80           ],
     81         }],
     82         [ 'skia_os == "mac"', {
     83           'include_dirs': [
     84             '../include/utils/mac',
     85           ],
     86           'sources': [
     87             '../src/ports/SkFontHost_mac.cpp',
     88             '../src/ports/SkPurgeableMemoryBlock_mac.cpp',
     89             '../src/utils/mac/SkStream_mac.cpp',
     90           ],
     91           'sources!': [
     92             '../src/ports/SkPurgeableMemoryBlock_none.cpp',
     93             '../src/ports/SkFontHost_tables.cpp',
     94           ],
     95         }],
     96         [ 'skia_os == "ios"', {
     97           'include_dirs': [
     98             '../include/utils/ios',
     99             '../include/utils/mac',
    100           ],
    101           'sources': [
    102             '../src/ports/SkFontHost_mac.cpp',
    103             '../src/ports/SkPurgeableMemoryBlock_mac.cpp',
    104             '../src/utils/mac/SkStream_mac.cpp',
    105           ],
    106           'sources!': [
    107             '../src/ports/SkPurgeableMemoryBlock_none.cpp',
    108             '../src/ports/SkFontHost_tables.cpp',
    109           ],
    110         }],
    111         [ 'skia_os == "win"', {
    112           'include_dirs': [
    113             'config/win',
    114             '../src/utils/win',
    115           ],
    116           'conditions': [
    117             [ 'skia_directwrite', {
    118                 'sources!': [
    119                   '../src/ports/SkFontHost_win.cpp',
    120                 ],
    121               }, { # else !skia_directwrite
    122                 'sources!': [
    123                   '../src/ports/SkFontHost_win_dw.cpp',
    124                 ],
    125               }],
    126           ],
    127           'sources!': [ # these are used everywhere but windows
    128             '../src/ports/SkDebug_stdio.cpp',
    129             '../src/ports/SkOSFile_posix.cpp',
    130             '../src/ports/SkThread_pthread.cpp',
    131             '../src/ports/SkTime_Unix.cpp',
    132             '../src/ports/SkTLS_pthread.cpp',
    133           ],
    134         }, { # else !win
    135           'sources!': [
    136             '../src/ports/SkDebug_win.cpp',
    137             '../src/ports/SkFontHost_win.cpp',
    138             '../src/ports/SkFontHost_win_dw.cpp',
    139             '../src/ports/SkOSFile_win.cpp',
    140             '../src/ports/SkThread_win.cpp',
    141             '../src/ports/SkTime_win.cpp',
    142             '../src/ports/SkTLS_win.cpp',
    143           ],
    144         }],
    145         [ 'skia_os == "android"', {
    146           'sources!': [
    147             '../src/ports/SkDebug_stdio.cpp',
    148             '../src/ports/SkPurgeableMemoryBlock_none.cpp',
    149           ],
    150           'sources': [
    151             '../src/ports/SkDebug_android.cpp',
    152             '../src/ports/SkFontConfigInterface_android.cpp',
    153             '../src/ports/SkFontConfigParser_android.cpp',
    154             '../src/ports/SkFontHost_fontconfig.cpp',
    155             '../src/ports/SkPurgeableMemoryBlock_android.cpp',
    156           ],
    157           'dependencies': [
    158              'android_deps.gyp:expat',
    159           ],
    160         }],
    161       ],
    162       'direct_dependent_settings': {
    163         'include_dirs': [
    164           '../include/ports',
    165         ],
    166       },
    167     },
    168   ],
    169 }
    170 
    171 # Local Variables:
    172 # tab-width:2
    173 # indent-tabs-mode:nil
    174 # End:
    175 # vim: set expandtab tabstop=2 shiftwidth=2:
    176