How to use main method in backstopjs

Best JavaScript code snippet using backstopjs

mesa.gyp

Source:mesa.gyp Github

copy

Full Screen

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 be3# found in the LICENSE file.4{5 'variables': {6 # Disable warnings as errors for mesa until they're fixed or disabled.7 # http://crbug.com/1438778 'win_third_party_warn_as_error': 'false',9 },10 'conditions': [11 ['use_system_mesa==0', {12 'target_defaults': {13 'conditions': [14 ['OS!="win"', {15 'defines': [16 # For talloc17 'HAVE_VA_COPY',18 ],19 }],20 ['OS!="mac"', {21 'defines': [22 # For talloc23 'HAVE_STRNLEN',24 ],25 }],26 ['os_posix == 1 and OS != "mac" and OS != "android"', {27 'cflags': [28 '-fPIC',29 ],30 }],31 ],32 'defines': [33 # For Mesa34 'MAPI_GLAPI_CURRENT',35 ],36 },37 'targets': [38 {39 'target_name': 'mesa_headers',40 'type': 'none',41 'direct_dependent_settings': {42 'include_dirs': [43 'MesaLib/include',44 ],45 },46 },47 {48 'target_name': 'mesa',49 'type': 'static_library',50 'include_dirs': [51 '../talloc',52 'MesaLib/src/glsl',53 'MesaLib/src/mapi',54 'MesaLib/src/mesa',55 'MesaLib/src/mesa/main',56 ],57 'dependencies': [58 'mesa_headers',59 ],60 'sources': [61 '../talloc/talloc.c',62 'MesaLib/src/glsl/ast.h',63 'MesaLib/src/glsl/ast_expr.cpp',64 'MesaLib/src/glsl/ast_function.cpp',65 'MesaLib/src/glsl/ast_to_hir.cpp',66 'MesaLib/src/glsl/ast_type.cpp',67 'MesaLib/src/glsl/builtin_function.cpp',68 'MesaLib/src/glsl/builtin_types.h',69 'MesaLib/src/glsl/builtin_variables.h',70 'MesaLib/src/glsl/glsl_lexer.cpp',71 'MesaLib/src/glsl/glsl_parser.cpp',72 'MesaLib/src/glsl/glsl_parser.h',73 'MesaLib/src/glsl/glsl_parser_extras.cpp',74 'MesaLib/src/glsl/glsl_parser_extras.h',75 'MesaLib/src/glsl/glsl_symbol_table.cpp',76 'MesaLib/src/glsl/glsl_symbol_table.h',77 'MesaLib/src/glsl/glsl_types.cpp',78 'MesaLib/src/glsl/glsl_types.h',79 'MesaLib/src/glsl/hir_field_selection.cpp',80 'MesaLib/src/glsl/ir.cpp',81 'MesaLib/src/glsl/ir.h',82 'MesaLib/src/glsl/ir_algebraic.cpp',83 'MesaLib/src/glsl/ir_basic_block.cpp',84 'MesaLib/src/glsl/ir_basic_block.h',85 'MesaLib/src/glsl/ir_clone.cpp',86 'MesaLib/src/glsl/ir_constant_expression.cpp',87 'MesaLib/src/glsl/ir_constant_folding.cpp',88 'MesaLib/src/glsl/ir_constant_propagation.cpp',89 'MesaLib/src/glsl/ir_constant_variable.cpp',90 'MesaLib/src/glsl/ir_copy_propagation.cpp',91 'MesaLib/src/glsl/ir_dead_code.cpp',92 'MesaLib/src/glsl/ir_dead_code_local.cpp',93 'MesaLib/src/glsl/ir_dead_functions.cpp',94 'MesaLib/src/glsl/ir_div_to_mul_rcp.cpp',95 'MesaLib/src/glsl/ir_explog_to_explog2.cpp',96 'MesaLib/src/glsl/ir_expression_flattening.cpp',97 'MesaLib/src/glsl/ir_expression_flattening.h',98 'MesaLib/src/glsl/ir_function.cpp',99 'MesaLib/src/glsl/ir_function_can_inline.cpp',100 'MesaLib/src/glsl/ir_function_inlining.cpp',101 'MesaLib/src/glsl/ir_function_inlining.h',102 'MesaLib/src/glsl/ir_hierarchical_visitor.cpp',103 'MesaLib/src/glsl/ir_hierarchical_visitor.h',104 'MesaLib/src/glsl/ir_hv_accept.cpp',105 'MesaLib/src/glsl/ir_if_simplification.cpp',106 'MesaLib/src/glsl/ir_if_to_cond_assign.cpp',107 'MesaLib/src/glsl/ir_import_prototypes.cpp',108 'MesaLib/src/glsl/ir_lower_jumps.cpp',109 'MesaLib/src/glsl/ir_mat_op_to_vec.cpp',110 'MesaLib/src/glsl/ir_mod_to_fract.cpp',111 'MesaLib/src/glsl/ir_noop_swizzle.cpp',112 'MesaLib/src/glsl/ir_optimization.h',113 'MesaLib/src/glsl/ir_print_visitor.cpp',114 'MesaLib/src/glsl/ir_print_visitor.h',115 'MesaLib/src/glsl/ir_reader.cpp',116 'MesaLib/src/glsl/ir_reader.h',117 'MesaLib/src/glsl/ir_rvalue_visitor.cpp',118 'MesaLib/src/glsl/ir_rvalue_visitor.h',119 'MesaLib/src/glsl/ir_set_program_inouts.cpp',120 'MesaLib/src/glsl/ir_structure_splitting.cpp',121 'MesaLib/src/glsl/ir_sub_to_add_neg.cpp',122 'MesaLib/src/glsl/ir_swizzle_swizzle.cpp',123 'MesaLib/src/glsl/ir_tree_grafting.cpp',124 'MesaLib/src/glsl/ir_validate.cpp',125 'MesaLib/src/glsl/ir_variable.cpp',126 'MesaLib/src/glsl/ir_variable_refcount.cpp',127 'MesaLib/src/glsl/ir_variable_refcount.h',128 'MesaLib/src/glsl/ir_vec_index_to_cond_assign.cpp',129 'MesaLib/src/glsl/ir_vec_index_to_swizzle.cpp',130 'MesaLib/src/glsl/ir_visitor.h',131 'MesaLib/src/glsl/link_functions.cpp',132 'MesaLib/src/glsl/linker.cpp',133 'MesaLib/src/glsl/linker.h',134 'MesaLib/src/glsl/list.h',135 'MesaLib/src/glsl/loop_analysis.cpp',136 'MesaLib/src/glsl/loop_analysis.h',137 'MesaLib/src/glsl/loop_controls.cpp',138 'MesaLib/src/glsl/loop_unroll.cpp',139 'MesaLib/src/glsl/lower_noise.cpp',140 'MesaLib/src/glsl/lower_variable_index_to_cond_assign.cpp',141 'MesaLib/src/glsl/opt_redundant_jumps.cpp',142 'MesaLib/src/glsl/program.h',143 'MesaLib/src/glsl/s_expression.cpp',144 'MesaLib/src/glsl/s_expression.h',145 'MesaLib/src/glsl/safe_strcmp.c',146 'MesaLib/src/glsl/safe_strcmp.h',147 'MesaLib/src/glsl/glcpp/glcpp-lex.c',148 'MesaLib/src/glsl/glcpp/glcpp-parse.c',149 'MesaLib/src/glsl/glcpp/glcpp-parse.h',150 'MesaLib/src/glsl/glcpp/pp.c',151 'MesaLib/src/mapi/glapi/glapi.h',152 'MesaLib/src/mapi/glapi/glapi_dispatch.c',153 'MesaLib/src/mapi/glapi/glapi_entrypoint.c',154 'MesaLib/src/mapi/glapi/glapi_getproc.c',155 'MesaLib/src/mapi/glapi/glapi_nop.c',156 'MesaLib/src/mapi/glapi/glapi_priv.h',157 'MesaLib/src/mapi/glapi/glapidispatch.h',158 'MesaLib/src/mapi/glapi/glapioffsets.h',159 'MesaLib/src/mapi/glapi/glapitable.h',160 'MesaLib/src/mapi/glapi/glapitemp.h',161 'MesaLib/src/mapi/glapi/glprocs.h',162 'MesaLib/src/mapi/mapi/u_compiler.h',163 'MesaLib/src/mapi/mapi/u_current.c',164 'MesaLib/src/mapi/mapi/u_current.h',165 'MesaLib/src/mapi/mapi/u_execmem.c',166 'MesaLib/src/mapi/mapi/u_execmem.h',167 'MesaLib/src/mapi/mapi/u_macros.h',168 'MesaLib/src/mapi/mapi/u_thread.c',169 'MesaLib/src/mapi/mapi/u_thread.h',170 'MesaLib/src/mesa/main/accum.c',171 'MesaLib/src/mesa/main/accum.h',172 'MesaLib/src/mesa/main/api_arrayelt.c',173 'MesaLib/src/mesa/main/api_arrayelt.h',174 'MesaLib/src/mesa/main/api_exec.c',175 'MesaLib/src/mesa/main/api_exec.h',176 'MesaLib/src/mesa/main/api_loopback.c',177 'MesaLib/src/mesa/main/api_loopback.h',178 'MesaLib/src/mesa/main/api_noop.c',179 'MesaLib/src/mesa/main/api_noop.h',180 'MesaLib/src/mesa/main/api_validate.c',181 'MesaLib/src/mesa/main/api_validate.h',182 'MesaLib/src/mesa/main/arbprogram.c',183 'MesaLib/src/mesa/main/arbprogram.h',184 'MesaLib/src/mesa/main/arrayobj.c',185 'MesaLib/src/mesa/main/arrayobj.h',186 'MesaLib/src/mesa/main/atifragshader.c',187 'MesaLib/src/mesa/main/atifragshader.h',188 'MesaLib/src/mesa/main/attrib.c',189 'MesaLib/src/mesa/main/attrib.h',190 'MesaLib/src/mesa/main/bitset.h',191 'MesaLib/src/mesa/main/blend.c',192 'MesaLib/src/mesa/main/blend.h',193 'MesaLib/src/mesa/main/bufferobj.c',194 'MesaLib/src/mesa/main/bufferobj.h',195 'MesaLib/src/mesa/main/buffers.c',196 'MesaLib/src/mesa/main/buffers.h',197 'MesaLib/src/mesa/main/clear.c',198 'MesaLib/src/mesa/main/clear.h',199 'MesaLib/src/mesa/main/clip.c',200 'MesaLib/src/mesa/main/clip.h',201 'MesaLib/src/mesa/main/colormac.h',202 'MesaLib/src/mesa/main/colortab.c',203 'MesaLib/src/mesa/main/colortab.h',204 'MesaLib/src/mesa/main/compiler.h',205 'MesaLib/src/mesa/main/condrender.c',206 'MesaLib/src/mesa/main/condrender.h',207 'MesaLib/src/mesa/main/config.h',208 'MesaLib/src/mesa/main/context.c',209 'MesaLib/src/mesa/main/context.h',210 'MesaLib/src/mesa/main/convolve.c',211 'MesaLib/src/mesa/main/convolve.h',212 'MesaLib/src/mesa/main/core.h',213 'MesaLib/src/mesa/main/cpuinfo.c',214 'MesaLib/src/mesa/main/cpuinfo.h',215 'MesaLib/src/mesa/main/dd.h',216 'MesaLib/src/mesa/main/debug.c',217 'MesaLib/src/mesa/main/debug.h',218 'MesaLib/src/mesa/main/depth.c',219 'MesaLib/src/mesa/main/depth.h',220 'MesaLib/src/mesa/main/depthstencil.c',221 'MesaLib/src/mesa/main/depthstencil.h',222 'MesaLib/src/mesa/main/dispatch.h',223 'MesaLib/src/mesa/main/dlist.c',224 'MesaLib/src/mesa/main/dlist.h',225 'MesaLib/src/mesa/main/dlopen.c',226 'MesaLib/src/mesa/main/dlopen.h',227 'MesaLib/src/mesa/main/drawpix.c',228 'MesaLib/src/mesa/main/drawpix.h',229 'MesaLib/src/mesa/main/drawtex.c',230 'MesaLib/src/mesa/main/drawtex.h',231 'MesaLib/src/mesa/main/enable.c',232 'MesaLib/src/mesa/main/enable.h',233 'MesaLib/src/mesa/main/enums.c',234 'MesaLib/src/mesa/main/enums.h',235 'MesaLib/src/mesa/main/eval.c',236 'MesaLib/src/mesa/main/eval.h',237 'MesaLib/src/mesa/main/execmem.c',238 'MesaLib/src/mesa/main/extensions.c',239 'MesaLib/src/mesa/main/extensions.h',240 'MesaLib/src/mesa/main/fbobject.c',241 'MesaLib/src/mesa/main/fbobject.h',242 'MesaLib/src/mesa/main/feedback.c',243 'MesaLib/src/mesa/main/feedback.h',244 'MesaLib/src/mesa/main/ffvertex_prog.c',245 'MesaLib/src/mesa/main/ffvertex_prog.h',246 'MesaLib/src/mesa/main/fog.c',247 'MesaLib/src/mesa/main/fog.h',248 'MesaLib/src/mesa/main/formats.c',249 'MesaLib/src/mesa/main/formats.h',250 'MesaLib/src/mesa/main/framebuffer.c',251 'MesaLib/src/mesa/main/framebuffer.h',252 'MesaLib/src/mesa/main/get.c',253 'MesaLib/src/mesa/main/get.h',254 'MesaLib/src/mesa/main/getstring.c',255 'MesaLib/src/mesa/main/glheader.h',256 'MesaLib/src/mesa/main/hash.c',257 'MesaLib/src/mesa/main/hash.h',258 'MesaLib/src/mesa/main/hint.c',259 'MesaLib/src/mesa/main/hint.h',260 'MesaLib/src/mesa/main/histogram.c',261 'MesaLib/src/mesa/main/histogram.h',262 'MesaLib/src/mesa/main/image.c',263 'MesaLib/src/mesa/main/image.h',264 'MesaLib/src/mesa/main/imports.c',265 'MesaLib/src/mesa/main/imports.h',266 'MesaLib/src/mesa/main/light.c',267 'MesaLib/src/mesa/main/light.h',268 'MesaLib/src/mesa/main/lines.c',269 'MesaLib/src/mesa/main/lines.h',270 'MesaLib/src/mesa/main/macros.h',271 'MesaLib/src/mesa/main/matrix.c',272 'MesaLib/src/mesa/main/matrix.h',273 'MesaLib/src/mesa/main/mfeatures.h',274 'MesaLib/src/mesa/main/mipmap.c',275 'MesaLib/src/mesa/main/mipmap.h',276 'MesaLib/src/mesa/main/mm.c',277 'MesaLib/src/mesa/main/mm.h',278 'MesaLib/src/mesa/main/mtypes.h',279 'MesaLib/src/mesa/main/multisample.c',280 'MesaLib/src/mesa/main/multisample.h',281 'MesaLib/src/mesa/main/nvprogram.c',282 'MesaLib/src/mesa/main/nvprogram.h',283 'MesaLib/src/mesa/main/pixel.c',284 'MesaLib/src/mesa/main/pixel.h',285 'MesaLib/src/mesa/main/pixelstore.c',286 'MesaLib/src/mesa/main/pixelstore.h',287 'MesaLib/src/mesa/main/points.c',288 'MesaLib/src/mesa/main/points.h',289 'MesaLib/src/mesa/main/polygon.c',290 'MesaLib/src/mesa/main/polygon.h',291 'MesaLib/src/mesa/main/queryobj.c',292 'MesaLib/src/mesa/main/queryobj.h',293 'MesaLib/src/mesa/main/rastpos.c',294 'MesaLib/src/mesa/main/rastpos.h',295 'MesaLib/src/mesa/main/readpix.c',296 'MesaLib/src/mesa/main/readpix.h',297 'MesaLib/src/mesa/main/remap.c',298 'MesaLib/src/mesa/main/remap.h',299 'MesaLib/src/mesa/main/remap_helper.h',300 'MesaLib/src/mesa/main/renderbuffer.c',301 'MesaLib/src/mesa/main/renderbuffer.h',302 'MesaLib/src/mesa/main/scissor.c',303 'MesaLib/src/mesa/main/scissor.h',304 'MesaLib/src/mesa/main/shaderapi.c',305 'MesaLib/src/mesa/main/shaderapi.h',306 'MesaLib/src/mesa/main/shaderobj.c',307 'MesaLib/src/mesa/main/shaderobj.h',308 'MesaLib/src/mesa/main/shared.c',309 'MesaLib/src/mesa/main/shared.h',310 'MesaLib/src/mesa/main/simple_list.h',311 'MesaLib/src/mesa/main/state.c',312 'MesaLib/src/mesa/main/state.h',313 'MesaLib/src/mesa/main/stencil.c',314 'MesaLib/src/mesa/main/stencil.h',315 'MesaLib/src/mesa/main/syncobj.c',316 'MesaLib/src/mesa/main/syncobj.h',317 'MesaLib/src/mesa/main/texcompress.c',318 'MesaLib/src/mesa/main/texcompress.h',319 'MesaLib/src/mesa/main/texcompress_fxt1.c',320 'MesaLib/src/mesa/main/texcompress_fxt1.h',321 'MesaLib/src/mesa/main/texcompress_s3tc.c',322 'MesaLib/src/mesa/main/texcompress_s3tc.h',323 'MesaLib/src/mesa/main/texenv.c',324 'MesaLib/src/mesa/main/texenv.h',325 'MesaLib/src/mesa/main/texenvprogram.c',326 'MesaLib/src/mesa/main/texenvprogram.h',327 'MesaLib/src/mesa/main/texfetch.c',328 'MesaLib/src/mesa/main/texfetch.h',329 'MesaLib/src/mesa/main/texfetch_tmp.h',330 'MesaLib/src/mesa/main/texformat.c',331 'MesaLib/src/mesa/main/texformat.h',332 'MesaLib/src/mesa/main/texgen.c',333 'MesaLib/src/mesa/main/texgen.h',334 'MesaLib/src/mesa/main/texgetimage.c',335 'MesaLib/src/mesa/main/texgetimage.h',336 'MesaLib/src/mesa/main/teximage.c',337 'MesaLib/src/mesa/main/teximage.h',338 'MesaLib/src/mesa/main/texobj.c',339 'MesaLib/src/mesa/main/texobj.h',340 'MesaLib/src/mesa/main/texpal.c',341 'MesaLib/src/mesa/main/texpal.h',342 'MesaLib/src/mesa/main/texparam.c',343 'MesaLib/src/mesa/main/texparam.h',344 'MesaLib/src/mesa/main/texrender.c',345 'MesaLib/src/mesa/main/texrender.h',346 'MesaLib/src/mesa/main/texstate.c',347 'MesaLib/src/mesa/main/texstate.h',348 'MesaLib/src/mesa/main/texstore.c',349 'MesaLib/src/mesa/main/texstore.h',350 'MesaLib/src/mesa/main/transformfeedback.c',351 'MesaLib/src/mesa/main/transformfeedback.h',352 'MesaLib/src/mesa/main/uniforms.c',353 'MesaLib/src/mesa/main/uniforms.h',354 'MesaLib/src/mesa/main/varray.c',355 'MesaLib/src/mesa/main/varray.h',356 'MesaLib/src/mesa/main/version.c',357 'MesaLib/src/mesa/main/version.h',358 'MesaLib/src/mesa/main/viewport.c',359 'MesaLib/src/mesa/main/viewport.h',360 'MesaLib/src/mesa/main/vtxfmt.c',361 'MesaLib/src/mesa/main/vtxfmt.h',362 'MesaLib/src/mesa/main/vtxfmt_tmp.h',363 'MesaLib/src/mesa/math/m_clip_tmp.h',364 'MesaLib/src/mesa/math/m_copy_tmp.h',365 'MesaLib/src/mesa/math/m_debug.h',366 'MesaLib/src/mesa/math/m_debug_clip.c',367 'MesaLib/src/mesa/math/m_debug_norm.c',368 'MesaLib/src/mesa/math/m_debug_util.h',369 'MesaLib/src/mesa/math/m_debug_xform.c',370 'MesaLib/src/mesa/math/m_dotprod_tmp.h',371 'MesaLib/src/mesa/math/m_eval.c',372 'MesaLib/src/mesa/math/m_eval.h',373 'MesaLib/src/mesa/math/m_matrix.c',374 'MesaLib/src/mesa/math/m_matrix.h',375 'MesaLib/src/mesa/math/m_norm_tmp.h',376 'MesaLib/src/mesa/math/m_trans_tmp.h',377 'MesaLib/src/mesa/math/m_translate.c',378 'MesaLib/src/mesa/math/m_translate.h',379 'MesaLib/src/mesa/math/m_vector.c',380 'MesaLib/src/mesa/math/m_vector.h',381 'MesaLib/src/mesa/math/m_xform.c',382 'MesaLib/src/mesa/math/m_xform.h',383 'MesaLib/src/mesa/math/m_xform_tmp.h',384 'MesaLib/src/mesa/program/arbprogparse.c',385 'MesaLib/src/mesa/program/arbprogparse.h',386 'MesaLib/src/mesa/program/hash_table.c',387 'MesaLib/src/mesa/program/hash_table.h',388 'MesaLib/src/mesa/program/ir_to_mesa.cpp',389 'MesaLib/src/mesa/program/ir_to_mesa.h',390 'MesaLib/src/mesa/program/lex.yy.c',391 'MesaLib/src/mesa/program/nvfragparse.c',392 'MesaLib/src/mesa/program/nvfragparse.h',393 'MesaLib/src/mesa/program/nvvertparse.c',394 'MesaLib/src/mesa/program/nvvertparse.h',395 'MesaLib/src/mesa/program/prog_cache.c',396 'MesaLib/src/mesa/program/prog_cache.h',397 'MesaLib/src/mesa/program/prog_execute.c',398 'MesaLib/src/mesa/program/prog_execute.h',399 'MesaLib/src/mesa/program/prog_instruction.c',400 'MesaLib/src/mesa/program/prog_instruction.h',401 'MesaLib/src/mesa/program/prog_noise.c',402 'MesaLib/src/mesa/program/prog_noise.h',403 'MesaLib/src/mesa/program/prog_optimize.c',404 'MesaLib/src/mesa/program/prog_optimize.h',405 'MesaLib/src/mesa/program/prog_parameter.c',406 'MesaLib/src/mesa/program/prog_parameter.h',407 'MesaLib/src/mesa/program/prog_parameter_layout.c',408 'MesaLib/src/mesa/program/prog_parameter_layout.h',409 'MesaLib/src/mesa/program/prog_print.c',410 'MesaLib/src/mesa/program/prog_print.h',411 'MesaLib/src/mesa/program/prog_statevars.c',412 'MesaLib/src/mesa/program/prog_statevars.h',413 'MesaLib/src/mesa/program/prog_uniform.c',414 'MesaLib/src/mesa/program/prog_uniform.h',415 'MesaLib/src/mesa/program/program.c',416 'MesaLib/src/mesa/program/program.h',417 'MesaLib/src/mesa/program/program_parse.tab.c',418 'MesaLib/src/mesa/program/program_parse.tab.h',419 'MesaLib/src/mesa/program/program_parse_extra.c',420 'MesaLib/src/mesa/program/program_parser.h',421 'MesaLib/src/mesa/program/programopt.c',422 'MesaLib/src/mesa/program/programopt.h',423 'MesaLib/src/mesa/program/symbol_table.c',424 'MesaLib/src/mesa/program/symbol_table.h',425 'MesaLib/src/mesa/swrast/s_aaline.c',426 'MesaLib/src/mesa/swrast/s_aaline.h',427 'MesaLib/src/mesa/swrast/s_aalinetemp.h',428 'MesaLib/src/mesa/swrast/s_aatriangle.c',429 'MesaLib/src/mesa/swrast/s_aatriangle.h',430 'MesaLib/src/mesa/swrast/s_aatritemp.h',431 'MesaLib/src/mesa/swrast/s_accum.c',432 'MesaLib/src/mesa/swrast/s_accum.h',433 'MesaLib/src/mesa/swrast/s_alpha.c',434 'MesaLib/src/mesa/swrast/s_alpha.h',435 'MesaLib/src/mesa/swrast/s_atifragshader.c',436 'MesaLib/src/mesa/swrast/s_atifragshader.h',437 'MesaLib/src/mesa/swrast/s_bitmap.c',438 'MesaLib/src/mesa/swrast/s_blend.c',439 'MesaLib/src/mesa/swrast/s_blend.h',440 'MesaLib/src/mesa/swrast/s_blit.c',441 'MesaLib/src/mesa/swrast/s_clear.c',442 'MesaLib/src/mesa/swrast/s_context.c',443 'MesaLib/src/mesa/swrast/s_context.h',444 'MesaLib/src/mesa/swrast/s_copypix.c',445 'MesaLib/src/mesa/swrast/s_depth.c',446 'MesaLib/src/mesa/swrast/s_depth.h',447 'MesaLib/src/mesa/swrast/s_drawpix.c',448 'MesaLib/src/mesa/swrast/s_feedback.c',449 'MesaLib/src/mesa/swrast/s_feedback.h',450 'MesaLib/src/mesa/swrast/s_fog.c',451 'MesaLib/src/mesa/swrast/s_fog.h',452 'MesaLib/src/mesa/swrast/s_fragprog.c',453 'MesaLib/src/mesa/swrast/s_fragprog.h',454 'MesaLib/src/mesa/swrast/s_lines.c',455 'MesaLib/src/mesa/swrast/s_lines.h',456 'MesaLib/src/mesa/swrast/s_linetemp.h',457 'MesaLib/src/mesa/swrast/s_logic.c',458 'MesaLib/src/mesa/swrast/s_logic.h',459 'MesaLib/src/mesa/swrast/s_masking.c',460 'MesaLib/src/mesa/swrast/s_masking.h',461 'MesaLib/src/mesa/swrast/s_points.c',462 'MesaLib/src/mesa/swrast/s_points.h',463 'MesaLib/src/mesa/swrast/s_readpix.c',464 'MesaLib/src/mesa/swrast/s_span.c',465 'MesaLib/src/mesa/swrast/s_span.h',466 'MesaLib/src/mesa/swrast/s_spantemp.h',467 'MesaLib/src/mesa/swrast/s_stencil.c',468 'MesaLib/src/mesa/swrast/s_stencil.h',469 'MesaLib/src/mesa/swrast/s_texcombine.c',470 'MesaLib/src/mesa/swrast/s_texcombine.h',471 'MesaLib/src/mesa/swrast/s_texfilter.c',472 'MesaLib/src/mesa/swrast/s_texfilter.h',473 'MesaLib/src/mesa/swrast/s_triangle.c',474 'MesaLib/src/mesa/swrast/s_triangle.h',475 'MesaLib/src/mesa/swrast/s_trispan.h',476 'MesaLib/src/mesa/swrast/s_tritemp.h',477 'MesaLib/src/mesa/swrast/s_zoom.c',478 'MesaLib/src/mesa/swrast/s_zoom.h',479 'MesaLib/src/mesa/swrast/swrast.h',480 'MesaLib/src/mesa/swrast_setup/ss_context.c',481 'MesaLib/src/mesa/swrast_setup/ss_context.h',482 'MesaLib/src/mesa/swrast_setup/ss_triangle.c',483 'MesaLib/src/mesa/swrast_setup/ss_triangle.h',484 'MesaLib/src/mesa/swrast_setup/ss_tritmp.h',485 'MesaLib/src/mesa/swrast_setup/ss_vb.h',486 'MesaLib/src/mesa/swrast_setup/swrast_setup.h',487 'MesaLib/src/mesa/tnl/t_context.c',488 'MesaLib/src/mesa/tnl/t_context.h',489 'MesaLib/src/mesa/tnl/t_draw.c',490 'MesaLib/src/mesa/tnl/t_pipeline.c',491 'MesaLib/src/mesa/tnl/t_pipeline.h',492 'MesaLib/src/mesa/tnl/t_rasterpos.c',493 'MesaLib/src/mesa/tnl/t_vb_cliptmp.h',494 'MesaLib/src/mesa/tnl/t_vb_cull.c',495 'MesaLib/src/mesa/tnl/t_vb_fog.c',496 'MesaLib/src/mesa/tnl/t_vb_light.c',497 'MesaLib/src/mesa/tnl/t_vb_lighttmp.h',498 'MesaLib/src/mesa/tnl/t_vb_normals.c',499 'MesaLib/src/mesa/tnl/t_vb_points.c',500 'MesaLib/src/mesa/tnl/t_vb_program.c',501 'MesaLib/src/mesa/tnl/t_vb_render.c',502 'MesaLib/src/mesa/tnl/t_vb_rendertmp.h',503 'MesaLib/src/mesa/tnl/t_vb_texgen.c',504 'MesaLib/src/mesa/tnl/t_vb_texmat.c',505 'MesaLib/src/mesa/tnl/t_vb_vertex.c',506 'MesaLib/src/mesa/tnl/t_vertex.c',507 'MesaLib/src/mesa/tnl/t_vertex.h',508 'MesaLib/src/mesa/tnl/t_vertex_generic.c',509 'MesaLib/src/mesa/tnl/t_vertex_sse.c',510 'MesaLib/src/mesa/tnl/t_vp_build.c',511 'MesaLib/src/mesa/tnl/t_vp_build.h',512 'MesaLib/src/mesa/tnl/tnl.h',513 'MesaLib/src/mesa/vbo/vbo.h',514 'MesaLib/src/mesa/vbo/vbo_attrib.h',515 'MesaLib/src/mesa/vbo/vbo_attrib_tmp.h',516 'MesaLib/src/mesa/vbo/vbo_context.c',517 'MesaLib/src/mesa/vbo/vbo_context.h',518 'MesaLib/src/mesa/vbo/vbo_exec.c',519 'MesaLib/src/mesa/vbo/vbo_exec.h',520 'MesaLib/src/mesa/vbo/vbo_exec_api.c',521 'MesaLib/src/mesa/vbo/vbo_exec_array.c',522 'MesaLib/src/mesa/vbo/vbo_exec_draw.c',523 'MesaLib/src/mesa/vbo/vbo_exec_eval.c',524 'MesaLib/src/mesa/vbo/vbo_rebase.c',525 'MesaLib/src/mesa/vbo/vbo_save.c',526 'MesaLib/src/mesa/vbo/vbo_save.h',527 'MesaLib/src/mesa/vbo/vbo_save_api.c',528 'MesaLib/src/mesa/vbo/vbo_save_draw.c',529 'MesaLib/src/mesa/vbo/vbo_save_loopback.c',530 'MesaLib/src/mesa/vbo/vbo_split.c',531 'MesaLib/src/mesa/vbo/vbo_split.h',532 'MesaLib/src/mesa/vbo/vbo_split_copy.c',533 'MesaLib/src/mesa/vbo/vbo_split_inplace.c',534 ],535 'conditions': [536 ['clang == 1', {537 'xcode_settings': {538 'WARNING_CFLAGS': [539 # Several functions ignore the result of talloc_steal().540 '-Wno-unused-value',541 # texenvprogram.c converts '~0' to a bitfield, which causes clang542 # to warn that -1 is implicitly converted to 255.543 '-Wno-constant-conversion',544 ],545 },546 'cflags': [547 '-Wno-unused-value',548 '-Wno-constant-conversion',549 ],550 }],551 ],552 },553 # Building this target will hide the native OpenGL shared library and554 # replace it with a slow software renderer.555 {556 'target_name': 'osmesa',557 'type': 'loadable_module',558 'mac_bundle': 0,559 'dependencies': [560 'mesa_headers',561 'mesa',562 ],563 # Fixes link problems on Mac OS X with missing __cxa_pure_virtual.564 'conditions': [565 ['OS=="mac"', {566 'sources': [567 'MesaLib/src/mesa/drivers/osmesa/empty.cpp',568 ],569 }],570 ],571 'include_dirs': [572 'MesaLib/src/mapi',573 'MesaLib/src/mesa',574 'MesaLib/src/mesa/drivers',575 ],576 'sources': [577 'MesaLib/src/mesa/drivers/common/driverfuncs.c',578 'MesaLib/src/mesa/drivers/common/driverfuncs.h',579 'MesaLib/src/mesa/drivers/common/meta.c',580 'MesaLib/src/mesa/drivers/common/meta.h',581 'MesaLib/src/mesa/drivers/osmesa/osmesa.c',582 'MesaLib/src/mesa/drivers/osmesa/osmesa.def',583 ],584 },585 ],586 }, { # use_system_mesa==1587 'targets': [588 # TODO(phajdan.jr): Make this work, http://crbug.com/161389 .589 {590 'target_name': 'mesa_headers',591 'type': 'none',592 'variables': {593 'headers_root_path': 'MesaLib/include',594 # This list can easily be updated using the command below:595 # find third_party/mesa/MesaLib/include -iname '*.h' \596 # -printf "'%p',\n" | grep -v internal | sed -e \597 # 's|third_party/mesa/MesaLib/include/||' | sort -u598 'header_filenames': [599 'GL/glext.h',600 'GL/glfbdev.h',601 'GL/gl.h',602 'GL/gl_mangle.h',603 'GL/glu.h',604 'GL/glu_mangle.h',605 'GL/glxext.h',606 'GL/glx.h',607 'GL/glx_mangle.h',608 'GL/mesa_wgl.h',609 'GL/osmesa.h',610 'GL/vms_x_fix.h',611 'GL/wglext.h',612 'GL/wmesa.h',613 ],614 },615 'includes': [616 '../../build/shim_headers.gypi',617 ],618 },619 {620 'target_name': 'mesa',621 'type': 'none',622 },623 {624 'target_name': 'osmesa',625 'type': 'none',626 },627 ],628 }],629 ],...

