Your IP : 216.73.216.249


Current Path : /opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/
Upload File :
Current File : //opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pyc

�
 Qc@s�ddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZdZdZ
dZidd6dd6dd	6dd
6dd6d
d6ded6dd6dd6dd6dd6dd6dd6dd6dd6de
d6dd 6Zd!d"d#gZd$d!d"d#d%gZd!d"d#gZed&d'g�Zd(�Zd)efd*��YZead+�Zd,�Zd-�Zd.�Zejd/�Zd0�Z d1�Z!d2�Z"d3�Z#dS(4i����NtINTERMEDIATE_DIRtSHARED_INTERMEDIATE_DIRtLIBRARY_SEARCH_PATHSttEXECUTABLE_PREFIXtEXECUTABLE_SUFFIXtlibtSTATIC_LIB_PREFIXtSHARED_LIB_PREFIXs.atSTATIC_LIB_SUFFIXs.dylibtSHARED_LIB_SUFFIXs$(%s)tmactOSs$(BUILT_PRODUCTS_DIR)tPRODUCT_DIRtLIB_DIRs$(INPUT_FILE_BASE)tRULE_INPUT_ROOTs$(INPUT_FILE_SUFFIX)tRULE_INPUT_EXTs$(INPUT_FILE_NAME)tRULE_INPUT_NAMEs$(INPUT_FILE_PATH)tRULE_INPUT_PATHs$(INPUT_FILE_DIRNAME)tRULE_INPUT_DIRNAMEs$(CONFIGURATION)tCONFIGURATION_NAMEtmac_bundle_resourcestmac_framework_headerstmac_framework_private_headerst
mac_bundlet#xcode_create_dependents_test_runners$(SDKROOT)/usr/libs$(SDKROOT)/usr/local/libcCs�tjjigd6�}t|�dkr7dg}nx7|D]/}tjji|d6�}|jd|�q>W|jd|d�|S(NtbuildConfigurationsitDefaulttnametdefaultConfigurationName(tgyptxcodeproj_filetXCConfigurationListtlentXCBuildConfigurationtAppendPropertytSetProperty(tconfiguration_namestxccltconfiguration_nametxcbc((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytCreateXCConfigurationList\s

