| OLD | NEW |
| 1 # This GYP file stores the dependencies necessary to build Skia on the Android | 1 # This GYP file stores the dependencies necessary to build Skia on the Android |
| 2 # platform. The OS doesn't provide many stable libraries as part of the | 2 # platform. The OS doesn't provide many stable libraries as part of the |
| 3 # distribution so we have to build a few of them ourselves. | 3 # distribution so we have to build a few of them ourselves. |
| 4 # | 4 # |
| 5 # NOTE: We tried adding the gyp file to the android/ directory at the root of | 5 # NOTE: We tried adding the gyp file to the android/ directory at the root of |
| 6 # the Skia repo, but that resulted in the generated makefiles being created | 6 # the Skia repo, but that resulted in the generated makefiles being created |
| 7 # outside of the out directory. We may be able to move the bulk of this gyp | 7 # outside of the out directory. We may be able to move the bulk of this gyp |
| 8 # to the /android directory and put a simple shim here, but that has yet to be | 8 # to the /android directory and put a simple shim here, but that has yet to be |
| 9 # tested. | 9 # tested. |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 'sources': [ | 35 'sources': [ |
| 36 '../third_party/externals/expat/lib/xmlparse.c', | 36 '../third_party/externals/expat/lib/xmlparse.c', |
| 37 '../third_party/externals/expat/lib/xmlrole.c', | 37 '../third_party/externals/expat/lib/xmlrole.c', |
| 38 '../third_party/externals/expat/lib/xmltok.c', | 38 '../third_party/externals/expat/lib/xmltok.c', |
| 39 ], | 39 ], |
| 40 'include_dirs': [ | 40 'include_dirs': [ |
| 41 '../third_party/externals/expat', | 41 '../third_party/externals/expat', |
| 42 '../third_party/externals/expat/lib', | 42 '../third_party/externals/expat/lib', |
| 43 ], | 43 ], |
| 44 'cflags': [ | 44 'cflags': [ |
| 45 '-Wall', | 45 '-w', |
| 46 '-Wmissing-prototypes', | |
| 47 '-Wstrict-prototypes', | |
| 48 '-fexceptions', | 46 '-fexceptions', |
| 49 '-DHAVE_EXPAT_CONFIG_H', | 47 '-DHAVE_EXPAT_CONFIG_H', |
| 50 ], | 48 ], |
| 51 'direct_dependent_settings': { | 49 'direct_dependent_settings': { |
| 52 'include_dirs': [ | 50 'include_dirs': [ |
| 53 '../third_party/externals/expat/lib', # For expat.h | 51 '../third_party/externals/expat/lib', # For expat.h |
| 54 ], | 52 ], |
| 55 } | 53 } |
| 56 }, | 54 }, |
| 57 { | 55 { |
| 58 'target_name': 'gif', | 56 'target_name': 'gif', |
| 59 'type': 'static_library', | 57 'type': 'static_library', |
| 60 'sources': [ | 58 'sources': [ |
| 61 '../third_party/externals/gif/dgif_lib.c', | 59 '../third_party/externals/gif/dgif_lib.c', |
| 62 '../third_party/externals/gif/gifalloc.c', | 60 '../third_party/externals/gif/gifalloc.c', |
| 63 '../third_party/externals/gif/gif_err.c', | 61 '../third_party/externals/gif/gif_err.c', |
| 64 ], | 62 ], |
| 65 'include_dirs': [ | 63 'include_dirs': [ |
| 66 '../third_party/externals/gif', | 64 '../third_party/externals/gif', |
| 67 ], | 65 ], |
| 68 'cflags': [ | 66 'cflags': [ |
| 69 '-Wno-format', | 67 '-w', |
| 70 '-DHAVE_CONFIG_H', | 68 '-DHAVE_CONFIG_H', |
| 71 ], | 69 ], |
| 72 'cflags!': [ | |
| 73 '-Wall', | |
| 74 ], | |
| 75 'direct_dependent_settings': { | 70 'direct_dependent_settings': { |
| 76 'include_dirs': [ | 71 'include_dirs': [ |
| 77 '../third_party/externals/gif', | 72 '../third_party/externals/gif', |
| 78 ], | 73 ], |
| 79 } | 74 } |
| 80 }, | 75 }, |
| 81 { | 76 { |
| 82 'target_name': 'png', | 77 'target_name': 'png', |
| 83 'type': 'static_library', | 78 'type': 'static_library', |
| 84 'sources': [ | 79 'sources': [ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 97 '../third_party/externals/png/pngvcrd.c', | 92 '../third_party/externals/png/pngvcrd.c', |
| 98 '../third_party/externals/png/pngwio.c', | 93 '../third_party/externals/png/pngwio.c', |
| 99 '../third_party/externals/png/pngwrite.c', | 94 '../third_party/externals/png/pngwrite.c', |
| 100 '../third_party/externals/png/pngwtran.c', | 95 '../third_party/externals/png/pngwtran.c', |
| 101 '../third_party/externals/png/pngwutil.c', | 96 '../third_party/externals/png/pngwutil.c', |
| 102 ], | 97 ], |
| 103 'include_dirs': [ | 98 'include_dirs': [ |
| 104 '../third_party/externals/png', | 99 '../third_party/externals/png', |
| 105 ], | 100 ], |
| 106 'cflags': [ | 101 'cflags': [ |
| 102 '-w', |
| 107 '-fvisibility=hidden', | 103 '-fvisibility=hidden', |
| 108 ], | 104 ], |
| 109 'cflags!': [ | |
| 110 '-Wall', | |
| 111 ], | |
| 112 'link_settings': { | 105 'link_settings': { |
| 113 'libraries': [ | 106 'libraries': [ |
| 114 '-lz', | 107 '-lz', |
| 115 ], | 108 ], |
| 116 }, | 109 }, |
| 117 'direct_dependent_settings': { | 110 'direct_dependent_settings': { |
| 118 'include_dirs': [ | 111 'include_dirs': [ |
| 119 '../third_party/externals/png', | 112 '../third_party/externals/png', |
| 120 ], | 113 ], |
| 121 } | 114 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 }], | 233 }], |
| 241 ], | 234 ], |
| 242 'sources': [ | 235 'sources': [ |
| 243 '../app/jni/com_skia_SkiaSampleRenderer.cpp', | 236 '../app/jni/com_skia_SkiaSampleRenderer.cpp', |
| 244 ], | 237 ], |
| 245 }, | 238 }, |
| 246 | 239 |
| 247 }, | 240 }, |
| 248 ] | 241 ] |
| 249 } | 242 } |
| OLD | NEW |