Full Screen

Full Screen

design.py

Source:design.py Github

copy

Full Screen

1# -*- coding: utf-8 -*-23# Form implementation generated from reading ui file 'design.ui'4#5# Created by: PyQt5 UI code generator 5.13.06#7# WARNING! All changes made in this file will be lost!8910from PyQt5 import QtCore, QtGui, QtWidgets111213class Ui_MainWindow(object):14 def setupUi(self, MainWindow):15 MainWindow.setObjectName("MainWindow")16 MainWindow.resize(887, 562)17 self.centralWidget = QtWidgets.QWidget(MainWindow)18 self.centralWidget.setObjectName("centralWidget")19 self.gridLayout = QtWidgets.QGridLayout(self.centralWidget)20 self.gridLayout.setContentsMargins(11, 11, 11, 11)21 self.gridLayout.setSpacing(6)22 self.gridLayout.setObjectName("gridLayout")23 self.verticalLayout = QtWidgets.QVBoxLayout()24 self.verticalLayout.setSpacing(6)25 self.verticalLayout.setObjectName("verticalLayout")26 self.cmbDirect = QtWidgets.QComboBox(self.centralWidget)27 self.cmbDirect.setObjectName("cmbDirect")28 self.cmbDirect.addItem("")29 self.cmbDirect.addItem("")30 self.verticalLayout.addWidget(self.cmbDirect)31 self.cmbWeight = QtWidgets.QComboBox(self.centralWidget)32 self.cmbWeight.setObjectName("cmbWeight")33 self.cmbWeight.addItem("")34 self.cmbWeight.addItem("")35 self.verticalLayout.addWidget(self.cmbWeight)36 self.textEdit = QtWidgets.QTextEdit(self.centralWidget)37 self.textEdit.setMaximumSize(QtCore.QSize(16777215, 50))38 self.textEdit.setFocusPolicy(QtCore.Qt.ClickFocus)39 self.textEdit.setObjectName("textEdit")40 self.verticalLayout.addWidget(self.textEdit)41 self.graphMatrix = QtWidgets.QTableView(self.centralWidget)42 self.graphMatrix.setMaximumSize(QtCore.QSize(16777204, 16777215))43 self.graphMatrix.setSizeIncrement(QtCore.QSize(0, 0))44 self.graphMatrix.setBaseSize(QtCore.QSize(7, 14))45 self.graphMatrix.setDragEnabled(False)46 self.graphMatrix.setDragDropMode(QtWidgets.QAbstractItemView.NoDragDrop)47 self.graphMatrix.setAlternatingRowColors(True)48 self.graphMatrix.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)49 self.graphMatrix.setIconSize(QtCore.QSize(1, 0))50 self.graphMatrix.setTextElideMode(QtCore.Qt.ElideLeft)51 self.graphMatrix.setShowGrid(True)52 self.graphMatrix.setGridStyle(QtCore.Qt.SolidLine)53 self.graphMatrix.setSortingEnabled(False)54 self.graphMatrix.setObjectName("graphMatrix")55 self.verticalLayout.addWidget(self.graphMatrix)56 self.horizontalLayout_3 = QtWidgets.QHBoxLayout()57 self.horizontalLayout_3.setSpacing(6)58 self.horizontalLayout_3.setObjectName("horizontalLayout_3")59 spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)60 self.horizontalLayout_3.addItem(spacerItem)61 self.btnCancel = QtWidgets.QPushButton(self.centralWidget)62 self.btnCancel.setObjectName("btnCancel")63 self.horizontalLayout_3.addWidget(self.btnCancel)64 self.verticalLayout.addLayout(self.horizontalLayout_3)65 self.horizontalLayout_2 = QtWidgets.QHBoxLayout()66 self.horizontalLayout_2.setSpacing(6)67 self.horizontalLayout_2.setObjectName("horizontalLayout_2")68 spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)69 self.horizontalLayout_2.addItem(spacerItem1)70 self.btnNext = QtWidgets.QPushButton(self.centralWidget)71 self.btnNext.setObjectName("btnNext")72 self.horizontalLayout_2.addWidget(self.btnNext)73 self.verticalLayout.addLayout(self.horizontalLayout_2)74 self.gridLayout.addLayout(self.verticalLayout, 0, 1, 1, 1)75 self.tabWidget = QtWidgets.QTabWidget(self.centralWidget)76 self.tabWidget.setObjectName("tabWidget")77 self.tab = QtWidgets.QWidget()78 self.tab.setObjectName("tab")79 self.tabWidget.addTab(self.tab, "")80 self.tab_2 = QtWidgets.QWidget()81 self.tab_2.setObjectName("tab_2")82 self.tabWidget.addTab(self.tab_2, "")83 self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)84 MainWindow.setCentralWidget(self.centralWidget)85 self.mainToolBar = QtWidgets.QToolBar(MainWindow)86 self.mainToolBar.setObjectName("mainToolBar")87 MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)88 self.statusBar = QtWidgets.QStatusBar(MainWindow)89 self.statusBar.setObjectName("statusBar")90 MainWindow.setStatusBar(self.statusBar)91 self.menuBar = QtWidgets.QMenuBar(MainWindow)92 self.menuBar.setGeometry(QtCore.QRect(0, 0, 887, 26))93 self.menuBar.setObjectName("menuBar")94 self.menuFile = QtWidgets.QMenu(self.menuBar)95 self.menuFile.setObjectName("menuFile")96 self.menuInfo = QtWidgets.QMenu(self.menuBar)97 self.menuInfo.setObjectName("menuInfo")98 self.menuTasks = QtWidgets.QMenu(self.menuBar)99 self.menuTasks.setObjectName("menuTasks")100 self.menu2 = QtWidgets.QMenu(self.menuTasks)101 self.menu2.setObjectName("menu2")102 self.menu3 = QtWidgets.QMenu(self.menuTasks)103 self.menu3.setObjectName("menu3")104 self.menu12 = QtWidgets.QMenu(self.menuTasks)105 self.menu12.setObjectName("menu12")106 MainWindow.setMenuBar(self.menuBar)107 self.actionSave = QtWidgets.QAction(MainWindow)108 self.actionSave.setObjectName("actionSave")109 self.actionExit = QtWidgets.QAction(MainWindow)110 self.actionExit.setObjectName("actionExit")111 self.actionProgram = QtWidgets.QAction(MainWindow)112 self.actionProgram.setObjectName("actionProgram")113 self.actionAuthor = QtWidgets.QAction(MainWindow)114 self.actionAuthor.setObjectName("actionAuthor")115 self.actionOpen = QtWidgets.QAction(MainWindow)116 self.actionOpen.setObjectName("actionOpen")117 self.action4 = QtWidgets.QAction(MainWindow)118 self.action4.setObjectName("action4")119 self.action5 = QtWidgets.QAction(MainWindow)120 self.action5.setObjectName("action5")121 self.action6 = QtWidgets.QAction(MainWindow)122 self.action6.setObjectName("action6")123 self.action7 = QtWidgets.QAction(MainWindow)124 self.action7.setObjectName("action7")125 self.action8 = QtWidgets.QAction(MainWindow)126 self.action8.setObjectName("action8")127 self.action9 = QtWidgets.QAction(MainWindow)128 self.action9.setObjectName("action9")129 self.action10 = QtWidgets.QAction(MainWindow)130 self.action10.setObjectName("action10")131 self.action11 = QtWidgets.QAction(MainWindow)132 self.action11.setObjectName("action11")133 self.action13 = QtWidgets.QAction(MainWindow)134 self.action13.setObjectName("action13")135 self.action14 = QtWidgets.QAction(MainWindow)136 self.action14.setObjectName("action14")137 self.action15 = QtWidgets.QAction(MainWindow)138 self.action15.setObjectName("action15")139 self.action16 = QtWidgets.QAction(MainWindow)140 self.action16.setObjectName("action16")141 self.action17 = QtWidgets.QAction(MainWindow)142 self.action17.setObjectName("action17")143 self.action18_2 = QtWidgets.QAction(MainWindow)144 self.action18_2.setObjectName("action18_2")145 self.action19 = QtWidgets.QAction(MainWindow)146 self.action19.setObjectName("action19")147 self.action20 = QtWidgets.QAction(MainWindow)148 self.action20.setObjectName("action20")149 self.action21 = QtWidgets.QAction(MainWindow)150 self.action21.setObjectName("action21")151 self.BFSaction = QtWidgets.QAction(MainWindow)152 self.BFSaction.setObjectName("BFSaction")153 self.actionA = QtWidgets.QAction(MainWindow)154 self.actionA.setObjectName("actionA")155 self.IDAaction = QtWidgets.QAction(MainWindow)156 self.IDAaction.setObjectName("IDAaction")157 self.actionNewTab = QtWidgets.QAction(MainWindow)158 self.actionNewTab.setObjectName("actionNewTab")159 self.action = QtWidgets.QAction(MainWindow)160 self.action.setObjectName("action")161 self.action_2 = QtWidgets.QAction(MainWindow)162 self.action_2.setObjectName("action_2")163 self.action_3 = QtWidgets.QAction(MainWindow)164 self.action_3.setObjectName("action_3")165 self.action_4 = QtWidgets.QAction(MainWindow)166 self.action_4.setObjectName("action_4")167 self.action_5 = QtWidgets.QAction(MainWindow)168 self.action_5.setObjectName("action_5")169 self.action_6 = QtWidgets.QAction(MainWindow)170 self.action_6.setObjectName("action_6")171 self.action_7 = QtWidgets.QAction(MainWindow)172 self.action_7.setObjectName("action_7")173 self.menuFile.addAction(self.actionOpen)174 self.menuFile.addAction(self.actionSave)175 self.menuFile.addAction(self.actionNewTab)176 self.menuFile.addAction(self.actionExit)177 self.menuInfo.addAction(self.actionProgram)178 self.menuInfo.addAction(self.actionAuthor)179 self.menu2.addAction(self.BFSaction)180 self.menu2.addAction(self.actionA)181 self.menu2.addAction(self.IDAaction)182 self.menu3.addAction(self.action)183 self.menu3.addAction(self.action_2)184 self.menu3.addAction(self.action_3)185 self.menu3.addAction(self.action_4)186 self.menu12.addAction(self.action_5)187 self.menu12.addAction(self.action_6)188 self.menu12.addAction(self.action_7)189 self.menuTasks.addAction(self.menu2.menuAction())190 self.menuTasks.addAction(self.menu3.menuAction())191 self.menuTasks.addAction(self.action4)192 self.menuTasks.addAction(self.action5)193 self.menuTasks.addAction(self.action6)194 self.menuTasks.addAction(self.action7)195 self.menuTasks.addAction(self.action8)196 self.menuTasks.addAction(self.action9)197 self.menuTasks.addAction(self.action10)198 self.menuTasks.addAction(self.action11)199 self.menuTasks.addAction(self.menu12.menuAction())200 self.menuTasks.addAction(self.action13)201 self.menuTasks.addAction(self.action14)202 self.menuTasks.addAction(self.action15)203 self.menuTasks.addAction(self.action16)204 self.menuTasks.addAction(self.action17)205 self.menuTasks.addAction(self.action18_2)206 self.menuTasks.addAction(self.action19)207 self.menuTasks.addAction(self.action20)208 self.menuTasks.addAction(self.action21)209 self.menuBar.addAction(self.menuFile.menuAction())210 self.menuBar.addAction(self.menuTasks.menuAction())211 self.menuBar.addAction(self.menuInfo.menuAction())212213 self.retranslateUi(MainWindow)214 self.tabWidget.setCurrentIndex(0)215 QtCore.QMetaObject.connectSlotsByName(MainWindow)216217 def retranslateUi(self, MainWindow):218 _translate = QtCore.QCoreApplication.translate219 MainWindow.setWindowTitle(_translate("MainWindow", "Графоид"))220 self.cmbDirect.setItemText(0, _translate("MainWindow", "Направленный"))221 self.cmbDirect.setItemText(1, _translate("MainWindow", "Ненаправленный"))222 self.cmbWeight.setItemText(0, _translate("MainWindow", "Нагруженный"))223 self.cmbWeight.setItemText(1, _translate("MainWindow", "Ненагруженный"))224 self.btnCancel.setText(_translate("MainWindow", "← Отменить"))225 self.btnNext.setText(_translate("MainWindow", "→ Дальше"))226 self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Tab 1"))227 self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Tab 2"))228 self.menuFile.setTitle(_translate("MainWindow", "Файл"))229 self.menuInfo.setTitle(_translate("MainWindow", "?"))230 self.menuTasks.setTitle(_translate("MainWindow", "Задачи"))231 self.menu2.setTitle(_translate("MainWindow", "2. Поиск пути"))232 self.menu3.setTitle(_translate("MainWindow", "3. Алгоритм Дейкстры и близкие к нему"))233 self.menu12.setTitle(_translate("MainWindow", "12. Деревья и минимальное остовное дерево"))234 self.actionSave.setText(_translate("MainWindow", "Сохранить"))235 self.actionExit.setText(_translate("MainWindow", "Выход"))236 self.actionProgram.setText(_translate("MainWindow", "О программе"))237 self.actionAuthor.setText(_translate("MainWindow", "Об авторе"))238 self.actionOpen.setText(_translate("MainWindow", "Открыть"))239 self.action4.setText(_translate("MainWindow", "4. Эксцентриситет, радиус, диаметр и степени"))240 self.action5.setText(_translate("MainWindow", "5. Изоморфизм графов"))241 self.action6.setText(_translate("MainWindow", "6. Связность графа"))242 self.action7.setText(_translate("MainWindow", "7. Дополнение для графа"))243 self.action8.setText(_translate("MainWindow", "8. Бинарные операции над графами"))244 self.action9.setText(_translate("MainWindow", "9. Планарность графа"))245 self.action10.setText(_translate("MainWindow", "10. Восстановление графа из вектора"))246 self.action11.setText(_translate("MainWindow", "11. Экстремальные графы"))247 self.action13.setText(_translate("MainWindow", "13. Задача о цикле"))248 self.action14.setText(_translate("MainWindow", "14. Раскраска графа"))249 self.action15.setText(_translate("MainWindow", "15. Задача о свадьбах"))250 self.action16.setText(_translate("MainWindow", "16. Дополнение 2-комплекса"))251 self.action17.setText(_translate("MainWindow", "17. Восстановление 2-комплекса из вектора"))252 self.action18_2.setText(_translate("MainWindow", "18. Экстремальные 2-комплексы"))253 self.action19.setText(_translate("MainWindow", "19. Задача коммивояжёра"))254 self.action20.setText(_translate("MainWindow", "20. Доминирование и покрывающее множество"))255 self.action21.setText(_translate("MainWindow", "21. Эффективность алгоритмов поиска пути"))256 self.BFSaction.setText(_translate("MainWindow", "BFS"))257 self.actionA.setText(_translate("MainWindow", "A*"))258 self.IDAaction.setText(_translate("MainWindow", "Iterative deepening A"))259 self.actionNewTab.setText(_translate("MainWindow", "Новая вкладка"))260 self.action.setText(_translate("MainWindow", "Алгоритм Дейкстры"))261 self.action_2.setText(_translate("MainWindow", "Алгоритм Флойда-Уоршелла"))262 self.action_3.setText(_translate("MainWindow", "Алгоритм Беллмана-Форда"))263 self.action_4.setText(_translate("MainWindow", "Алгоритм Джонсона"))264 self.action_5.setText(_translate("MainWindow", "Алгоритм Прима"))265 self.action_6.setText(_translate("MainWindow", "Алгоритм Краскала")) ...