tXcodeProjectcBs,eZd�Zd�Zd�Zd�ZRS(cCs�||_||_tjjd|�|_tjjtjj	tjj
|j��tjj	|�pfd�}|jjd|�tjji|jd6�|_
||_t|_ytj|j�t|_Wn+tk
r�}|jtjkr��q�nXdS(Ntpatht.tprojectDirPatht
rootObject(tgyp_pathR+RRt
PBXProjecttprojecttcommontRelativePathtostdirnametabspathR$t
XCProjectFiletproject_filetbuild_file_dicttFalsetcreated_dirtmakedirstTruetOSErrorterrnotEEXIST(tselfR/R+R9R-te((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pyt__init__is 					
c%	Cs[g}xt|jjd�D]`}|jd�}|jd�}x9|D]1}|jd�}||krD|j|�qDqDWqWy#t|�}|jjd|�Wn!tjjd|j��nX|j	t
d�|j	td�x9|jj
di�j�D]\}	}
|j	|	|
�qWd	|jkrX|jj|jd	�}|j|�n|jj
d
i�}|r x�|D]�}
|j
|
i�}|rz|j|
�}x6|j
di�j�D]\}	}
|j	|	|
�q�Wd	|kr|jj||
d	�}|j|�qqzqzWng}g}g}g}t}g}x�|jdD]�}|d}|d}tjj|j||�}||}||jjdks�t�|j|�|j|�|jr�|j|j�|j|j�nt|j
d
t��s|j|�n|j�dkr6t}n|j
d�rRt|�}tjjid|d6|jd�d6|d6d|j�}|j|�|d}d}|j
d�r�|dtjj|j
d��}n|j
d�rG|dj g|j
d�j�D](\}}d|tjj|�f^q�d}nd} |r\d} n|d| dtjjtjj!|j
d���}tjj"i|d6dd6�}!|j#d |!�|j|�|j|�||_$qRqRWt%|jjd�t%|�t%|�kst�||jjd<|jj&t�|jj'�t%|�d!kr�|r�t|�}tjji|d6d"d6d|j�}"x|D]}|"j|�q�W|jjdj(d|"�nt%|�d!krWt|�}tjji|d6d#d6d|j�}#x|D]}$|#j|$�q#W|jjdj(d!|#�ndS($NttargetstbuildConfigurationListRRsProblem with gyp file %s
s,$(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION)s*$(SYMROOT)/DerivedSources/$(CONFIGURATION)txcode_settingstxcode_config_filetconfigurationsttarget_namettoolsettsuppress_wildcardtalltrun_assRun tproductNametparentRtworking_directoryscd "%s"
tenvironments
sexport %s="%s"s�python -c "import fcntl, subprocess, sys
file = open('$TMPDIR/GYP_serialize_test_runs', 'a')
fcntl.flock(file.fileno(), fcntl.LOCK_EX)
sys.exit(subprocess.call(sys.argv[1:]))" sexec s
%s
exit 1
tactiontshellScriptitshowEnvVarsInLogtbuildPhasesitAlls
Run All Tests()R1tGetPropertytappendR)R$tsyststderrtwriteR/tSetBuildSettingt_intermediate_vart_shared_intermediate_varR9tgett	iteritemstAddOrGetFileInRootGrouptSetBaseConfigurationtConfigurationNamedR:RR2tQualifiedTargett_propertiestAssertionErrortsupport_targettinttlowerR=RtPBXAggregateTargett
AddDependencytConvertVariablesToShellSyntaxtjointEncodePOSIXShellListtPBXShellScriptBuildPhaseR#ttest_runnerR!tRootGroupsTakeOverOnlyChildrent
SortGroupstinsert(%RAt
xcode_targetstserialize_all_testsRHtxctR&txcbcsR(Rtxcktxcvt
config_reftbuild_file_configurationstconfig_nametbuild_file_configuration_namedtxcctordinary_targetstrun_test_targetstsupport_targetsRDthas_custom_allttargets_for_allttargetRIRJtqualified_targettxcode_targett
run_targettcommandtscripttkeytvaltcommand_prefixtssbpt
all_targettrun_all_tests_targettrun_test_target((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pyt	Finalize1�s�
		(	
	


	


		


	X		 



	

	

cCs�x~|jdD]o}t|jdd��r|d}|d}tjj|j||�}||}t|tjj	�r}g}|j
d�}	xN|	D]F}
|
j
d�}|j
d�}t|d	�r�|j|j
�q�q�Wt|�dkrztjj	id
|d6|d6d
|j�}
x|D]}|
j|�q&W|jjdj|�}|jjdj|d|
�qzq}qqWx*|jjj�D]}|jj|�q�W|jj�|jj�|jj�dS(NRDRiRIRJtdependenciesttargetProxytremoteGlobalIDStringRpsRun %s TestsRRNROi(R9RhR_RR2RdR/t
isinstanceRRjRWthasattrRXRpR!R1RkRetindexRst_other_pbxprojectstkeystAddOrGetProjectReferencetSortRemoteProductReferencesR8t
ComputeIDstEnsureNoIDCollisions(RARttxcode_target_to_target_dicttbf_tgtttgt_nameRJR�R�t
all_run_teststpbxtdstpbxtdtpbxciptdependency_xcttrun_all_targetR�tidxtother_pbxproject((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pyt	Finalize2bs:





+

cCsZtjddddd|j�\}}y�tj|d�}|jj|�|j�tjj|jd�}t	}yt
j||t	�}Wn+tk
r�}|j
t
jkr��q�nX|r�tj|�nAtjd�}tj|�tj|d	|@�tj||�Wn@tk
rUtj|�|jrOtj|jt�n�nXdS(
Ntsuffixs.tmptprefixsproject.pbxproj.gyp.tdirtwbsproject.pbxproji?i�(ttempfiletmkstempR+R4tfdopenR8tPrinttcloseRmR:tfilecmptcmpR>R?tENOENTtunlinktumasktchmodtrenamet	ExceptionR;tshutiltrmtreeR=(RAt	output_fdtnew_pbxproj_pathtoutput_filetpbxproj_pathtsameRBR�((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytWrite�s0




	(t__name__t
__module__RCR�R�R�(((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pyR*hs		�	?cCs�tdk	rtSdayVddl}ddg}|j|d|j�}|j�d}|jrkd}nWntk
r�d}nXtj	d|tj
�}|r�|jd	�antS(
s`Fetches the installed version of Xcode, returns empty string if it is
  unable to figure it out.Ri����Ns/usr/bin/xcodebuilds-versiontstdoutis^Xcode (.*)$i(tcached_xcode_versiontNonet
subprocesstPopentPIPEtcommunicatet
returncodeR>tretsearcht	MULTILINEtgroup(R�tcmdtproctxcodebuild_version_infot
match_line((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytInstalledXcodeVersion�s 	


c	Cs�dddddddg}dd	d
dg}tj|�}tj|�\}}|rj|dj�}n||kr�|d
kr�|j�j|�n;||kr�|d
kr�|j�j|�n
|j|�dS(Ntctcctcpptcxxtmtmmtstatdylibt	frameworktoitnone(t	posixpathtbasenametsplitextRitSourcesPhasetAddFiletFrameworksPhaseRa(	tsourcettypetpbxpRvtsource_extensionstlibrary_extensionsR�troottext((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytAddSourceToTargetscCs|j�j|�dS(N(tResourcesPhaseR�(tresourceR�Rv((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytAddResourceToTargetscCs(dd|}|j�j||�dS(Ns{ATTRIBUTES = (%s, ); }tPrivatetPublic(R�R�(tHeadersPhaseR�(theaderR�Rvt	is_publictsettings((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytAddHeaderToTarget$ss
(\$\((.*?)\))cCs�tj|�}|dkr|S|j�xT|D]L}|\}}||krTq0n||}tjtj|�||�}q0W|S(s�Expands Xcode-style $(VARIABLES) in string per the expansions dict.

  In some rare cases, it is appropriate to expand Xcode variables when a
  project file is generated.  For any substring $(VAR) in string, if VAR is a
  key in the expansions dict, $(VAR) will be replaced with expansions[VAR].
  Any $(VAR) substring in string for which VAR is not a key in the expansions
  dict will remain in the returned string.
  N(t_xcode_variable_retfindallR�treverseR�tsubtescape(tstringt
expansionstmatchestmatcht
to_replacetvariabletreplacement((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytExpandXcodeVariables,s



"cCs0|jdd�}|jdd�}d|dS(s�We must escape the arguments that we give to XCode so that it knows not to
     split on spaces and to respect backslash and quote literals.s\s\\t"s\"(treplace(R�((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytEscapeXCodeArgumentFscCs�|d}xy|j�D]k\}}tjj|�\}}|dkrMqn||jd}|jrtjj|j|�}qqWxI|D]A}	dd|g}
|
d|	g7}
d|	|
fGHtj|
�q�WdS(Ntoptionss.gyps
.xcodeprojt
xcodebuilds-projects-configurationsBuilding [%s]: %s(	R`R4R+R�R�tgenerator_outputRmR�t
check_call(tdataRHtparamsR
t
build_fileR9tbuild_file_roottbuild_file_exttxcodeproj_pathtconfigt	arguments((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytPerformBuildOs
	
cpCs�|d}|jdi�}|jdt�}|jdt�}|jdd�}|jdt�}	i}
xC|j�D]5\}}tjj|�\}
}|dkr�qxn|
|jd}|jr�tjj	|j|�}nt
|||�}||
|<|j}|r(|jd	id
d6�n|rA|j
j|�n|jd�sx|jd
�}tjjidd6�}|j|�x%|dD]}|j|t�q�WqxqxWi}i}xW|D]O}tjj|�\}}}||}|ddkrtd|��n|dg}x:t|dj��D]"}||kr6|j|�q6q6W|
|}|j}t|�}idd6dd6dd6dd6dd6d d!6d"d#6}i|d$6|d6}|d%} t|jd&d'��}!| d(kr^| }"|!r
|"d)7}"ntjj}#y||"|d*<Wq�tk
rZ}$tjj |$d+|��q�Xn#tjj!}#|!s�t"d,|��|jd-�}%|%dk	r�|%|d.<n|#|d/|d0|jd1�d2|jd3�d4|jd5��}&|j#d6|&�|&||<|||&<|jd7g�}'|jd8g�}(d})| d(kr�|'sN|(r�t|�}*i|*d$6|d9d6}+|%r�|%d9|+d.<ntjj!|+d/|�})|j#d6|)�|&j$|)�n|)|&_%d'},x�|'D]�}-|-jd:�}.|.rd;tjj&|.�}.nd<}.tjj'|-d=�}/tjj(|.�}0tjj(|/�}1d<}2|0rh|2|0d>7}2n|2d?|1d@7}2tjj)i|-dAdB6dC|-dDdEd6|-dFdG6|2dH6d'dI6�}3|)r�|)j#dJ|3�n!|&j*dJj+|,|3�|,dK},t|-jdLt��r@x(|-dFD]}4t,|4| ||&�q Wnt|-jdMt��r�x%|-dFD]}4t-|4||&�qcWq�q�W|!r�|jdNg�}5ng}5i}6x�|(D]�}7|7|6|7dO<g}8g}9g}:g};x�|7jdPg�D]�}<t.j/|<�\}=}>t.j|>�\}?}@i|?dQ6|@dR6|>dS6|<dT6|=dU6}Ag}BxC|7jdFg�D]/}4t0|4|A�}C|Bj|C�|j1|C�qcW|8j|B�|9j2|B�t|7jdLt��r�x$|BD]}4t,|4| ||&�q�Wn|<|5k}D|Dst|7jdMt��r=x!|BD]}4t-|4||&�q Wn|7jd:�}.|.rvtjj&|.�}.t0|.|A�}.n|:j|.�tjj'|7d=�}/t0|/|A�}-|;j|-�q�Wt3|9�d'kr�dVt4j5dWdXdY||7dZf�}Etjj	|
|j|E�}Ft6|Fd[�}G|Gj7d\�xgt8d't3|8��D]P}H|8|Hd'}C|Ht3|8�dKkrs	d<}Ind]}I|Gj7d^|C|If�q@	Wx�t9|7dP|8|:|;�D]�\}<}J}.}-|Gj7d>�g}Kx�t8d't3|J��D]s}H|J|H}C|Hd'kr
d<}Lnd_}L|Gj7d`|L|Cf�t.j:|C�}M|Mr�	|M|Kkr�	|Kj|M�q�	q�	W|Gj7da�|<g}N|Nj2|7jdAg��xct8d't3|N��D]L}O|N|O}P|Ot3|N�dKkr�
d<}Ind]}I|Gj7d^|P|If�q�
Wt3|K�d'kr$|Gj7dbdcj	|K��n|.r>|Gj7dd|.�n|Gj7de|-�q�	W|Gj;�df|E}2tjj)idg|7dZdEd6|2dH6d'dI6�}3|)r�|)j#dJ|3�q�|&j*dJj+|,|3�|,dK},ndAdhg}Q|	rg|QD]}R|Rj<di�s�|R^q�}Qnx8|QD]0}Sx'|7j|Sg�D]}T|j1|T�q4WqWq�Wxb|jdjg�D]N}Ut.j|U�\}V}W|WdK|6kr�t,|U| ||&�qf|j1|U�qfW|!rG
xS|5D]K}Xt.j|X�\}Y}Z|ZdK|6kr
t-|X||&�q�|j1|X�q�Wx0|jdkg�D]}[t=|[||&t�q'
Wn|!sY
| dkr�
x0|jdlg�D]}[t=|[||&t�ql
Wni}\x�|jdmg�D]�}]|]dn}^|^d'd�kr�
dq|^}^n|\j|^d�}_|_dkrHtjj>idr|]dnd6d/|&�}_|_j?|^�|&j*dJj+|,|_�|_|\|^<nx|]dsD]}`|_j@|`�qSWq�
W|	s�xQdjdNdldkgD]:}a|adi}bx'|j|bg�D]}T|j1|T�q�Wq�WndAdhdFdtg}Q|	rg|QD]}R|Rj<di�s�|R^q�}Qnxg|jd7g�D]S}-xJ|QD]B}Sx9|-j|Sg�D]%}T|TjAdu�sD|j1|T�qDqDWq+WqWx�|jdvg�D]w}ctjj'|cd=�}1d?|1d@}2tjj)idwgdB6dx|cdydEd6|2dH6d'dI6�}3|&j#dJ|3�q�Wdz|krRx@|dzD]1}d|&j$||d�|)r|)j$||d�qqWnd{|kr�x{|d{D]l}e|&jB�j@|e�t.j:|e�}f|ftCkri|&jDtE�s�|f|&jFtE�kri|&jGtE|f�qiqiWnx4|D],}|d|}g|&jH|�}hx*|gjd|g�D]}i|hjGd}|i�qWx*|gjd~g�D]}i|hjGd|i�qFWd�|gkr�x1|gd�D]"}jtI|j�}k|hjGd�|k�qwWnd�|gkr�x1|gd�j�D]\}l}m|hjJ|l|m�q�Wnd�|gkr�|j1|gd��}n|hjK|n�q�q�Wq�Wg}ox9|j�D]+\}}|j<d�r*|oj|�q*q*Wx"|oD]}|
|jL||�q`Wx"|oD]}|
|jM||�q�Wx|oD]}|
|jN�q�WdS(�NR
tgenerator_flagstxcode_parallel_buildstxcode_serialize_all_test_runstxcode_project_versiontxcode_list_excluded_filess.gyps
.xcodeprojt
attributestYESt!BuildIndependentTargetsInParallelt
standalonet	mainGrouptBuildRtincluded_filesRJR�s:Multiple toolsets not supported in xcode build (target %s)tdefault_configurationRHscom.apple.product-type.toolt
executablescom.googlecode.gyp.xcode.bundletloadable_modules&com.apple.product-type.library.dynamictshared_librarys%com.apple.product-type.library.statictstatic_librarys"com.apple.product-type.applicationsexecutable+bundlescom.apple.product-type.bundlesloadable_module+bundles com.apple.product-type.frameworksshared_library+bundleRER�RiR�s+bundletproductTypes/-- unknown product type while writing target %ss6mac_bundle targets cannot have type none (target "%s")tproduct_nameRNROtforce_outdirtproduct_dirtforce_prefixtproduct_prefixtforce_extensiontproduct_extensionRDtactionstruless Supporttmessagesecho note: RRRs
sexec s
exit 1
tinputst
inputPathssAction "taction_nameRtoutputstoutputPathsRSRTRUitprocess_outputs_as_sourcest'process_outputs_as_mac_bundle_resourcesRt	extensiontrule_sourcestINPUT_FILE_BASEtINPUT_FILE_SUFFIXtINPUT_FILE_NAMEtINPUT_FILE_PATHtINPUT_FILE_DIRNAMEs%s.makes
[^a-zA-Z0-9_]t_s%s_%st	rule_nameR�sall: \
s \s	    %s%s
s    s%s%s \
s    : \
s	@mkdir -p "%s"
s" "s	@echo note: %s
s	%s
s�JOB_COUNT="$(/usr/sbin/sysctl -n hw.ncpu)"
if [ "${JOB_COUNT}" -gt 4 ]; then
  JOB_COUNT=4
fi
exec "${DEVELOPER_BIN_DIR}/make" -f "${PROJECT_FILE_PATH}/%s" -j "${JOB_COUNT}"
exit 1
sRule "tinputs_excludedt	_excludedtsourcesRRtcopiestdestinationt/t$s$(SRCROOT)/sCopy to tfilestoutputs_excludeds$(BUILT_PRODUCTS_DIR)/t
postbuildss($(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)sPostbuild "tpostbuild_nameR�t	librariestmac_framework_dirstFRAMEWORK_SEARCH_PATHStinclude_dirstHEADER_SEARCH_PATHStdefinestGCC_PREPROCESSOR_DEFINITIONSRFRG(RHRI(OR_R=R�R`R4R+R�R�RRmR*R1R$R8tSetXcodeVersionRWRRtPBXGrouptAppendChildtAddOrGetFileByPathR:R2tParseQualifiedTargetR�tsortedR�RXR)RhtPBXNativeTargettKeyErrortExceptionAppendRjRfR#RkRgtEncodePOSIXShellArgumentRnRlRoReRsR�R�R�tsplitRRatextendR!R�R�topenR[txrangetzipR5R�tendswithR�tPBXCopyFilesBuildPhasetSetDestinationR�t
startswithR�txcode_standard_library_dirstHasBuildSettingt_library_search_paths_vartGetBuildSettingtAppendBuildSettingRcR	R\RbR�R�R�(pttarget_listttarget_dictsRRR
Rtparallel_buildsRutproject_versiontskip_excluded_filestxcode_projectsRR9RRRtxcpR�t
main_grouptbuild_groupt
included_fileRtR�R�RIRJtspecR%R'R&t_typesttarget_propertiesR�t	is_bundlettype_bundle_keyt
xctarget_typeRBttarget_product_nameRvtspec_actionst
spec_rulestsupport_xcttsupport_xccltsupport_target_propertiestprebuild_indexRRR2t
action_stringt
message_shtaction_string_shR�R�toutputttgt_mac_bundle_resourcestrules_by_exttruletconcrete_outputs_by_rule_sourcetconcrete_outputs_alltmessagesR0trule_sourcetrule_source_dirnametrule_source_basenametrule_source_roottrule_source_exttrule_input_dictt%concrete_outputs_for_this_rule_sourcetconcrete_outputtwas_mac_bundle_resourcet
makefile_namet
makefile_pathtmakefiletconcrete_output_indexteoltconcrete_outputstconcrete_output_dirstboltconcrete_output_dirt
prerequisitestprerequisite_indextprerequisitetgroupstxR�titemR�tsource_roottsource_extensionR�t
resource_roottresource_extensionR�t
pbxcp_dictt
copy_grouptdesttpbxcptfileR�texcluded_keyt	postbuildt
dependencytlibrarytlibrary_dirt
configurationR(tinclude_dirtdefinet
set_defineRxRyRztbuild_files((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytGenerateOutputas�
	
		





	









		
		

$






		
	


	
	
		



+



	



+









($R�t
gyp.commonRtgyp.xcodeproj_fileR?R4RYR�R�R�R�R�R]R^Rjtgenerator_default_variablest"generator_additional_path_sectionst+generator_additional_non_configuration_keyst!generator_extra_sources_for_rulest	frozensetRhR)tobjectR*R�R�R�R�R�R�tcompileR�RR	RR�(((sQ//opt/alt/alt-nodejs9/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pyt<module>st
				�|