| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |  | 
| 2 # Use of this source code is governed by a BSD-style license that can be |  | 
| 3 # found in the LICENSE file. |  | 
| 4 |  | 
| 5 { |  | 
| 6   'variables': { |  | 
| 7     'generated_src_dir': 'src/chromium_gensrc', |  | 
| 8   }, |  | 
| 9   'target_defaults': { |  | 
| 10     'defines': [ |  | 
| 11       'MAPI_ABI_HEADER="glapi_mapi_tmp_shared.h"', |  | 
| 12       "PACKAGE_NAME=\"Mesa\"", |  | 
| 13       "PACKAGE_TARNAME=\"mesa\"", |  | 
| 14       "PACKAGE_VERSION=\"9.0.3\"", |  | 
| 15       "PACKAGE_STRING=\"Mesa\ 9.0.3\"", |  | 
| 16       "PACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi\?product=M
     esa\"", |  | 
| 17       "PACKAGE_URL=\"\"", |  | 
| 18       "PACKAGE=\"mesa\"", |  | 
| 19       "VERSION=\"9.0.3\"", |  | 
| 20       "STDC_HEADERS=1", |  | 
| 21       "HAVE_SYS_TYPES_H=1", |  | 
| 22       "HAVE_SYS_STAT_H=1", |  | 
| 23       "HAVE_STDLIB_H=1", |  | 
| 24       "HAVE_STRING_H=1", |  | 
| 25       "HAVE_MEMORY_H=1", |  | 
| 26       "HAVE_STRINGS_H=1", |  | 
| 27       "HAVE_INTTYPES_H=1", |  | 
| 28       "HAVE_STDINT_H=1", |  | 
| 29       "HAVE_DLFCN_H=1", |  | 
| 30       "LT_OBJDIR=\".libs/\"", |  | 
| 31       "YYTEXT_POINTER=1", |  | 
| 32       "HAVE_LIBEXPAT=1", |  | 
| 33       "HAVE_LIBXCB_DRI2=1", |  | 
| 34       "FEATURE_GL=1", |  | 
| 35       'MAPI_MODE_GLAPI', |  | 
| 36       #"USE_X86_64_ASM", |  | 
| 37       "IN_DRI_DRIVER", |  | 
| 38       "USE_XCB", |  | 
| 39       "GLX_INDIRECT_RENDERING", |  | 
| 40       "GLX_DIRECT_RENDERING", |  | 
| 41       "USE_EXTERNAL_DXTN_LIB=1", |  | 
| 42       "IN_DRI_DRIVER", |  | 
| 43       "HAVE_ALIAS", |  | 
| 44       "HAVE_MINCORE", |  | 
| 45       "HAVE_LIBUDEV", |  | 
| 46       "_GLAPI_NO_EXPORTS", |  | 
| 47     ], |  | 
| 48     'conditions': [ |  | 
| 49       ['OS=="android" or OS=="linux"', { |  | 
| 50         'defines': [ |  | 
| 51           '_GNU_SOURCE', |  | 
| 52         ], |  | 
| 53       }], |  | 
| 54       ['OS=="win"', { |  | 
| 55         'defines': [ |  | 
| 56           # Generated files use const only if __cplusplus or __STDC__ is |  | 
| 57           # defined. On Windows, neither is defined, so define YY_USE_CONST |  | 
| 58           # to explicitly enable const. |  | 
| 59           'YY_USE_CONST', |  | 
| 60         ], |  | 
| 61       }], |  | 
| 62       ['os_posix == 1', { |  | 
| 63         'defines': [ |  | 
| 64           'HAVE_DLOPEN', |  | 
| 65           'HAVE_PTHREAD=1', |  | 
| 66           'HAVE_UNISTD_H=1', |  | 
| 67         ], |  | 
| 68       }], |  | 
| 69       ['os_posix == 1 and OS != "android"', { |  | 
| 70         'defines': [ |  | 
| 71           'HAVE_POSIX_MEMALIGN', |  | 
| 72         ], |  | 
| 73       }], |  | 
| 74       ['os_posix == 1 and OS != "mac" and OS != "android"', { |  | 
| 75         'cflags': [ |  | 
| 76           '-fPIC', |  | 
| 77         ], |  | 
| 78       }], |  | 
| 79       ['ubsan_vptr == 1', { |  | 
| 80         'cflags!': [ |  | 
| 81           # UBsan's vptr is not compatible with -fno-rtti, |  | 
| 82           # which is used by gallium/auxiliary/Makefile. |  | 
| 83           '-fsanitize=null', |  | 
| 84           '-fsanitize=vptr', |  | 
| 85           '-fsanitize-coverage=<(sanitizer_coverage)', |  | 
| 86         ], |  | 
| 87       }], |  | 
| 88     ], |  | 
| 89   }, |  | 
| 90   'targets': [ |  | 
| 91     { |  | 
| 92       'target_name': 'mesa_headers', |  | 
| 93       'type': 'none', |  | 
| 94       'direct_dependent_settings': { |  | 
| 95         'include_dirs': [ |  | 
| 96           'src/include', |  | 
| 97         ], |  | 
| 98       }, |  | 
| 99       'conditions': [ |  | 
| 100         ['use_x11==0', { |  | 
| 101           'direct_dependent_settings': { |  | 
| 102             'defines': [ |  | 
| 103               'MESA_EGL_NO_X11_HEADERS', |  | 
| 104             ], |  | 
| 105           }, |  | 
| 106         }], |  | 
| 107       ], |  | 
| 108     }, |  | 
| 109     { |  | 
| 110       'target_name': 'mesa_libglslcommon', |  | 
| 111       'type': 'static_library', |  | 
| 112       'include_dirs': [ |  | 
| 113         'src/src/gallium/auxiliary', |  | 
| 114         'src/src/gallium/include', |  | 
| 115         'src/src/glsl', |  | 
| 116         'src/src/glsl/glcpp', |  | 
| 117         'src/src/mapi', |  | 
| 118         'src/src/mapi/glapi', |  | 
| 119         'src/src/mesa', |  | 
| 120         'src/src/mesa/main', |  | 
| 121         'src/include', |  | 
| 122         '<(generated_src_dir)/mesa/', |  | 
| 123         '<(generated_src_dir)/mesa/main', |  | 
| 124         '<(generated_src_dir)/mesa/program', |  | 
| 125         '<(generated_src_dir)/mesa/glapi', |  | 
| 126       ], |  | 
| 127       'dependencies': [ |  | 
| 128         'mesa_headers', |  | 
| 129       ], |  | 
| 130       # TODO(scottmg): http://crbug.com/143877 These should be removed if |  | 
| 131       # Mesa is ever rolled and the warnings are fixed. |  | 
| 132       'msvs_disabled_warnings': [ |  | 
| 133           4005, 4018, 4065, 4090, 4099, 4291, 4345, 4267, |  | 
| 134       ], |  | 
| 135       'variables': { |  | 
| 136         'clang_warning_flags': [ |  | 
| 137           '-Wno-tautological-constant-out-of-range-compare', |  | 
| 138           '-Wno-mismatched-tags',  # Fixed upstream. |  | 
| 139           # https://bugs.freedesktop.org/show_bug.cgi?id=91645: |  | 
| 140           '-Wno-overloaded-virtual', |  | 
| 141         ], |  | 
| 142         'clang_warning_flags_unset': [ |  | 
| 143           # Don't warn about string->bool used in asserts. |  | 
| 144           '-Wstring-conversion', |  | 
| 145         ], |  | 
| 146       }, |  | 
| 147       'sources': [ |  | 
| 148         '<(generated_src_dir)/mesa/main/dispatch.h', |  | 
| 149         'src/src/glsl/ast_expr.cpp', |  | 
| 150         'src/src/glsl/ast_function.cpp', |  | 
| 151         'src/src/glsl/ast_to_hir.cpp', |  | 
| 152         'src/src/glsl/ast_type.cpp', |  | 
| 153         'src/src/glsl/builtin_variables.cpp', |  | 
| 154         '<(generated_src_dir)/mesa/glcpp-lex.c', |  | 
| 155         '<(generated_src_dir)/mesa/glcpp-parse.c', |  | 
| 156         '<(generated_src_dir)/mesa/glcpp-parse.h', |  | 
| 157         'src/src/glsl/glcpp/glcpp.h', |  | 
| 158         'src/src/glsl/glcpp/pp.c', |  | 
| 159         '<(generated_src_dir)/mesa/glsl_lexer.cc', |  | 
| 160         '<(generated_src_dir)/mesa/glsl_parser.cc', |  | 
| 161         'src/src/glsl/glsl_parser_extras.cpp', |  | 
| 162         'src/src/glsl/glsl_parser_extras.h', |  | 
| 163         'src/src/glsl/glsl_symbol_table.cpp', |  | 
| 164         'src/src/glsl/glsl_symbol_table.h', |  | 
| 165         'src/src/glsl/glsl_types.cpp', |  | 
| 166         'src/src/glsl/glsl_types.h', |  | 
| 167         'src/src/glsl/hir_field_selection.cpp', |  | 
| 168         'src/src/glsl/ir.cpp', |  | 
| 169         'src/src/glsl/ir.h', |  | 
| 170         'src/src/glsl/ir_basic_block.cpp', |  | 
| 171         'src/src/glsl/ir_basic_block.h', |  | 
| 172         'src/src/glsl/ir_builder.cpp', |  | 
| 173         'src/src/glsl/ir_builder.h', |  | 
| 174         'src/src/glsl/ir_clone.cpp', |  | 
| 175         'src/src/glsl/ir_constant_expression.cpp', |  | 
| 176         'src/src/glsl/ir_expression_flattening.cpp', |  | 
| 177         'src/src/glsl/ir_expression_flattening.h', |  | 
| 178         'src/src/glsl/ir_function.cpp', |  | 
| 179         'src/src/glsl/ir_function_can_inline.cpp', |  | 
| 180         'src/src/glsl/ir_function_detect_recursion.cpp', |  | 
| 181         'src/src/glsl/ir_hierarchical_visitor.cpp', |  | 
| 182         'src/src/glsl/ir_hierarchical_visitor.h', |  | 
| 183         'src/src/glsl/ir_hv_accept.cpp', |  | 
| 184         'src/src/glsl/ir_import_prototypes.cpp', |  | 
| 185         'src/src/glsl/ir_print_visitor.cpp', |  | 
| 186         'src/src/glsl/ir_print_visitor.h', |  | 
| 187         'src/src/glsl/ir_reader.cpp', |  | 
| 188         'src/src/glsl/ir_reader.h', |  | 
| 189         'src/src/glsl/ir_rvalue_visitor.cpp', |  | 
| 190         'src/src/glsl/ir_rvalue_visitor.h', |  | 
| 191         'src/src/glsl/ir_set_program_inouts.cpp', |  | 
| 192         'src/src/glsl/ir_validate.cpp', |  | 
| 193         'src/src/glsl/ir_variable_refcount.cpp', |  | 
| 194         'src/src/glsl/ir_variable_refcount.h', |  | 
| 195         'src/src/glsl/link_functions.cpp', |  | 
| 196         'src/src/glsl/link_uniform_initializers.cpp', |  | 
| 197         'src/src/glsl/link_uniforms.cpp', |  | 
| 198         'src/src/glsl/linker.cpp', |  | 
| 199         'src/src/glsl/linker.h', |  | 
| 200         'src/src/glsl/loop_analysis.cpp', |  | 
| 201         'src/src/glsl/loop_analysis.h', |  | 
| 202         'src/src/glsl/loop_controls.cpp', |  | 
| 203         'src/src/glsl/loop_unroll.cpp', |  | 
| 204         'src/src/glsl/lower_clip_distance.cpp', |  | 
| 205         'src/src/glsl/lower_discard.cpp', |  | 
| 206         'src/src/glsl/lower_discard_flow.cpp', |  | 
| 207         'src/src/glsl/lower_if_to_cond_assign.cpp', |  | 
| 208         'src/src/glsl/lower_instructions.cpp', |  | 
| 209         'src/src/glsl/lower_jumps.cpp', |  | 
| 210         'src/src/glsl/lower_mat_op_to_vec.cpp', |  | 
| 211         'src/src/glsl/lower_noise.cpp', |  | 
| 212         'src/src/glsl/lower_output_reads.cpp', |  | 
| 213         'src/src/glsl/lower_texture_projection.cpp', |  | 
| 214         'src/src/glsl/lower_ubo_reference.cpp', |  | 
| 215         'src/src/glsl/lower_variable_index_to_cond_assign.cpp', |  | 
| 216         'src/src/glsl/lower_vec_index_to_cond_assign.cpp', |  | 
| 217         'src/src/glsl/lower_vec_index_to_swizzle.cpp', |  | 
| 218         'src/src/glsl/lower_vector.cpp', |  | 
| 219         'src/src/glsl/opt_algebraic.cpp', |  | 
| 220         'src/src/glsl/opt_array_splitting.cpp', |  | 
| 221         'src/src/glsl/opt_constant_folding.cpp', |  | 
| 222         'src/src/glsl/opt_constant_propagation.cpp', |  | 
| 223         'src/src/glsl/opt_constant_variable.cpp', |  | 
| 224         'src/src/glsl/opt_copy_propagation.cpp', |  | 
| 225         'src/src/glsl/opt_copy_propagation_elements.cpp', |  | 
| 226         'src/src/glsl/opt_dead_code.cpp', |  | 
| 227         'src/src/glsl/opt_dead_code_local.cpp', |  | 
| 228         'src/src/glsl/opt_dead_functions.cpp', |  | 
| 229         'src/src/glsl/opt_function_inlining.cpp', |  | 
| 230         'src/src/glsl/opt_if_simplification.cpp', |  | 
| 231         'src/src/glsl/opt_noop_swizzle.cpp', |  | 
| 232         'src/src/glsl/opt_redundant_jumps.cpp', |  | 
| 233         'src/src/glsl/opt_structure_splitting.cpp', |  | 
| 234         'src/src/glsl/opt_swizzle_swizzle.cpp', |  | 
| 235         'src/src/glsl/opt_tree_grafting.cpp', |  | 
| 236         'src/src/glsl/program.h', |  | 
| 237         'src/src/glsl/ralloc.c', |  | 
| 238         'src/src/glsl/ralloc.h', |  | 
| 239         'src/src/glsl/s_expression.cpp', |  | 
| 240         'src/src/glsl/s_expression.h', |  | 
| 241         # This file is not needed and has duplicate symbols (although it |  | 
| 242         # happens to link because of static library link ordering). |  | 
| 243         #'src/src/glsl/standalone_scaffolding.cpp', |  | 
| 244         #'src/src/glsl/standalone_scaffolding.h', |  | 
| 245         'src/src/glsl/strtod.c', |  | 
| 246         'src/src/glsl/strtod.h', |  | 
| 247       ], |  | 
| 248     }, |  | 
| 249     { |  | 
| 250       'target_name': 'mesa', |  | 
| 251       'type': 'static_library', |  | 
| 252       'include_dirs': [ |  | 
| 253         'src/src/gallium/auxiliary', |  | 
| 254         'src/src/gallium/include', |  | 
| 255         'src/src/glsl', |  | 
| 256         'src/src/glsl/glcpp', |  | 
| 257         'src/src/mapi', |  | 
| 258         'src/src/mapi/glapi', |  | 
| 259         'src/src/mesa', |  | 
| 260         'src/src/mesa/main', |  | 
| 261         '<(generated_src_dir)/mesa/', |  | 
| 262         '<(generated_src_dir)/mesa/main', |  | 
| 263         '<(generated_src_dir)/mesa/program', |  | 
| 264         '<(generated_src_dir)/mesa/glapi', |  | 
| 265       ], |  | 
| 266       'dependencies': [ |  | 
| 267         'mesa_headers', |  | 
| 268         'mesa_libglslcommon', |  | 
| 269       ], |  | 
| 270       # TODO(scottmg): http://crbug.com/143877 These should be removed if |  | 
| 271       # Mesa is ever rolled and the warnings are fixed. |  | 
| 272       'msvs_disabled_warnings': [ |  | 
| 273           4005, 4018, 4090, 4099, 4146, 4291, 4305, 4334, 4748, 4267, |  | 
| 274           # TODO(brucedawson): http://crbug.com/554200 4311 is a VS |  | 
| 275           # 2015 64-bit warning for pointer truncation |  | 
| 276           4311, |  | 
| 277       ], |  | 
| 278       'variables': { |  | 
| 279         'clang_warning_flags': [ |  | 
| 280           '-Wno-tautological-constant-out-of-range-compare', |  | 
| 281           '-Wno-absolute-value',  # Fires on st_atom_array.c, might be a bug |  | 
| 282           '-Wno-mismatched-tags',  # Fixed upstream. |  | 
| 283           # mesa's STATIC_ASSERT() macro expands to an ununused typedef. |  | 
| 284           '-Wno-unused-local-typedef', |  | 
| 285         ], |  | 
| 286         'clang_warning_flags_unset': [ |  | 
| 287           # Don't warn about string->bool used in asserts. |  | 
| 288           '-Wstring-conversion', |  | 
| 289         ], |  | 
| 290       }, |  | 
| 291       'sources': [ |  | 
| 292         '<(generated_src_dir)/mesa/builtin_function.cpp', |  | 
| 293         '<(generated_src_dir)/mesa/glapi_mapi_tmp_shared.h', |  | 
| 294         'src/src/mapi/mapi/entry.c', |  | 
| 295         'src/src/mapi/mapi/entry.h', |  | 
| 296         'src/src/mapi/mapi/mapi_glapi.c', |  | 
| 297         'src/src/mapi/mapi/stub.c', |  | 
| 298         'src/src/mapi/mapi/stub.h', |  | 
| 299         'src/src/mapi/mapi/table.c', |  | 
| 300         'src/src/mapi/mapi/table.h', |  | 
| 301         'src/src/mapi/mapi/u_current.c', |  | 
| 302         'src/src/mapi/mapi/u_current.h', |  | 
| 303         'src/src/mapi/mapi/u_execmem.c', |  | 
| 304         'src/src/mapi/mapi/u_execmem.h', |  | 
| 305         'src/src/mesa/main/accum.c', |  | 
| 306         'src/src/mesa/main/accum.h', |  | 
| 307         'src/src/mesa/main/api_arrayelt.c', |  | 
| 308         'src/src/mesa/main/api_arrayelt.h', |  | 
| 309         'src/src/mesa/main/api_exec.c', |  | 
| 310         'src/src/mesa/main/api_exec.h', |  | 
| 311         'src/src/mesa/main/api_loopback.c', |  | 
| 312         'src/src/mesa/main/api_loopback.h', |  | 
| 313         'src/src/mesa/main/api_validate.c', |  | 
| 314         'src/src/mesa/main/api_validate.h', |  | 
| 315         'src/src/mesa/main/arbprogram.c', |  | 
| 316         'src/src/mesa/main/arbprogram.h', |  | 
| 317         'src/src/mesa/main/arrayobj.c', |  | 
| 318         'src/src/mesa/main/arrayobj.h', |  | 
| 319         'src/src/mesa/main/atifragshader.c', |  | 
| 320         'src/src/mesa/main/atifragshader.h', |  | 
| 321         'src/src/mesa/main/attrib.c', |  | 
| 322         'src/src/mesa/main/attrib.h', |  | 
| 323         'src/src/mesa/main/blend.c', |  | 
| 324         'src/src/mesa/main/blend.h', |  | 
| 325         'src/src/mesa/main/bufferobj.c', |  | 
| 326         'src/src/mesa/main/bufferobj.h', |  | 
| 327         'src/src/mesa/main/buffers.c', |  | 
| 328         'src/src/mesa/main/buffers.h', |  | 
| 329         'src/src/mesa/main/clear.c', |  | 
| 330         'src/src/mesa/main/clear.h', |  | 
| 331         'src/src/mesa/main/clip.c', |  | 
| 332         'src/src/mesa/main/clip.h', |  | 
| 333         'src/src/mesa/main/colortab.c', |  | 
| 334         'src/src/mesa/main/colortab.h', |  | 
| 335         'src/src/mesa/main/condrender.c', |  | 
| 336         'src/src/mesa/main/condrender.h', |  | 
| 337         'src/src/mesa/main/context.c', |  | 
| 338         'src/src/mesa/main/context.h', |  | 
| 339         'src/src/mesa/main/convolve.c', |  | 
| 340         'src/src/mesa/main/convolve.h', |  | 
| 341         'src/src/mesa/main/cpuinfo.c', |  | 
| 342         'src/src/mesa/main/cpuinfo.h', |  | 
| 343         'src/src/mesa/main/debug.c', |  | 
| 344         'src/src/mesa/main/debug.h', |  | 
| 345         'src/src/mesa/main/depth.c', |  | 
| 346         'src/src/mesa/main/depth.h', |  | 
| 347         'src/src/mesa/main/dlist.c', |  | 
| 348         'src/src/mesa/main/dlist.h', |  | 
| 349         'src/src/mesa/main/drawpix.c', |  | 
| 350         'src/src/mesa/main/drawpix.h', |  | 
| 351         'src/src/mesa/main/drawtex.c', |  | 
| 352         'src/src/mesa/main/drawtex.h', |  | 
| 353         'src/src/mesa/main/enable.c', |  | 
| 354         'src/src/mesa/main/enable.h', |  | 
| 355         '<(generated_src_dir)/mesa/enums.c', |  | 
| 356         'src/src/mesa/main/enums.h', |  | 
| 357         'src/src/mesa/main/errors.c', |  | 
| 358         'src/src/mesa/main/errors.h', |  | 
| 359         'src/src/mesa/main/eval.c', |  | 
| 360         'src/src/mesa/main/eval.h', |  | 
| 361         'src/src/mesa/main/execmem.c', |  | 
| 362         'src/src/mesa/main/extensions.c', |  | 
| 363         'src/src/mesa/main/extensions.h', |  | 
| 364         'src/src/mesa/main/fbobject.c', |  | 
| 365         'src/src/mesa/main/fbobject.h', |  | 
| 366         'src/src/mesa/main/feedback.c', |  | 
| 367         'src/src/mesa/main/feedback.h', |  | 
| 368         'src/src/mesa/main/ff_fragment_shader.cpp', |  | 
| 369         'src/src/mesa/main/ffvertex_prog.c', |  | 
| 370         'src/src/mesa/main/ffvertex_prog.h', |  | 
| 371         'src/src/mesa/main/fog.c', |  | 
| 372         'src/src/mesa/main/fog.h', |  | 
| 373         'src/src/mesa/main/format_pack.c', |  | 
| 374         'src/src/mesa/main/format_pack.h', |  | 
| 375         'src/src/mesa/main/format_unpack.c', |  | 
| 376         'src/src/mesa/main/format_unpack.h', |  | 
| 377         'src/src/mesa/main/formats.c', |  | 
| 378         'src/src/mesa/main/formats.h', |  | 
| 379         'src/src/mesa/main/framebuffer.c', |  | 
| 380         'src/src/mesa/main/framebuffer.h', |  | 
| 381         'src/src/mesa/main/get.c', |  | 
| 382         'src/src/mesa/main/get.h', |  | 
| 383         'src/src/mesa/main/getstring.c', |  | 
| 384         'src/src/mesa/main/glformats.c', |  | 
| 385         'src/src/mesa/main/glformats.h', |  | 
| 386         'src/src/mesa/main/hash.c', |  | 
| 387         'src/src/mesa/main/hash.h', |  | 
| 388         'src/src/mesa/main/hint.c', |  | 
| 389         'src/src/mesa/main/hint.h', |  | 
| 390         'src/src/mesa/main/histogram.c', |  | 
| 391         'src/src/mesa/main/histogram.h', |  | 
| 392         'src/src/mesa/main/image.c', |  | 
| 393         'src/src/mesa/main/image.h', |  | 
| 394         'src/src/mesa/main/imports.c', |  | 
| 395         'src/src/mesa/main/imports.h', |  | 
| 396         'src/src/mesa/main/light.c', |  | 
| 397         'src/src/mesa/main/light.h', |  | 
| 398         'src/src/mesa/main/lines.c', |  | 
| 399         'src/src/mesa/main/lines.h', |  | 
| 400         'src/src/mesa/main/matrix.c', |  | 
| 401         'src/src/mesa/main/matrix.h', |  | 
| 402         'src/src/mesa/main/mipmap.c', |  | 
| 403         'src/src/mesa/main/mipmap.h', |  | 
| 404         'src/src/mesa/main/mm.c', |  | 
| 405         'src/src/mesa/main/mm.h', |  | 
| 406         'src/src/mesa/main/multisample.c', |  | 
| 407         'src/src/mesa/main/multisample.h', |  | 
| 408         'src/src/mesa/main/nvprogram.c', |  | 
| 409         'src/src/mesa/main/nvprogram.h', |  | 
| 410         'src/src/mesa/main/pack.c', |  | 
| 411         'src/src/mesa/main/pack.h', |  | 
| 412         'src/src/mesa/main/pbo.c', |  | 
| 413         'src/src/mesa/main/pbo.h', |  | 
| 414         'src/src/mesa/main/pixel.c', |  | 
| 415         'src/src/mesa/main/pixel.h', |  | 
| 416         'src/src/mesa/main/pixelstore.c', |  | 
| 417         'src/src/mesa/main/pixelstore.h', |  | 
| 418         'src/src/mesa/main/pixeltransfer.c', |  | 
| 419         'src/src/mesa/main/pixeltransfer.h', |  | 
| 420         'src/src/mesa/main/points.c', |  | 
| 421         'src/src/mesa/main/points.h', |  | 
| 422         'src/src/mesa/main/polygon.c', |  | 
| 423         'src/src/mesa/main/polygon.h', |  | 
| 424         'src/src/mesa/main/queryobj.c', |  | 
| 425         'src/src/mesa/main/queryobj.h', |  | 
| 426         'src/src/mesa/main/rastpos.c', |  | 
| 427         'src/src/mesa/main/rastpos.h', |  | 
| 428         'src/src/mesa/main/readpix.c', |  | 
| 429         'src/src/mesa/main/readpix.h', |  | 
| 430         'src/src/mesa/main/remap.c', |  | 
| 431         'src/src/mesa/main/remap.h', |  | 
| 432         'src/src/mesa/main/renderbuffer.c', |  | 
| 433         'src/src/mesa/main/renderbuffer.h', |  | 
| 434         'src/src/mesa/main/samplerobj.c', |  | 
| 435         'src/src/mesa/main/samplerobj.h', |  | 
| 436         'src/src/mesa/main/scissor.c', |  | 
| 437         'src/src/mesa/main/scissor.h', |  | 
| 438         'src/src/mesa/main/shader_query.cpp', |  | 
| 439         'src/src/mesa/main/shaderapi.c', |  | 
| 440         'src/src/mesa/main/shaderapi.h', |  | 
| 441         'src/src/mesa/main/shaderobj.c', |  | 
| 442         'src/src/mesa/main/shaderobj.h', |  | 
| 443         'src/src/mesa/main/shared.c', |  | 
| 444         'src/src/mesa/main/shared.h', |  | 
| 445         'src/src/mesa/main/state.c', |  | 
| 446         'src/src/mesa/main/state.h', |  | 
| 447         'src/src/mesa/main/stencil.c', |  | 
| 448         'src/src/mesa/main/stencil.h', |  | 
| 449         'src/src/mesa/main/syncobj.c', |  | 
| 450         'src/src/mesa/main/syncobj.h', |  | 
| 451         'src/src/mesa/main/texcompress.c', |  | 
| 452         'src/src/mesa/main/texcompress.h', |  | 
| 453         'src/src/mesa/main/texcompress_cpal.c', |  | 
| 454         'src/src/mesa/main/texcompress_cpal.h', |  | 
| 455         'src/src/mesa/main/texcompress_etc.c', |  | 
| 456         'src/src/mesa/main/texcompress_etc.h', |  | 
| 457         'src/src/mesa/main/texcompress_fxt1.c', |  | 
| 458         'src/src/mesa/main/texcompress_fxt1.h', |  | 
| 459         'src/src/mesa/main/texcompress_rgtc.c', |  | 
| 460         'src/src/mesa/main/texcompress_rgtc.h', |  | 
| 461         'src/src/mesa/main/texcompress_s3tc.c', |  | 
| 462         'src/src/mesa/main/texcompress_s3tc.h', |  | 
| 463         'src/src/mesa/main/texenv.c', |  | 
| 464         'src/src/mesa/main/texenv.h', |  | 
| 465         'src/src/mesa/main/texformat.c', |  | 
| 466         'src/src/mesa/main/texformat.h', |  | 
| 467         'src/src/mesa/main/texgen.c', |  | 
| 468         'src/src/mesa/main/texgen.h', |  | 
| 469         'src/src/mesa/main/texgetimage.c', |  | 
| 470         'src/src/mesa/main/texgetimage.h', |  | 
| 471         'src/src/mesa/main/teximage.c', |  | 
| 472         'src/src/mesa/main/teximage.h', |  | 
| 473         'src/src/mesa/main/texobj.c', |  | 
| 474         'src/src/mesa/main/texobj.h', |  | 
| 475         'src/src/mesa/main/texparam.c', |  | 
| 476         'src/src/mesa/main/texparam.h', |  | 
| 477         'src/src/mesa/main/texstate.c', |  | 
| 478         'src/src/mesa/main/texstate.h', |  | 
| 479         'src/src/mesa/main/texstorage.c', |  | 
| 480         'src/src/mesa/main/texstorage.h', |  | 
| 481         'src/src/mesa/main/texstore.c', |  | 
| 482         'src/src/mesa/main/texstore.h', |  | 
| 483         'src/src/mesa/main/texturebarrier.c', |  | 
| 484         'src/src/mesa/main/texturebarrier.h', |  | 
| 485         'src/src/mesa/main/transformfeedback.c', |  | 
| 486         'src/src/mesa/main/transformfeedback.h', |  | 
| 487         'src/src/mesa/main/uniform_query.cpp', |  | 
| 488         'src/src/mesa/main/uniforms.c', |  | 
| 489         'src/src/mesa/main/uniforms.h', |  | 
| 490         'src/src/mesa/main/varray.c', |  | 
| 491         'src/src/mesa/main/varray.h', |  | 
| 492         'src/src/mesa/main/version.c', |  | 
| 493         'src/src/mesa/main/version.h', |  | 
| 494         'src/src/mesa/main/viewport.c', |  | 
| 495         'src/src/mesa/main/viewport.h', |  | 
| 496         'src/src/mesa/main/vtxfmt.c', |  | 
| 497         'src/src/mesa/main/vtxfmt.h', |  | 
| 498         'src/src/mesa/math/m_debug_clip.c', |  | 
| 499         'src/src/mesa/math/m_debug_norm.c', |  | 
| 500         'src/src/mesa/math/m_debug_xform.c', |  | 
| 501         'src/src/mesa/math/m_eval.c', |  | 
| 502         'src/src/mesa/math/m_eval.h', |  | 
| 503         'src/src/mesa/math/m_matrix.c', |  | 
| 504         'src/src/mesa/math/m_matrix.h', |  | 
| 505         'src/src/mesa/math/m_translate.c', |  | 
| 506         'src/src/mesa/math/m_translate.h', |  | 
| 507         'src/src/mesa/math/m_vector.c', |  | 
| 508         'src/src/mesa/math/m_vector.h', |  | 
| 509         'src/src/mesa/math/m_xform.c', |  | 
| 510         'src/src/mesa/math/m_xform.h', |  | 
| 511         'src/src/mesa/program/arbprogparse.c', |  | 
| 512         'src/src/mesa/program/arbprogparse.h', |  | 
| 513         'src/src/mesa/program/hash_table.c', |  | 
| 514         'src/src/mesa/program/hash_table.h', |  | 
| 515         'src/src/mesa/program/ir_to_mesa.cpp', |  | 
| 516         'src/src/mesa/program/ir_to_mesa.h', |  | 
| 517         '<(generated_src_dir)/mesa/lex.yy.c', |  | 
| 518         'src/src/mesa/program/nvfragparse.c', |  | 
| 519         'src/src/mesa/program/nvfragparse.h', |  | 
| 520         'src/src/mesa/program/nvvertparse.c', |  | 
| 521         'src/src/mesa/program/nvvertparse.h', |  | 
| 522         'src/src/mesa/program/prog_cache.c', |  | 
| 523         'src/src/mesa/program/prog_cache.h', |  | 
| 524         'src/src/mesa/program/prog_execute.c', |  | 
| 525         'src/src/mesa/program/prog_execute.h', |  | 
| 526         'src/src/mesa/program/prog_instruction.c', |  | 
| 527         'src/src/mesa/program/prog_instruction.h', |  | 
| 528         'src/src/mesa/program/prog_noise.c', |  | 
| 529         'src/src/mesa/program/prog_noise.h', |  | 
| 530         'src/src/mesa/program/prog_opt_constant_fold.c', |  | 
| 531         'src/src/mesa/program/prog_optimize.c', |  | 
| 532         'src/src/mesa/program/prog_optimize.h', |  | 
| 533         'src/src/mesa/program/prog_parameter.c', |  | 
| 534         'src/src/mesa/program/prog_parameter.h', |  | 
| 535         'src/src/mesa/program/prog_parameter_layout.c', |  | 
| 536         'src/src/mesa/program/prog_parameter_layout.h', |  | 
| 537         'src/src/mesa/program/prog_print.c', |  | 
| 538         'src/src/mesa/program/prog_print.h', |  | 
| 539         'src/src/mesa/program/prog_statevars.c', |  | 
| 540         'src/src/mesa/program/prog_statevars.h', |  | 
| 541         'src/src/mesa/program/program.c', |  | 
| 542         'src/src/mesa/program/program.h', |  | 
| 543         '<(generated_src_dir)/mesa/program/program_parse.tab.c', |  | 
| 544         '<(generated_src_dir)/mesa/program/program_parse.tab.h', |  | 
| 545         'src/src/mesa/program/program_parse_extra.c', |  | 
| 546         'src/src/mesa/program/programopt.c', |  | 
| 547         'src/src/mesa/program/programopt.h', |  | 
| 548         'src/src/mesa/program/register_allocate.c', |  | 
| 549         'src/src/mesa/program/register_allocate.h', |  | 
| 550         'src/src/mesa/program/sampler.cpp', |  | 
| 551         'src/src/mesa/program/sampler.h', |  | 
| 552         'src/src/mesa/program/string_to_uint_map.cpp', |  | 
| 553         'src/src/mesa/program/symbol_table.c', |  | 
| 554         'src/src/mesa/program/symbol_table.h', |  | 
| 555         'src/src/mesa/swrast/s_aaline.c', |  | 
| 556         'src/src/mesa/swrast/s_aaline.h', |  | 
| 557         'src/src/mesa/swrast/s_aatriangle.c', |  | 
| 558         'src/src/mesa/swrast/s_aatriangle.h', |  | 
| 559         'src/src/mesa/swrast/s_alpha.c', |  | 
| 560         'src/src/mesa/swrast/s_alpha.h', |  | 
| 561         'src/src/mesa/swrast/s_atifragshader.c', |  | 
| 562         'src/src/mesa/swrast/s_atifragshader.h', |  | 
| 563         'src/src/mesa/swrast/s_bitmap.c', |  | 
| 564         'src/src/mesa/swrast/s_blend.c', |  | 
| 565         'src/src/mesa/swrast/s_blend.h', |  | 
| 566         'src/src/mesa/swrast/s_blit.c', |  | 
| 567         'src/src/mesa/swrast/s_clear.c', |  | 
| 568         'src/src/mesa/swrast/s_context.c', |  | 
| 569         'src/src/mesa/swrast/s_context.h', |  | 
| 570         'src/src/mesa/swrast/s_copypix.c', |  | 
| 571         'src/src/mesa/swrast/s_depth.c', |  | 
| 572         'src/src/mesa/swrast/s_depth.h', |  | 
| 573         'src/src/mesa/swrast/s_drawpix.c', |  | 
| 574         'src/src/mesa/swrast/s_feedback.c', |  | 
| 575         'src/src/mesa/swrast/s_feedback.h', |  | 
| 576         'src/src/mesa/swrast/s_fog.c', |  | 
| 577         'src/src/mesa/swrast/s_fog.h', |  | 
| 578         'src/src/mesa/swrast/s_fragprog.c', |  | 
| 579         'src/src/mesa/swrast/s_fragprog.h', |  | 
| 580         'src/src/mesa/swrast/s_lines.c', |  | 
| 581         'src/src/mesa/swrast/s_lines.h', |  | 
| 582         'src/src/mesa/swrast/s_logic.c', |  | 
| 583         'src/src/mesa/swrast/s_logic.h', |  | 
| 584         'src/src/mesa/swrast/s_masking.c', |  | 
| 585         'src/src/mesa/swrast/s_masking.h', |  | 
| 586         'src/src/mesa/swrast/s_points.c', |  | 
| 587         'src/src/mesa/swrast/s_points.h', |  | 
| 588         'src/src/mesa/swrast/s_renderbuffer.c', |  | 
| 589         'src/src/mesa/swrast/s_renderbuffer.h', |  | 
| 590         'src/src/mesa/swrast/s_span.c', |  | 
| 591         'src/src/mesa/swrast/s_span.h', |  | 
| 592         'src/src/mesa/swrast/s_stencil.c', |  | 
| 593         'src/src/mesa/swrast/s_stencil.h', |  | 
| 594         'src/src/mesa/swrast/s_texcombine.c', |  | 
| 595         'src/src/mesa/swrast/s_texcombine.h', |  | 
| 596         'src/src/mesa/swrast/s_texfetch.c', |  | 
| 597         'src/src/mesa/swrast/s_texfetch.h', |  | 
| 598         'src/src/mesa/swrast/s_texfilter.c', |  | 
| 599         'src/src/mesa/swrast/s_texfilter.h', |  | 
| 600         'src/src/mesa/swrast/s_texrender.c', |  | 
| 601         'src/src/mesa/swrast/s_texture.c', |  | 
| 602         'src/src/mesa/swrast/s_triangle.c', |  | 
| 603         'src/src/mesa/swrast/s_triangle.h', |  | 
| 604         'src/src/mesa/swrast/s_zoom.c', |  | 
| 605         'src/src/mesa/swrast/s_zoom.h', |  | 
| 606         'src/src/mesa/swrast_setup/ss_context.c', |  | 
| 607         'src/src/mesa/swrast_setup/ss_context.h', |  | 
| 608         'src/src/mesa/swrast_setup/ss_triangle.c', |  | 
| 609         'src/src/mesa/swrast_setup/ss_triangle.h', |  | 
| 610         'src/src/mesa/tnl/t_context.c', |  | 
| 611         'src/src/mesa/tnl/t_context.h', |  | 
| 612         'src/src/mesa/tnl/t_draw.c', |  | 
| 613         'src/src/mesa/tnl/t_pipeline.c', |  | 
| 614         'src/src/mesa/tnl/t_pipeline.h', |  | 
| 615         'src/src/mesa/tnl/t_rasterpos.c', |  | 
| 616         'src/src/mesa/tnl/t_vb_fog.c', |  | 
| 617         'src/src/mesa/tnl/t_vb_light.c', |  | 
| 618         'src/src/mesa/tnl/t_vb_normals.c', |  | 
| 619         'src/src/mesa/tnl/t_vb_points.c', |  | 
| 620         'src/src/mesa/tnl/t_vb_program.c', |  | 
| 621         'src/src/mesa/tnl/t_vb_render.c', |  | 
| 622         'src/src/mesa/tnl/t_vb_texgen.c', |  | 
| 623         'src/src/mesa/tnl/t_vb_texmat.c', |  | 
| 624         'src/src/mesa/tnl/t_vb_vertex.c', |  | 
| 625         'src/src/mesa/tnl/t_vertex.c', |  | 
| 626         'src/src/mesa/tnl/t_vertex.h', |  | 
| 627         'src/src/mesa/tnl/t_vertex_generic.c', |  | 
| 628         'src/src/mesa/tnl/t_vertex_sse.c', |  | 
| 629         'src/src/mesa/tnl/t_vp_build.c', |  | 
| 630         'src/src/mesa/tnl/t_vp_build.h', |  | 
| 631         'src/src/mesa/vbo/vbo_context.c', |  | 
| 632         'src/src/mesa/vbo/vbo_context.h', |  | 
| 633         'src/src/mesa/vbo/vbo_exec.c', |  | 
| 634         'src/src/mesa/vbo/vbo_exec.h', |  | 
| 635         'src/src/mesa/vbo/vbo_exec_api.c', |  | 
| 636         'src/src/mesa/vbo/vbo_exec_array.c', |  | 
| 637         'src/src/mesa/vbo/vbo_exec_draw.c', |  | 
| 638         'src/src/mesa/vbo/vbo_exec_eval.c', |  | 
| 639         'src/src/mesa/vbo/vbo_noop.c', |  | 
| 640         'src/src/mesa/vbo/vbo_noop.h', |  | 
| 641         'src/src/mesa/vbo/vbo_primitive_restart.c', |  | 
| 642         'src/src/mesa/vbo/vbo_rebase.c', |  | 
| 643         'src/src/mesa/vbo/vbo_save.c', |  | 
| 644         'src/src/mesa/vbo/vbo_save.h', |  | 
| 645         'src/src/mesa/vbo/vbo_save_api.c', |  | 
| 646         'src/src/mesa/vbo/vbo_save_draw.c', |  | 
| 647         'src/src/mesa/vbo/vbo_save_loopback.c', |  | 
| 648         'src/src/mesa/vbo/vbo_split.c', |  | 
| 649         'src/src/mesa/vbo/vbo_split.h', |  | 
| 650         'src/src/mesa/vbo/vbo_split_copy.c', |  | 
| 651         'src/src/mesa/vbo/vbo_split_inplace.c', |  | 
| 652         'src/src/mesa/x86-64/x86-64.c', |  | 
| 653         'src/src/mesa/x86-64/x86-64.h', |  | 
| 654       ], |  | 
| 655       'conditions': [ |  | 
| 656         ['OS=="android" and clang==0', { |  | 
| 657           # Disable sincos() optimization to avoid a linker error |  | 
| 658           # since Android's math library doesn't have sincos(). |  | 
| 659           # Either -fno-builtin-sin or -fno-builtin-cos works. |  | 
| 660           'cflags': [ |  | 
| 661             '-fno-builtin-sin', |  | 
| 662           ], |  | 
| 663         }], |  | 
| 664         ['OS=="win"', { |  | 
| 665           'defines': [ |  | 
| 666             # Because we're building as a static library |  | 
| 667             '_GLAPI_NO_EXPORTS', |  | 
| 668           ], |  | 
| 669         }], |  | 
| 670       ], |  | 
| 671     }, |  | 
| 672     # Building this target will hide the native OpenGL shared library and |  | 
| 673     # replace it with a slow software renderer. |  | 
| 674     { |  | 
| 675       'target_name': 'osmesa', |  | 
| 676       'type': 'loadable_module', |  | 
| 677       'mac_bundle': 0, |  | 
| 678       'dependencies': [ |  | 
| 679         'mesa_headers', |  | 
| 680         'mesa', |  | 
| 681       ], |  | 
| 682       'xcode_settings': { |  | 
| 683         'OTHER_LDFLAGS': [ |  | 
| 684           '-lstdc++', |  | 
| 685         ], |  | 
| 686       }, |  | 
| 687       'conditions': [ |  | 
| 688         ['OS=="win"', { |  | 
| 689           'defines': [ |  | 
| 690             'BUILD_GL32', |  | 
| 691             'KEYWORD1=GLAPI', |  | 
| 692             'KEYWORD2=GLAPIENTRY', |  | 
| 693           ], |  | 
| 694         }], |  | 
| 695         ['OS=="linux"', { |  | 
| 696           'link_settings': { |  | 
| 697             'libraries': [ |  | 
| 698               '-ldl', |  | 
| 699               '-lm', |  | 
| 700               '-lstdc++', |  | 
| 701             ], |  | 
| 702           }, |  | 
| 703         }], |  | 
| 704         ['OS=="linux" and chromecast==1', { |  | 
| 705           'sources': [ |  | 
| 706             'chromium/empty.cc', |  | 
| 707           ], |  | 
| 708           'link_settings': { |  | 
| 709             'libraries!': [ |  | 
| 710               '-lstdc++', |  | 
| 711             ], |  | 
| 712           }, |  | 
| 713         }], |  | 
| 714       ], |  | 
| 715       'include_dirs': [ |  | 
| 716         'src/src/mapi', |  | 
| 717         'src/src/mesa', |  | 
| 718         'src/src/mesa/drivers', |  | 
| 719         '<(generated_src_dir)/mesa', |  | 
| 720       ], |  | 
| 721       'msvs_disabled_warnings': [ |  | 
| 722           4005, 4018, 4065, 4090, 4099, 4291, 4345, 4267, |  | 
| 723           # http://crbug.com/512956 |  | 
| 724           4197, |  | 
| 725       ], |  | 
| 726       'sources': [ |  | 
| 727         'src/src/mesa/drivers/common/driverfuncs.c', |  | 
| 728         'src/src/mesa/drivers/common/driverfuncs.h', |  | 
| 729         'src/src/mesa/drivers/common/meta.c', |  | 
| 730         'src/src/mesa/drivers/common/meta.h', |  | 
| 731         'src/src/mesa/drivers/osmesa/osmesa.c', |  | 
| 732         'src/src/mesa/drivers/osmesa/osmesa.def', |  | 
| 733       ], |  | 
| 734       'variables': { |  | 
| 735         'clang_warning_flags_unset': [ |  | 
| 736           # Don't warn about string->bool used in asserts. |  | 
| 737           '-Wstring-conversion', |  | 
| 738         ], |  | 
| 739       }, |  | 
| 740     }, |  | 
| 741   ], |  | 
| 742   'conditions': [ |  | 
| 743     ['OS=="android"', { |  | 
| 744       'targets': [ |  | 
| 745         { |  | 
| 746           # Copies libosmesa.so to the out/$BUILDTYPE/lib/ directory so that |  | 
| 747           # the write_ordered_libraries.py script won't assume it to be a |  | 
| 748           # system library. This will cause the library to be stripped allowing |  | 
| 749           # targets to embed it in the to-be-generated APK. |  | 
| 750           'target_name': 'osmesa_in_lib_dir', |  | 
| 751           'type': 'none', |  | 
| 752           'dependencies': [ |  | 
| 753             'osmesa', |  | 
| 754           ], |  | 
| 755           'actions': [ |  | 
| 756             { |  | 
| 757               'action_name': 'copy_libosmesa', |  | 
| 758               'inputs': ['<(PRODUCT_DIR)/libosmesa.so'], |  | 
| 759               'outputs': ['<(SHARED_LIB_DIR)/libosmesa.so'], |  | 
| 760               'action': [ |  | 
| 761                 'cp', |  | 
| 762                 '<(PRODUCT_DIR)/libosmesa.so', |  | 
| 763                 '<(SHARED_LIB_DIR)/libosmesa.so', |  | 
| 764               ], |  | 
| 765             }, |  | 
| 766           ], |  | 
| 767         }, |  | 
| 768       ], |  | 
| 769     }], |  | 
| 770     [ 'OS=="linux"', { |  | 
| 771       'targets': [ |  | 
| 772         { |  | 
| 773           'target_name': 'wayland_drm_protocol', |  | 
| 774           'type': 'static_library', |  | 
| 775           'dependencies' : [ |  | 
| 776             '../wayland/wayland.gyp:wayland_util', |  | 
| 777           ], |  | 
| 778           'include_dirs': [ |  | 
| 779             '<(generated_src_dir)/egl/wayland/wayland-drm', |  | 
| 780           ], |  | 
| 781           'sources': [ |  | 
| 782             '<(generated_src_dir)/egl/wayland/wayland-drm/wayland-drm-client-pro
     tocol.h', |  | 
| 783             '<(generated_src_dir)/egl/wayland/wayland-drm/wayland-drm-protocol.c
     ', |  | 
| 784             '<(generated_src_dir)/egl/wayland/wayland-drm/wayland-drm-server-pro
     tocol.h', |  | 
| 785           ], |  | 
| 786           'direct_dependent_settings': { |  | 
| 787             'include_dirs': [ |  | 
| 788               '<(generated_src_dir)/egl/wayland/wayland-drm', |  | 
| 789             ], |  | 
| 790           }, |  | 
| 791         }, |  | 
| 792       ], |  | 
| 793     }], |  | 
| 794   ], |  | 
| 795 } |  | 
| OLD | NEW | 
|---|