1 # GYP for iconv 2 # 3 # NOTE: WINDOWS BUILD ONLY. 4 # iconv should be native to Mac and Linux. 5 # 6 # Based on instructions found on http://www.codeproject.com/Articles/302012/How-to-Build-libiconv-with-Microsoft-Visual-Studio 7 # See the relevant README.chromium file for more information. 8 9 { 10 'variables': { 11 'skia_warnings_as_errors': 0, 12 }, 13 'targets': [ 14 { 15 'target_name': 'iconv', 16 'type': 'static_library', 17 'include_dirs' : [ 18 '../third_party/externals/iconv/lib', 19 '../third_party/iconv/config', 20 ], 21 'sources': [ 22 '../third_party/externals/iconv/lib/iconv.c', 23 '../third_party/externals/iconv/libcharset/lib/localcharset.c', 24 ], 25 26 'conditions': [ 27 ['skia_os == "win"', { 28 'include_dirs': [ 29 '../third_party/iconv/config/windows', 30 ], 31 'direct_dependent_settings': { 32 'include_dirs': [ 33 '../third_party/iconv/config/windows', 34 ], 35 }, 36 'defines': [ 37 'LIBDIR', 38 ], 39 }], 40 ], 41 }, 42 ], 43 } 44