�
�"Kb6j � � � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddl
Z
ddlZd� Z G d� de� � Zd� Zd� Zed k r( e
j ee
j d
d� � � � � dS dS )z�Utility functions to perform Xcode-style build steps.
These functions are executed via gyp-mac-tool when using the Makefile generator.
� )�print_functionNc �| � t � � }|� | � � }|�t j |� � d S d S �N)�MacTool�Dispatch�sys�exit)�args�executor� exit_codes �./usr/lib/python3/dist-packages/gyp/mac_tool.py�mainr sB � �
�Y�Y�(�����%�%�)����H�Y������ �� c � � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� ZdS )r z�This class performs all the Mac tooling steps. The methods can either be
executed directly, or dispatched from an argument list.c � � t |� � dk rt d� � �d| � |d � � z } t | |� � |dd� � S )z(Dispatches a string command to a method.� zNot enough argumentszExec%sr N)�len� Exception�_CommandifyName�getattr)�selfr
�methods r
r zMacTool.Dispatch& |