Full Screen

Full Screen

spawn.py

Source:spawn.py Github

copy

Full Screen

...58 if value == 'None':59 kwds[name] = None60 else:61 kwds[name] = int(value)62 spawn_main(**kwds)63 sys.exit()64def get_command_line(**kwds):65 '''66 Returns prefix of command line used for spawning a child process67 '''68 if getattr(sys, 'frozen', False):69 return ([sys.executable, '--multiprocessing-fork'] +70 ['%s=%r' % item for item in kwds.items()])71 else:72 prog = 'from multiprocessing.spawn import spawn_main; spawn_main(%s)'73 prog %= ', '.join('%s=%r' % item for item in kwds.items())74 opts = util._args_from_interpreter_flags()75 return [_python_exe] + opts + ['-c', prog, '--multiprocessing-fork']76def spawn_main(pipe_handle, parent_pid=None, tracker_fd=None):77 '''78 Run code specified by data received over pipe79 '''80 assert is_forking(sys.argv)81 if sys.platform == 'win32':82 import msvcrt83 new_handle = reduction.steal_handle(parent_pid, pipe_handle)84 fd = msvcrt.open_osfhandle(new_handle, os.O_RDONLY)85 else:86 from . import semaphore_tracker87 semaphore_tracker._semaphore_tracker._fd = tracker_fd88 fd = pipe_handle89 exitcode = _main(fd)90 sys.exit(exitcode)91def _main(fd):92 with os.fdopen(fd, 'rb', closefd=True) as from_parent:93 process.current_process()._inheriting = True94 try:95 preparation_data = reduction.pickle.load(from_parent)96 prepare(preparation_data)97 self = reduction.pickle.load(from_parent)98 finally:99 del process.current_process()._inheriting100 return self._bootstrap()101def _check_not_importing_main():102 if getattr(process.current_process(), '_inheriting', False):103 raise RuntimeError('''104 An attempt has been made to start a new process before the105 current process has finished its bootstrapping phase.106 This probably means that you are not using fork to start your107 child processes and you have forgotten to use the proper idiom108 in the main module:109 if __name__ == '__main__':110 freeze_support()111 ...112 The "freeze_support()" line can be omitted if the program113 is not going to be frozen to produce an executable.''')114def get_preparation_data(name):115 '''116 Return info about parent needed by child to unpickle process object117 '''118 _check_not_importing_main()119 d = dict(120 log_to_stderr=util._log_to_stderr,121 authkey=process.current_process().authkey,122 )123 if util._logger is not None:124 d['log_level'] = util._logger.getEffectiveLevel()125 sys_path=sys.path.copy()126 try:127 i = sys_path.index('')128 except ValueError:129 pass130 else:131 sys_path[i] = process.ORIGINAL_DIR132 d.update(...

Full Screen

Full Screen

rpn_test.py

Source:rpn_test.py Github

copy

Full Screen

...74 75 def tearDown(self):76 self.driver.close()77if __name__ == "__main__":...

Full Screen

Full Screen

main.py

Source:main.py Github

copy

Full Screen

...22MAIN_MENU_STR_OPTION9 = 'Sair'23MAIN_MENU_TITLE = 'MAIN MENU'24#Other Constants25MAIN_MENU_OPTION_REQUEST_PHRASE = 'Enter an option number: '26def main():27 DBConnection = sql_functions.establishConnectionDB()28 try:29 option = ''30 while(option != MAIN_MENU_NUM_OPTION9):31 showMainMenu()32 option = returnMainMenuOption()33 handlesSelectedMainMenuOption(option, DBConnection)34 35 finally: #Todo o código do bloco finally será executado, caso tenha ocorrido uma exceção ou não36 DBConnection.close()37def showMainMenu():38 menu = '_____________________ ' + MAIN_MENU_TITLE + ' ____________________\n'39 menu += ' ' + MAIN_MENU_NUM_OPTION1 + '.' + MAIN_MENU_STR_OPTION1 + '\n'40 menu += ' ' + MAIN_MENU_NUM_OPTION2 + '.' + MAIN_MENU_STR_OPTION2 + '\n'41 menu += ' ' + MAIN_MENU_NUM_OPTION3 + '.' + MAIN_MENU_STR_OPTION3 + '\n'42 menu += ' ' + MAIN_MENU_NUM_OPTION4 + '.' + MAIN_MENU_STR_OPTION4 + '\n'43 menu += ' ' + MAIN_MENU_NUM_OPTION5 + '.' + MAIN_MENU_STR_OPTION5 + '\n'44 menu += ' ' + MAIN_MENU_NUM_OPTION6 + '.' + MAIN_MENU_STR_OPTION6 + '\n'45 menu += ' ' + MAIN_MENU_NUM_OPTION7 + '.' + MAIN_MENU_STR_OPTION7 + '\n' 46 menu += ' ' + MAIN_MENU_NUM_OPTION8 + '.' + MAIN_MENU_STR_OPTION8 + '\n'47 menu += ' ' + MAIN_MENU_NUM_OPTION9 + '.' + MAIN_MENU_STR_OPTION9 + '\n' 48 menu += '___________________________________________________\n'49 print(menu)50def returnMainMenuOption():51 option = input(MAIN_MENU_OPTION_REQUEST_PHRASE)52 return option53def handlesSelectedMainMenuOption(option, DBConnection):54 if (option == MAIN_MENU_NUM_OPTION1):55 sql_functions.InsertTupleTableFator(DBConnection)56 return57 if (option == MAIN_MENU_NUM_OPTION2):58 sql_functions.InsertTupleTablePeso(DBConnection)59 return60 if (option == MAIN_MENU_NUM_OPTION3):61 sql_functions.InsertTupleTableTime(DBConnection)62 return63 if (option == MAIN_MENU_NUM_OPTION4):64 sql_functions.changeFactorStatus(DBConnection)65 return66 if (option == MAIN_MENU_NUM_OPTION5):67 sql_functions.presentsAllFactors(DBConnection)68 return69 if (option == MAIN_MENU_NUM_OPTION6):70 sql_functions.presentsAllWeights(DBConnection)71 return72 if (option == MAIN_MENU_NUM_OPTION7):73 sql_functions.presentsAllTeams(DBConnection)74 return75 if (option == MAIN_MENU_NUM_OPTION8):76 return77 if (option == MAIN_MENU_NUM_OPTION9):78 aux_functions.showOkMessage(4)79 return80 aux_functions.showErrorMessage(1)81if __name__ == '__main__':...

Full Screen

Full Screen

mesa.gypi

Source:mesa.gypi Github

copy

Full Screen

1# Copyright (c) 2010 The Chromium Authors. All rights reserved.2# Use of this source code is governed by a BSD-style license that can be3# found in the LICENSE file.4{5 'variables': {6 #7 # Mesa EGL implementation has a pluggable architecture. The core consists8 # of an API dispatcher which routes all eglFooBar() API calls to a9 # pluggable driver. mesa_egl_sources contains the API dispatcher source10 # files. These sources when compiled with driver sources will produce11 # EGL library.12 #13 # Note that we cannot compile the API dispatcher into a static library14 # because they need to include EGL headers which might be driver specific.15 #16 'mesa_egl_sources': [17 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglapi.c',18 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglapi.h',19 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglarray.c',20 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglarray.h',21 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglcompiler.h',22 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglconfig.c',23 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglconfig.h',24 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglcontext.c',25 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglcontext.h',26 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglcurrent.c',27 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglcurrent.h',28 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egldefines.h',29 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egldisplay.c',30 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egldisplay.h',31 #32 # Do not include egldriver.c which dynamically loads a driver at33 # runtime. We will statically bake our driver with the API dispatcher.34 #35 # '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egldriver.c',36 #37 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egldriver.h',38 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglglobals.c',39 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglglobals.h',40 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglimage.c',41 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglimage.h',42 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egllog.c',43 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egllog.h',44 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglmisc.c',45 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglmisc.h',46 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglmode.c',47 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglmode.h',48 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglmutex.h',49 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglscreen.c',50 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglscreen.h',51 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglstring.c',52 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglstring.h',53 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglsurface.c',54 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglsurface.h',55 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglsync.c',56 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/eglsync.h',57 '<(DEPTH)/third_party/mesa/MesaLib/src/egl/main/egltypedefs.h',58 ],59 },...

Full Screen

Full Screen

isac.gypi

Source:isac.gypi Github

copy

Full Screen

1# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.2#3# Use of this source code is governed by a BSD-style license4# that can be found in the LICENSE file in the root of the source5# tree. An additional intellectual property rights grant can be found6# in the file PATENTS. All contributing project authors may7# be found in the AUTHORS file in the root of the source tree.8{9 'targets': [10 {11 'target_name': 'isac',12 'type': 'static_library',13 'dependencies': [14 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio',15 'audio_decoder_interface',16 'audio_encoder_interface',17 'isac_common',18 ],19 'include_dirs': [20 'main/include',21 '<(webrtc_root)',22 ],23 'direct_dependent_settings': {24 'include_dirs': [25 'main/include',26 '<(webrtc_root)',27 ],28 },29 'sources': [30 'main/include/audio_decoder_isac.h',31 'main/include/audio_encoder_isac.h',32 'main/include/isac.h',33 'main/source/arith_routines.c',34 'main/source/arith_routines_hist.c',35 'main/source/arith_routines_logist.c',36 'main/source/audio_decoder_isac.cc',37 'main/source/audio_encoder_isac.cc',38 'main/source/bandwidth_estimator.c',39 'main/source/crc.c',40 'main/source/decode.c',41 'main/source/decode_bwe.c',42 'main/source/encode.c',43 'main/source/encode_lpc_swb.c',44 'main/source/entropy_coding.c',45 'main/source/fft.c',46 'main/source/filter_functions.c',47 'main/source/filterbank_tables.c',48 'main/source/intialize.c',49 'main/source/isac.c',50 'main/source/isac_float_type.h',51 'main/source/filterbanks.c',52 'main/source/pitch_lag_tables.c',53 'main/source/lattice.c',54 'main/source/lpc_gain_swb_tables.c',55 'main/source/lpc_analysis.c',56 'main/source/lpc_shape_swb12_tables.c',57 'main/source/lpc_shape_swb16_tables.c',58 'main/source/lpc_tables.c',59 'main/source/pitch_estimator.c',60 'main/source/pitch_filter.c',61 'main/source/pitch_gain_tables.c',62 'main/source/spectrum_ar_model_tables.c',63 'main/source/transform.c',64 'main/source/arith_routines.h',65 'main/source/bandwidth_estimator.h',66 'main/source/codec.h',67 'main/source/crc.h',68 'main/source/encode_lpc_swb.h',69 'main/source/entropy_coding.h',70 'main/source/fft.h',71 'main/source/filterbank_tables.h',72 'main/source/lpc_gain_swb_tables.h',73 'main/source/lpc_analysis.h',74 'main/source/lpc_shape_swb12_tables.h',75 'main/source/lpc_shape_swb16_tables.h',76 'main/source/lpc_tables.h',77 'main/source/pitch_estimator.h',78 'main/source/pitch_gain_tables.h',79 'main/source/pitch_lag_tables.h',80 'main/source/settings.h',81 'main/source/spectrum_ar_model_tables.h',82 'main/source/structs.h',83 'main/source/os_specific_inline.h',84 ],85 'conditions': [86 ['OS=="linux"', {87 'link_settings': {88 'libraries': ['-lm',],89 },90 }],91 ],92 },93 ],...

Full Screen

Full Screen

video_coding.gypi

Source:video_coding.gypi Github

copy

Full Screen

1# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.2#3# Use of this source code is governed by a BSD-style license4# that can be found in the LICENSE file in the root of the source5# tree. An additional intellectual property rights grant can be found6# in the file PATENTS. All contributing project authors may7# be found in the AUTHORS file in the root of the source tree.8{9 'targets': [10 {11 'target_name': 'webrtc_video_coding',12 'type': 'static_library',13 'dependencies': [14 'webrtc_h264',15 'webrtc_i420',16 '<(webrtc_root)/common_video/common_video.gyp:common_video',17 '<(webrtc_root)/modules/video_coding/utility/video_coding_utility.gyp:video_coding_utility',18 '<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',19 '<(webrtc_vp8_dir)/vp8.gyp:webrtc_vp8',20 '<(webrtc_vp9_dir)/vp9.gyp:webrtc_vp9',21 ],22 'sources': [23 # interfaces24 'main/interface/video_coding.h',25 'main/interface/video_coding_defines.h',26 # headers27 'main/source/codec_database.h',28 'main/source/codec_timer.h',29 'main/source/content_metrics_processing.h',30 'main/source/decoding_state.h',31 'main/source/encoded_frame.h',32 'main/source/fec_tables_xor.h',33 'main/source/frame_buffer.h',34 'main/source/generic_decoder.h',35 'main/source/generic_encoder.h',36 'main/source/inter_frame_delay.h',37 'main/source/internal_defines.h',38 'main/source/jitter_buffer.h',39 'main/source/jitter_buffer_common.h',40 'main/source/jitter_estimator.h',41 'main/source/media_opt_util.h',42 'main/source/media_optimization.h',43 'main/source/nack_fec_tables.h',44 'main/source/packet.h',45 'main/source/qm_select_data.h',46 'main/source/qm_select.h',47 'main/source/receiver.h',48 'main/source/rtt_filter.h',49 'main/source/session_info.h',50 'main/source/timestamp_map.h',51 'main/source/timing.h',52 'main/source/video_coding_impl.h',53 # sources54 'main/source/codec_database.cc',55 'main/source/codec_timer.cc',56 'main/source/content_metrics_processing.cc',57 'main/source/decoding_state.cc',58 'main/source/encoded_frame.cc',59 'main/source/frame_buffer.cc',60 'main/source/generic_decoder.cc',61 'main/source/generic_encoder.cc',62 'main/source/inter_frame_delay.cc',63 'main/source/jitter_buffer.cc',64 'main/source/jitter_estimator.cc',65 'main/source/media_opt_util.cc',66 'main/source/media_optimization.cc',67 'main/source/packet.cc',68 'main/source/qm_select.cc',69 'main/source/receiver.cc',70 'main/source/rtt_filter.cc',71 'main/source/session_info.cc',72 'main/source/timestamp_map.cc',73 'main/source/timing.cc',74 'main/source/video_coding_impl.cc',75 'main/source/video_sender.cc',76 'main/source/video_receiver.cc',77 ], # source78 # TODO(jschuh): Bug 1348: fix size_t to int truncations.79 'msvs_disabled_warnings': [ 4267, ],80 },81 ],...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var backstop = require('backstopjs');2backstop('test', {config: './backstop.json'});3{4 {5 },6 {7 },8 {9 },10 {11 }12 {13 }14 "paths": {15 },16 "engineOptions": {17 "phantomjs": {18 }19 },20}21module.exports = function (chromy, scenario) {22 require('./onReady')(chromy, scenario);23 var hoverSelector = scenario.hoverSelector;24 var clickSelector = scenario.clickSelector;25 if (hoverSelector)

Full Screen

Using AI Code Generation

copy

Full Screen

1var backstop = require('backstopjs');2backstop('test', { config: './backstop.json' })3 .then(function () {4 console.log('Test completed');5 })6 .catch(function (error) {7 console.log('Test errored');8 console.log(error);9 });10{11 {12 },13 {14 },15 {16 },17 {18 },19 {20 }21 {22 }23 "paths": {24 },25 "engineOptions": {26 },

Full Screen

Using AI Code Generation

copy

Full Screen

1var backstopjs = require('backstopjs');2backstopjs('test');3var backstopjs = require('backstopjs');4backstopjs('test');5var backstopjs = require('backstopjs');6backstopjs('test');7var backstopjs = require('backstopjs');8backstopjs('test');9var backstopjs = require('backstopjs');10backstopjs('test');11var backstopjs = require('backstopjs');12backstopjs('test');13var backstopjs = require('backstopjs');14backstopjs('test');15var backstopjs = require('backstopjs');16backstopjs('test');17var backstopjs = require('backstopjs');18backstopjs('test');19var backstopjs = require('backstopjs');20backstopjs('test');21var backstopjs = require('backstopjs');22backstopjs('test');23var backstopjs = require('backstopjs');24backstopjs('test');25var backstopjs = require('backstopjs');26backstopjs('test');27var backstopjs = require('backstopjs');28backstopjs('test');

Full Screen

Using AI Code Generation

copy

Full Screen

1var backstopjs = require('backstopjs');2backstopjs('reference', { config: 'backstop.json' })3 .then(() => {4 console.log('Reference done');5 return backstopjs('test', { config: 'backstop.json' });6 })7 .then(() => {8 console.log('Test done');9 })10 .catch((e) => {11 console.log(e);12 });13{14 "scripts": {15 },16 "devDependencies": {17 }18}19{20 {21 },22 {23 },24 {25 }26 {27 }28 "paths": {29 },30 "engineOptions": {

Full Screen

Using AI Code Generation

copy

Full Screen

1var backstopjs = require('backstopjs');2backstopjs('test', { config: 'backstop.json' })3.then(function () {4 console.log('done');5})6.catch(function (e) {7 console.log('error');8 console.log(e);9});10{11 {12 },13 {14 },15 {16 }17 {18 }19 "paths": {20 },21 "engineOptions": {22 },23}24{25 "scripts": {26 },

Full Screen

Using AI Code Generation

copy

Full Screen

1var backstopjs = require('backstopjs');2backstopjs('reference');3 throw err;4 at Function.Module._resolveFilename (module.js:469:15)5 at Function.Module._load (module.js:417:25)6 at Module.require (module.js:497:17)7 at require (internal/module.js:20:19)8 at Object.<anonymous> (/Users/xxx/Desktop/backstopjs/test.js:2:14)9 at Module._compile (module.js:571:32)10 at Object.Module._extensions..js (module.js:580:10)11 at Module.load (module.js:488:32)12 at tryModuleLoad (module.js:447:12)13 at Function.Module._load (module.js:439:3)

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run backstopjs automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful