benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # Skylark macros |
| 3 | ################################################################################ |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 4 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 5 | is_bazel = not hasattr(native, "genmpm") |
| 6 | |
| 7 | def portable_select(select_dict, bazel_condition, default_condition): |
| 8 | """Replaces select() with a Bazel-friendly wrapper. |
| 9 | |
| 10 | Args: |
| 11 | select_dict: Dictionary in the same format as select(). |
| 12 | Returns: |
| 13 | If Blaze platform, returns select() using select_dict. |
| 14 | If Bazel platform, returns dependencies for condition |
| 15 | bazel_condition, or empty list if none specified. |
| 16 | """ |
| 17 | if is_bazel: |
| 18 | return select_dict.get(bazel_condition, select_dict[default_condition]) |
| 19 | else: |
| 20 | return select(select_dict) |
| 21 | |
| 22 | def skia_select(conditions, results): |
| 23 | """Replaces select() for conditions [UNIX, ANDROID, IOS] |
| 24 | |
| 25 | Args: |
| 26 | conditions: [CONDITION_UNIX, CONDITION_ANDROID, CONDITION_IOS] |
| 27 | results: [RESULT_UNIX, RESULT_ANDROID, RESULT_IOS] |
| 28 | Returns: |
| 29 | The result matching the platform condition. |
| 30 | """ |
| 31 | if len(conditions) != 3 or len(results) != 3: |
| 32 | fail("Must provide exactly 3 conditions and 3 results") |
| 33 | |
| 34 | selector = {} |
| 35 | for i in range(3): |
| 36 | selector[conditions[i]] = results[i] |
| 37 | return portable_select(selector, conditions[2], conditions[0]) |
| 38 | |
| 39 | def skia_glob(srcs): |
| 40 | """Replaces glob() with a version that accepts a struct. |
| 41 | |
| 42 | Args: |
| 43 | srcs: struct(include=[], exclude=[]) |
| 44 | Returns: |
| 45 | Equivalent of glob(srcs.include, exclude=srcs.exclude) |
| 46 | """ |
| 47 | if hasattr(srcs, 'include'): |
| 48 | if hasattr(srcs, 'exclude'): |
| 49 | return native.glob(srcs.include, exclude=srcs.exclude) |
| 50 | else: |
| 51 | return native.glob(srcs.include) |
| 52 | return [] |
| 53 | |
| 54 | ################################################################################ |
iroth | 849b175 | 2016-04-11 13:45:51 -0700 | [diff] [blame] | 55 | ## PRIVATE_HDRS |
| 56 | ################################################################################ |
| 57 | |
| 58 | PRIVATE_HDRS_LIST = [ |
| 59 | "include/private/**/*", |
| 60 | "src/utils/SkWhitelistChecksums.cpp", |
| 61 | ] |
| 62 | |
| 63 | PRIVATE_HDRS = struct( |
| 64 | include = PRIVATE_HDRS_LIST, |
| 65 | ) |
| 66 | |
| 67 | ################################################################################ |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 68 | ## BASE_SRCS |
| 69 | ################################################################################ |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 70 | |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 71 | # All platform-independent SRCS. |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 72 | BASE_SRCS_ALL = struct( |
| 73 | include = [ |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 74 | "src/**/*.h", |
| 75 | "src/**/*.cpp", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 76 | |
mtklein | d55d13a | 2015-08-18 08:51:49 -0700 | [diff] [blame] | 77 | # Third Party |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 78 | "third_party/etc1/*.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 79 | "third_party/etc1/*.h", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 80 | "third_party/ktx/*.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 81 | "third_party/ktx/*.h", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 82 | ], |
iroth | 849b175 | 2016-04-11 13:45:51 -0700 | [diff] [blame] | 83 | exclude = PRIVATE_HDRS_LIST + [ |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 84 | # Exclude platform-dependent files. |
iroth | d2ccc77 | 2016-01-25 11:24:57 -0800 | [diff] [blame] | 85 | "src/android/*", |
iroth | 76a1225 | 2016-01-07 07:11:39 -0800 | [diff] [blame] | 86 | "src/codec/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 87 | "src/device/xps/*", # Windows-only. Move to ports? |
| 88 | "src/doc/*_XPS.cpp", # Windows-only. Move to ports? |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 89 | "src/fonts/SkFontMgr_fontconfig.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 90 | "src/gpu/gl/android/*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 91 | "src/gpu/gl/egl/*", |
benjaminwagner | af3b35e | 2016-03-28 13:27:28 -0700 | [diff] [blame] | 92 | "src/gpu/gl/glfw/*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 93 | "src/gpu/gl/glx/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 94 | "src/gpu/gl/iOS/*", |
| 95 | "src/gpu/gl/mac/*", |
| 96 | "src/gpu/gl/win/*", |
iroth | 76a1225 | 2016-01-07 07:11:39 -0800 | [diff] [blame] | 97 | "src/images/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 98 | "src/opts/**/*", |
| 99 | "src/ports/**/*", |
| 100 | "src/utils/android/**/*", |
| 101 | "src/utils/mac/**/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 102 | "src/utils/SkThreadUtils_win.cpp", # Windows-only. Move to ports? |
| 103 | "src/utils/win/**/*", |
| 104 | "src/views/sdl/*", |
| 105 | "src/views/win/*", |
| 106 | "src/views/unix/*", |
| 107 | |
| 108 | # Exclude multiple definitions. |
| 109 | # TODO(mtklein): Move to opts? |
benjaminwagner | ca26a18 | 2016-03-14 15:21:12 -0700 | [diff] [blame] | 110 | "src/pdf/SkDocument_PDF_None.cpp", # We use src/pdf/SkPDFDocument.cpp. |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 111 | "src/gpu/gl/GrGLCreateNativeInterface_none.cpp", |
| 112 | "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
iroth | 5f0de06 | 2016-02-17 12:47:27 -0800 | [diff] [blame] | 113 | "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 114 | |
| 115 | # Exclude files that don't compile with the current DEFINES. |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 116 | "src/gpu/gl/mesa/*", # Requires SK_MESA define. |
| 117 | "src/svg/parser/*", # Missing SkSVG.h. |
| 118 | |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 119 | # Conflicting dependencies among Lua versions. See cl/107087297. |
| 120 | "src/utils/SkLua*", |
| 121 | |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 122 | # Not used. |
| 123 | "src/animator/**/*", |
| 124 | "src/views/**/*", |
| 125 | "src/xml/SkBML_Verbs.h", |
| 126 | "src/xml/SkBML_XMLParser.cpp", |
| 127 | "src/xml/SkXMLPullParser.cpp", |
egdaniel | 32119f1 | 2016-02-22 10:07:54 -0800 | [diff] [blame] | 128 | |
| 129 | # Currently exclude all vulkan specific files |
| 130 | "src/gpu/vk/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 131 | ], |
| 132 | ) |
| 133 | |
| 134 | # Platform-dependent SRCS for google3-default platform. |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 135 | BASE_SRCS_UNIX = struct( |
| 136 | include = [ |
iroth | d2ccc77 | 2016-01-25 11:24:57 -0800 | [diff] [blame] | 137 | "src/android/*", |
iroth | 76a1225 | 2016-01-07 07:11:39 -0800 | [diff] [blame] | 138 | "src/codec/*", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 139 | "src/fonts/SkFontMgr_fontconfig.cpp", |
iroth | 5f0de06 | 2016-02-17 12:47:27 -0800 | [diff] [blame] | 140 | "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
iroth | 76a1225 | 2016-01-07 07:11:39 -0800 | [diff] [blame] | 141 | "src/images/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 142 | "src/opts/**/*.cpp", |
| 143 | "src/opts/**/*.h", |
| 144 | "src/ports/**/*.cpp", |
| 145 | "src/ports/**/*.h", |
| 146 | ], |
| 147 | exclude = [ |
| 148 | "src/opts/*arm*", |
| 149 | "src/opts/*mips*", |
| 150 | "src/opts/*NEON*", |
| 151 | "src/opts/*neon*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 152 | # Included in :opts_ssse3 library. |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 153 | "src/opts/*SSSE3*", |
| 154 | "src/opts/*ssse3*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 155 | # Included in :opts_sse4 library. |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 156 | "src/opts/*SSE4*", |
| 157 | "src/opts/*sse4*", |
mtklein | f6d8d28 | 2015-12-17 10:18:04 -0800 | [diff] [blame] | 158 | # Included in :opts_avx or :opts_avx2 |
| 159 | "src/opts/*avx*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 160 | "src/opts/SkBitmapProcState_opts_none.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 161 | "src/opts/SkBlitMask_opts_none.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 162 | "src/opts/SkBlitRow_opts_none.cpp", |
msarett | 6b4985c | 2016-03-10 07:15:59 -0800 | [diff] [blame] | 163 | "src/ports/*CG*", |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 164 | "src/ports/*WIC*", |
mtklein | 3f193a9 | 2016-03-10 08:52:05 -0800 | [diff] [blame] | 165 | "src/ports/*android*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 166 | "src/ports/*chromium*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 167 | "src/ports/*mac*", |
| 168 | "src/ports/*mozalloc*", |
| 169 | "src/ports/*nacl*", |
| 170 | "src/ports/*win*", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 171 | "src/ports/SkFontConfigInterface_direct_factory.cpp", |
| 172 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 173 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
benjaminwagner | d9dd581 | 2016-03-21 10:45:01 -0700 | [diff] [blame] | 174 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 175 | "src/ports/SkFontMgr_empty_factory.cpp", |
benjaminwagner | 404816e | 2015-12-03 05:04:03 -0800 | [diff] [blame] | 176 | "src/ports/SkFontMgr_fontconfig.cpp", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 177 | "src/ports/SkFontMgr_fontconfig_factory.cpp", |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 178 | "src/ports/SkImageEncoder_none.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 179 | "src/ports/SkImageGenerator_none.cpp", |
| 180 | "src/ports/SkTLS_none.cpp", |
mtklein | d55d13a | 2015-08-18 08:51:49 -0700 | [diff] [blame] | 181 | ], |
| 182 | ) |
| 183 | |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 184 | # Platform-dependent SRCS for google3-default Android. |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 185 | BASE_SRCS_ANDROID = struct( |
| 186 | include = [ |
iroth | d2ccc77 | 2016-01-25 11:24:57 -0800 | [diff] [blame] | 187 | "src/android/*", |
iroth | 76a1225 | 2016-01-07 07:11:39 -0800 | [diff] [blame] | 188 | "src/codec/*", |
iroth | 5f0de06 | 2016-02-17 12:47:27 -0800 | [diff] [blame] | 189 | "src/gpu/gl/GrGLDefaultInterface_none.cpp", |
iroth | 76a1225 | 2016-01-07 07:11:39 -0800 | [diff] [blame] | 190 | "src/images/*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 191 | # TODO(benjaminwagner): Figure out how to compile with EGL. |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 192 | "src/opts/**/*.cpp", |
| 193 | "src/opts/**/*.h", |
| 194 | "src/ports/**/*.cpp", |
| 195 | "src/ports/**/*.h", |
| 196 | ], |
| 197 | exclude = [ |
| 198 | "src/opts/*mips*", |
| 199 | "src/opts/*SSE2*", |
| 200 | "src/opts/*SSSE3*", |
| 201 | "src/opts/*ssse3*", |
| 202 | "src/opts/*SSE4*", |
| 203 | "src/opts/*sse4*", |
mtklein | f6d8d28 | 2015-12-17 10:18:04 -0800 | [diff] [blame] | 204 | "src/opts/*avx*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 205 | "src/opts/*x86*", |
| 206 | "src/opts/SkBitmapProcState_opts_none.cpp", |
| 207 | "src/opts/SkBlitMask_opts_none.cpp", |
| 208 | "src/opts/SkBlitRow_opts_none.cpp", |
msarett | 6b4985c | 2016-03-10 07:15:59 -0800 | [diff] [blame] | 209 | "src/ports/*CG*", |
mtklein | 3f193a9 | 2016-03-10 08:52:05 -0800 | [diff] [blame] | 210 | "src/ports/*FontConfig*", |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 211 | "src/ports/*WIC*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 212 | "src/ports/*chromium*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 213 | "src/ports/*fontconfig*", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 214 | "src/ports/*mac*", |
| 215 | "src/ports/*mozalloc*", |
| 216 | "src/ports/*nacl*", |
| 217 | "src/ports/*win*", |
| 218 | "src/ports/SkDebug_stdio.cpp", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 219 | "src/ports/SkFontConfigInterface_direct_factory.cpp", |
| 220 | "src/ports/SkFontConfigInterface_direct_google3_factory.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 221 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 222 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
benjaminwagner | d9dd581 | 2016-03-21 10:45:01 -0700 | [diff] [blame] | 223 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 224 | "src/ports/SkFontMgr_empty_factory.cpp", |
msarett | c1d0312 | 2016-03-25 08:58:55 -0700 | [diff] [blame] | 225 | "src/ports/SkImageEncoder_none.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 226 | "src/ports/SkImageGenerator_none.cpp", |
| 227 | "src/ports/SkTLS_none.cpp", |
| 228 | ], |
| 229 | ) |
| 230 | |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 231 | # Platform-dependent SRCS for google3-default iOS. |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 232 | BASE_SRCS_IOS = struct( |
| 233 | include = [ |
msarett | 2775cf5 | 2016-02-17 14:14:25 -0800 | [diff] [blame] | 234 | "src/android/*", |
| 235 | "src/codec/*", |
iroth | 5f0de06 | 2016-02-17 12:47:27 -0800 | [diff] [blame] | 236 | "src/gpu/gl/GrGLDefaultInterface_native.cpp", |
| 237 | "src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 238 | "src/opts/**/*.cpp", |
| 239 | "src/opts/**/*.h", |
| 240 | "src/ports/**/*.cpp", |
| 241 | "src/ports/**/*.h", |
iroth | ab669de | 2016-02-16 19:17:01 -0800 | [diff] [blame] | 242 | "src/utils/mac/*.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 243 | ], |
| 244 | exclude = [ |
msarett | 2775cf5 | 2016-02-17 14:14:25 -0800 | [diff] [blame] | 245 | "src/codec/*Gif*.cpp", |
| 246 | "src/codec/*Ico*.cpp", |
| 247 | "src/codec/*Jpeg*.cpp", |
| 248 | "src/codec/*Webp*.cpp", |
| 249 | "src/codec/*Png*", |
| 250 | "src/codec/*Raw*.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 251 | "src/opts/*mips*", |
| 252 | "src/opts/*NEON*", |
| 253 | "src/opts/*neon*", |
| 254 | "src/opts/*SSE2*", |
| 255 | "src/opts/*SSSE3*", |
| 256 | "src/opts/*ssse3*", |
| 257 | "src/opts/*SSE4*", |
| 258 | "src/opts/*sse4*", |
mtklein | f6d8d28 | 2015-12-17 10:18:04 -0800 | [diff] [blame] | 259 | "src/opts/*avx*", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 260 | "src/opts/*x86*", |
| 261 | "src/opts/SkBitmapProcState_opts_none.cpp", |
iroth | d2ccc77 | 2016-01-25 11:24:57 -0800 | [diff] [blame] | 262 | "src/opts/SkBlitMask_opts_arm*.cpp", |
| 263 | "src/opts/SkBlitRow_opts_arm*.cpp", |
mtklein | 3f193a9 | 2016-03-10 08:52:05 -0800 | [diff] [blame] | 264 | "src/ports/*CG*", |
| 265 | "src/ports/*FontConfig*", |
| 266 | "src/ports/*FreeType*", |
msarett | fc0b6d1 | 2016-03-17 13:50:17 -0700 | [diff] [blame] | 267 | "src/ports/*WIC*", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 268 | "src/ports/*android*", |
| 269 | "src/ports/*chromium*", |
| 270 | "src/ports/*fontconfig*", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 271 | "src/ports/*mozalloc*", |
| 272 | "src/ports/*nacl*", |
| 273 | "src/ports/*win*", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 274 | "src/ports/SkFontMgr_custom.cpp", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 275 | "src/ports/SkFontConfigInterface_direct_factory.cpp", |
| 276 | "src/ports/SkFontConfigInterface_direct_google3_factory.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 277 | "src/ports/SkFontMgr_custom_directory_factory.cpp", |
| 278 | "src/ports/SkFontMgr_custom_embedded_factory.cpp", |
benjaminwagner | d9dd581 | 2016-03-21 10:45:01 -0700 | [diff] [blame] | 279 | "src/ports/SkFontMgr_custom_empty_factory.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 280 | "src/ports/SkFontMgr_empty_factory.cpp", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 281 | "src/ports/SkImageGenerator_none.cpp", |
| 282 | "src/ports/SkTLS_none.cpp", |
| 283 | ], |
| 284 | ) |
| 285 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 286 | ################################################################################ |
| 287 | ## SSSE3/SSE4/AVX/AVX2 SRCS |
| 288 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 289 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 290 | SSSE3_SRCS = struct( |
| 291 | include = [ |
mtklein | d55d13a | 2015-08-18 08:51:49 -0700 | [diff] [blame] | 292 | "src/opts/*SSSE3*.cpp", |
| 293 | "src/opts/*ssse3*.cpp", |
benjaminwagner | 89061ed | 2016-01-25 09:29:08 -0800 | [diff] [blame] | 294 | ], |
| 295 | ) |
mtklein | d55d13a | 2015-08-18 08:51:49 -0700 | [diff] [blame] | 296 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 297 | SSE4_SRCS = struct( |
| 298 | include = [ |
mtklein | d55d13a | 2015-08-18 08:51:49 -0700 | [diff] [blame] | 299 | "src/opts/*SSE4*.cpp", |
| 300 | "src/opts/*sse4*.cpp", |
benjaminwagner | 89061ed | 2016-01-25 09:29:08 -0800 | [diff] [blame] | 301 | ], |
| 302 | ) |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 303 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 304 | AVX_SRCS = struct( |
| 305 | include = [ |
mtklein | f6d8d28 | 2015-12-17 10:18:04 -0800 | [diff] [blame] | 306 | "src/opts/*_avx.cpp", |
benjaminwagner | 89061ed | 2016-01-25 09:29:08 -0800 | [diff] [blame] | 307 | ], |
| 308 | ) |
mtklein | f6d8d28 | 2015-12-17 10:18:04 -0800 | [diff] [blame] | 309 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 310 | AVX2_SRCS = struct( |
| 311 | include = [ |
mtklein | f6d8d28 | 2015-12-17 10:18:04 -0800 | [diff] [blame] | 312 | "src/opts/*_avx2.cpp", |
benjaminwagner | 89061ed | 2016-01-25 09:29:08 -0800 | [diff] [blame] | 313 | ], |
| 314 | ) |
mtklein | f6d8d28 | 2015-12-17 10:18:04 -0800 | [diff] [blame] | 315 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 316 | ################################################################################ |
| 317 | ## BASE_HDRS |
| 318 | ################################################################################ |
| 319 | |
| 320 | BASE_HDRS = struct( |
| 321 | include = [ |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 322 | "include/**/*.h", |
| 323 | ], |
iroth | 849b175 | 2016-04-11 13:45:51 -0700 | [diff] [blame] | 324 | exclude = PRIVATE_HDRS_LIST + [ |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 325 | # Not used. |
| 326 | "include/animator/**/*", |
| 327 | "include/views/**/*", |
| 328 | "include/xml/SkBML_WXMLParser.h", |
| 329 | "include/xml/SkBML_XMLParser.h", |
benjaminwagner | 89061ed | 2016-01-25 09:29:08 -0800 | [diff] [blame] | 330 | ], |
| 331 | ) |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 332 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 333 | ################################################################################ |
| 334 | ## BASE_DEPS |
| 335 | ################################################################################ |
| 336 | |
| 337 | BASE_DEPS_ALL = [] |
| 338 | |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 339 | BASE_DEPS_UNIX = [ |
iroth | 330043c | 2016-01-12 14:22:24 -0800 | [diff] [blame] | 340 | ":opts_ssse3", |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 341 | ":opts_sse4", |
| 342 | ":opts_avx", |
| 343 | ":opts_avx2", |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 344 | ] |
| 345 | |
| 346 | BASE_DEPS_ANDROID = [] |
| 347 | |
| 348 | BASE_DEPS_IOS = [] |
| 349 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 350 | ################################################################################ |
| 351 | ## INCLUDES |
| 352 | ################################################################################ |
benjaminwagner | 39e7aa4 | 2015-11-18 13:26:10 -0800 | [diff] [blame] | 353 | |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 354 | # Includes needed by Skia implementation. Not public includes. |
| 355 | INCLUDES = [ |
benjaminwagner | fa7e1a0 | 2015-11-13 12:27:08 -0800 | [diff] [blame] | 356 | "include/android", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 357 | "include/c", |
robertphillips | 188d44c | 2016-02-01 04:54:14 -0800 | [diff] [blame] | 358 | "include/client/android", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 359 | "include/codec", |
| 360 | "include/config", |
| 361 | "include/core", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 362 | "include/effects", |
| 363 | "include/gpu", |
| 364 | "include/images", |
| 365 | "include/pathops", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 366 | "include/pipe", |
| 367 | "include/ports", |
| 368 | "include/private", |
| 369 | "include/utils", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 370 | "include/utils/mac", |
| 371 | "include/utils/win", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 372 | "include/svg", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 373 | "include/xml", |
benjaminwagner | fa7e1a0 | 2015-11-13 12:27:08 -0800 | [diff] [blame] | 374 | "src/codec", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 375 | "src/core", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 376 | "src/gpu", |
| 377 | "src/image", |
| 378 | "src/lazy", |
| 379 | "src/opts", |
benjaminwagner | 2211a7b | 2015-12-01 11:12:05 -0800 | [diff] [blame] | 380 | "src/ports", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 381 | "src/pdf", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 382 | "src/sfnt", |
| 383 | "src/utils", |
| 384 | "third_party/etc1", |
| 385 | "third_party/ktx", |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 386 | ] |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 387 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 388 | ################################################################################ |
| 389 | ## DM_SRCS |
| 390 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 391 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 392 | DM_SRCS_ALL = struct( |
| 393 | include = [ |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 394 | "dm/*.cpp", |
| 395 | "dm/*.h", |
| 396 | "gm/*.c", |
| 397 | "gm/*.cpp", |
| 398 | "gm/*.h", |
| 399 | "tests/*.cpp", |
| 400 | "tests/*.h", |
| 401 | "tools/CrashHandler.cpp", |
| 402 | "tools/CrashHandler.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 403 | "tools/ProcStats.cpp", |
| 404 | "tools/ProcStats.h", |
| 405 | "tools/Resources.cpp", |
| 406 | "tools/Resources.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 407 | "tools/flags/*.cpp", |
| 408 | "tools/flags/*.h", |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 409 | "tools/gpu/**/*.cpp", |
| 410 | "tools/gpu/**/*.h", |
brianosman | 6d3119c | 2016-04-19 19:41:54 -0700 | [diff] [blame] | 411 | "tools/picture_utils.cpp", |
mtklein | e1fc452 | 2016-02-09 12:32:52 -0800 | [diff] [blame] | 412 | "tools/random_parse_path.cpp", |
| 413 | "tools/random_parse_path.h", |
benjaminwagner | 3288514 | 2015-10-24 07:55:31 -0700 | [diff] [blame] | 414 | "tools/sk_tool_utils.cpp", |
| 415 | "tools/sk_tool_utils.h", |
| 416 | "tools/sk_tool_utils_font.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 417 | "tools/timer/*.cpp", |
| 418 | "tools/timer/*.h", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 419 | ], |
| 420 | exclude = [ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 421 | "dm/DMSrcSinkAndroid.cpp", # Android-only. |
| 422 | "tests/FontMgrAndroidParserTest.cpp", # Android-only. |
| 423 | "tests/PathOpsSkpClipTest.cpp", # Alternate main. |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 424 | "tests/skia_test.cpp", # Old main. |
| 425 | "tests/SkpSkGrTest.cpp", # Alternate main. |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 426 | "tools/gpu/gl/angle/*", |
| 427 | "tools/gpu/gl/command_buffer/*", |
| 428 | "tools/gpu/gl/egl/*", |
| 429 | "tools/gpu/gl/glx/*", |
| 430 | "tools/gpu/gl/iOS/*", |
| 431 | "tools/gpu/gl/mac/*", |
| 432 | "tools/gpu/gl/mesa/*", |
| 433 | "tools/gpu/gl/win/*", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 434 | "tools/timer/SysTimer_mach.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 435 | "tools/timer/SysTimer_windows.cpp", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 436 | ], |
| 437 | ) |
| 438 | |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 439 | DM_SRCS_UNIX = struct( |
| 440 | include = [ |
| 441 | "tools/gpu/gl/CreatePlatformGLContext_none.cpp", |
| 442 | ], |
| 443 | ) |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 444 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 445 | DM_SRCS_ANDROID = struct( |
| 446 | include = [ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 447 | # Depends on Android HWUI library that is not available in google3. |
| 448 | #"dm/DMSrcSinkAndroid.cpp", |
| 449 | "tests/FontMgrAndroidParserTest.cpp", |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 450 | # TODO(benjaminwagner): Figure out how to compile with EGL. |
| 451 | "tools/gpu/gl/CreatePlatformGLContext_none.cpp", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 452 | ], |
| 453 | ) |
| 454 | |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 455 | DM_SRCS_IOS = struct( |
| 456 | include = [ |
| 457 | "tools/gpu/iOS/CreatePlatformGLContext_iOS.cpp", |
| 458 | ], |
| 459 | ) |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 460 | |
| 461 | ################################################################################ |
| 462 | ## DM_INCLUDES |
| 463 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 464 | |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 465 | DM_INCLUDES = [ |
benjaminwagner | b1fe8f6 | 2016-02-01 09:05:08 -0800 | [diff] [blame] | 466 | "dm", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 467 | "gm", |
| 468 | "src/codec", |
| 469 | "src/effects", |
benjaminwagner | bc9a9b4 | 2016-02-22 13:30:39 -0800 | [diff] [blame] | 470 | "src/effects/gradients", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 471 | "src/fonts", |
| 472 | "src/pathops", |
| 473 | "src/pipe/utils", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 474 | "src/ports", |
ethannicholas | 3cb9542 | 2016-02-09 12:44:06 -0800 | [diff] [blame] | 475 | "tools/debugger", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 476 | "tests", |
| 477 | "tools", |
| 478 | "tools/flags", |
benjaminwagner | 38d68bc | 2016-04-01 05:00:51 -0700 | [diff] [blame] | 479 | "tools/gpu", |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 480 | "tools/timer", |
| 481 | ] |
| 482 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 483 | ################################################################################ |
| 484 | ## DM_ARGS |
| 485 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 486 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 487 | def DM_ARGS(base_dir): |
| 488 | return [ |
| 489 | "--nogpu", |
| 490 | "--verbose", |
| 491 | # TODO(mtklein): maybe investigate why these fail? |
benjaminwagner | f6bfccd | 2016-02-25 10:28:11 -0800 | [diff] [blame] | 492 | "--match ~FontMgr ~Scalar ~Canvas ~Codec_stripes ~Codec_Dimensions ~Codec ~Stream ~skps ~RecordDraw_TextBounds ~PaintBreakText", |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 493 | "--resourcePath %s/resources" % base_dir, |
| 494 | "--images %s/resources" % base_dir, |
| 495 | ] |
| 496 | |
| 497 | ################################################################################ |
| 498 | ## COPTS |
| 499 | ################################################################################ |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 500 | |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 501 | COPTS_UNIX = [ |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 502 | "-Wno-implicit-fallthrough", # Some intentional fallthrough. |
benjaminwagner | 7d974f5 | 2015-10-19 13:55:55 -0700 | [diff] [blame] | 503 | "-Wno-deprecated-declarations", # Internal use of deprecated methods. :( |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 504 | ] |
| 505 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 506 | COPTS_ANDROID = ["-mfpu=neon"] |
| 507 | |
| 508 | COPTS_IOS = [] |
| 509 | |
| 510 | COPTS_ALL = [] |
| 511 | |
| 512 | ################################################################################ |
| 513 | ## DEFINES |
| 514 | ################################################################################ |
| 515 | |
| 516 | DEFINES_UNIX = [ |
msarett | 70e418b | 2016-02-12 12:35:48 -0800 | [diff] [blame] | 517 | "PNG_SKIP_SETJMP_CHECK", |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 518 | "SK_BUILD_FOR_UNIX", |
| 519 | "SK_SAMPLES_FOR_X", |
| 520 | "SK_SFNTLY_SUBSETTER", |
msarett | 39b2d5a | 2016-02-17 08:26:31 -0800 | [diff] [blame] | 521 | "SK_CODEC_DECODES_GIF", |
| 522 | "SK_CODEC_DECODES_JPEG", |
| 523 | "SK_CODEC_DECODES_PNG", |
benjaminwagner | 186e0b9 | 2016-02-11 16:00:24 -0800 | [diff] [blame] | 524 | "SK_CODEC_DECODES_RAW", |
msarett | 39b2d5a | 2016-02-17 08:26:31 -0800 | [diff] [blame] | 525 | "SK_CODEC_DECODES_WEBP", |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 526 | ] |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 527 | |
| 528 | DEFINES_ANDROID = [ |
| 529 | "SK_BUILD_FOR_ANDROID", |
msarett | 39b2d5a | 2016-02-17 08:26:31 -0800 | [diff] [blame] | 530 | "SK_CODEC_DECODES_GIF", |
| 531 | "SK_CODEC_DECODES_JPEG", |
| 532 | "SK_CODEC_DECODES_PNG", |
benjaminwagner | 186e0b9 | 2016-02-11 16:00:24 -0800 | [diff] [blame] | 533 | "SK_CODEC_DECODES_RAW", |
msarett | 39b2d5a | 2016-02-17 08:26:31 -0800 | [diff] [blame] | 534 | "SK_CODEC_DECODES_WEBP", |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 535 | ] |
| 536 | |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 537 | DEFINES_IOS = [ |
| 538 | "SK_BUILD_FOR_IOS", |
| 539 | "SK_IGNORE_ETC1_SUPPORT", |
iroth | d2ccc77 | 2016-01-25 11:24:57 -0800 | [diff] [blame] | 540 | "SKNX_NO_SIMD", |
iroth | 8b99ef4 | 2015-11-02 11:11:21 -0800 | [diff] [blame] | 541 | ] |
| 542 | |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 543 | DEFINES_ALL = [ |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 544 | # Chrome DEFINES. |
| 545 | "SK_USE_FLOATBITS", |
| 546 | "SK_USE_FREETYPE_EMBOLDEN", |
| 547 | # Turn on a few Google3-specific build fixes. |
| 548 | "GOOGLE3", |
reed | d053ce9 | 2016-03-22 10:17:23 -0700 | [diff] [blame] | 549 | # Staging flags for API changes |
| 550 | "SK_SUPPORT_LEGACY_COLORFILTER_PTR", |
| 551 | "SK_SUPPORT_LEGACY_CREATESHADER_PTR", |
benjaminwagner | 31dcc2a | 2016-04-01 06:54:34 -0700 | [diff] [blame] | 552 | "SK_SUPPORT_LEGACY_IMAGEFILTER_PTR", |
robertphillips | cb61a64 | 2016-04-21 15:22:14 -0700 | [diff] [blame] | 553 | "SK_SUPPORT_LEGACY_LAYERITER", |
benjaminwagner | 31dcc2a | 2016-04-01 06:54:34 -0700 | [diff] [blame] | 554 | "SK_SUPPORT_LEGACY_MINOR_EFFECT_PTR", |
| 555 | "SK_SUPPORT_LEGACY_NEW_SURFACE_API", |
| 556 | "SK_SUPPORT_LEGACY_PATHEFFECT_PTR", |
fmalita | 41c4096 | 2016-03-24 11:05:28 -0700 | [diff] [blame] | 557 | "SK_SUPPORT_LEGACY_PICTURE_PTR", |
reed | efdfd51 | 2016-04-04 10:02:58 -0700 | [diff] [blame] | 558 | "SK_SUPPORT_LEGACY_MASKFILTER_PTR", |
reed | 2a04104 | 2016-04-15 10:56:51 -0700 | [diff] [blame] | 559 | "SK_SUPPORT_LEGACY_IMAGEFACTORY", |
reed | cfb6bdf | 2016-03-29 11:32:50 -0700 | [diff] [blame] | 560 | "SK_SUPPORT_LEGACY_XFERMODE_PTR", |
benjaminwagner | 787ca87 | 2015-08-17 12:58:10 -0700 | [diff] [blame] | 561 | ] |
| 562 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 563 | ################################################################################ |
| 564 | ## LINKOPTS |
| 565 | ################################################################################ |
benjaminwagner | 86ea33e | 2015-10-26 10:46:25 -0700 | [diff] [blame] | 566 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 567 | LINKOPTS_UNIX = [] |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 568 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 569 | LINKOPTS_ANDROID = [ |
| 570 | "-lEGL", |
| 571 | ] |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 572 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 573 | LINKOPTS_IOS = [] |
benjaminwagner | 6f6bef8 | 2015-10-15 08:09:44 -0700 | [diff] [blame] | 574 | |
benjaminwagner | 56f6d06 | 2016-01-13 10:45:19 -0800 | [diff] [blame] | 575 | LINKOPTS_ALL = [ |
| 576 | "-ldl", |
| 577 | ] |