관리-도구
편집 파일: win_tool.pyc
� �Rac @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z e j j e j j e � � Z e j d e j � Z d � Z d e f d � � YZ e d k r� e j e e j d � � n d S( su Utility functions for Windows builds. These functions are executed via gyp-win-tool when using the ninja generator. i����Ns /OUT:(?P<out>.+)$c C s8 t � } | j | � } | d k r4 t j | � n d S( N( t WinToolt Dispatcht Nonet syst exit( t argst executort exit_code( ( sj /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/win_tool.pyt main s R c B s� e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s� This class performs all the Windows tooling steps. The methods can either be executed directly, or dispatched from an argument list.c C s� t | � d k r! t d � � n | d d k r5 d Sd } xU | D]M } t j | � } | rB t j d d d | j d � t j � f � } PqB qB W| d k r� d S| | d <d S( sW Allows to use a unique instance of mspdbsrv.exe per linker instead of a shared one.i s Not enough argumentsi s link.exeNs \W+t s %s_%dt outt _MSPDBSRV_ENDPOINT_( t lent ExceptionR t _LINK_EXE_OUT_ARGt matcht ret subt groupt ost getpid( t selft envR t endpoint_namet argt m( ( sj /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/win_tool.pyt _UseSeparateMspdbsrv% s "c C sO t | � d k r! t d � � n d | j | d � } t | | � | d � S( s( Dispatches a string command to a method.i s Not enough argumentss Exec%si ( R R t _CommandifyNamet getattr( R R t method( ( sj /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/win_tool.pyR @ s c C s | j � j d d � S( s@ Transforms a tool name like recursive-mirror to RecursiveMirror.t -R ( t titlet replace( R t name_string( ( sj /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/win_tool.pyR H s c C sN t | � j � d j d � } g | D] } | j d d � ^ q&