0x1949 Team - FAZEMRX - MANAGER
Edit File: build_clib.cpython-310.pyc
o �_�a? � @ sL d dl m mZ d dlmZ d dlmZ d dlm Z G dd� dej�ZdS )� N)�DistutilsSetupError)�log)�newer_pairwise_groupc @ s e Zd ZdZdd� ZdS )� build_clibav Override the default build_clib behaviour to do the following: 1. Implement a rudimentary timestamp-based dependency system so 'compile()' doesn't run every time. 2. Add more keys to the 'build_info' dictionary: * obj_deps - specify dependencies for each object compiled. this should be a dictionary mapping a key with the source filename to a list of dependencies. Use an empty string for global dependencies. * cflags - specify a list of additional flags to pass to the compiler. c C sn |D ]�\}}|� d�}|d u st|ttf�std| ��t|�}t�d|� |� dt� �}t|t�s8td| ��g }|� dt� �}t|ttf�sNtd| ��|D ](}|g} | �|� |� |t� �} t| ttf�sntd| ��| �| � |� | � qP| j j|| jd�}t ||�g g fkr�|� d�}|� d �} |� d �}| j j|| j|| || jd� | j j||| j| jd� qd S ) N�sourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' library�obj_depsz\in 'libraries' option (library '%s'), 'obj_deps' must be a dictionary of type 'source: list'� )� output_dir�macros�include_dirs�cflags)r r r �extra_postargs�debug)r r )�get� isinstance�list�tupler r �info�dict�extend�append�compiler�object_filenames� build_tempr �compiler �create_static_libr )�self� libraries�lib_name� build_infor r �dependencies�global_deps�source�src_deps� extra_deps�expected_objectsr r r � r&