Your IP : 216.73.216.249


Current Path : /proc/242857/root/opt/alt/alt-nodejs8/root/usr/lib/python2.7/site-packages/gyp/generator/
Upload File :
Current File : //proc/242857/root/opt/alt/alt-nodejs8/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pyo

�
 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-nodejs8/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-nodejs8/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||�}||}|j|�|j|�|jr�|j|j�|j|j�nt|j
d
t��s�|j|�n|j�dkrt}n|j
d�rRt|�}tjjid|d6|jd�d6|d6d|j�}|j|�|d}d}|j
d�r�|dtjj|j
d��}n|j
d�r+|djg|j
d�j�D](\}}d|tjj|�f^q��d}nd} |r@d} n|d| dtjjtjj|j
d���}tjj i|d6dd6�}!|j!d |!�|j|�|j|�||_"qRqRW||jj#d<|jj$t�|jj%�t&|�d!kr�|r�t|�}tjji|d6d"d6d|j�}"x|D]}|"j|�qSW|jj#dj'd|"�nt&|�d!kr	t|�}tjji|d6d#d6d|j�}#x|D]}$|#j|$�q�W|jj#dj'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:RR2tQualifiedTargettsupport_targettinttlowerR=RtPBXAggregateTargett
AddDependencytConvertVariablesToShellSyntaxtjointEncodePOSIXShellListtPBXShellScriptBuildPhaseR#ttest_runnert_propertiestRootGroupsTakeOverOnlyChildrent
SortGroupsR!tinsert(%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-nodejs8/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dependenciesttargetProxytremoteGlobalIDStringRnsRun %s TestsRRNROi(R9RfR_RR2RdR/t
isinstanceRRhRWthasattrRXRnR!R1RiRotindexRrt_other_pbxprojectstkeystAddOrGetProjectReferencetSortRemoteProductReferencesR8t
ComputeIDstEnsureNoIDCollisions(RARstxcode_target_to_target_dicttbf_tgtttgt_nameRJR�R�t
all_run_teststpbxtdstpbxtdtpbxciptdependency_xcttrun_all_targetR�tidxtother_pbxproject((sQ//opt/alt/alt-nodejs8/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+R4tfdopenR8tPrinttcloseRkR:tfilecmptcmpR>R?tENOENTtunlinktumasktchmodtrenamet	ExceptionR;tshutiltrmtreeR=(RAt	output_fdtnew_pbxproj_pathtoutput_filetpbxproj_pathtsameRBR�((sQ//opt/alt/alt-nodejs8/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytWrite�s0




	(t__name__t
__module__RCR�R�R�(((sQ//opt/alt/alt-nodejs8/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-nodejs8/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	posixpathtbasenametsplitextRgtSourcesPhasetAddFiletFrameworksPhaseRa(	tsourcettypetpbxpRutsource_extensionstlibrary_extensionsR�troottext((sQ//opt/alt/alt-nodejs8/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytAddSourceToTargetscCs|j�j|�dS(N(tResourcesPhaseR�(tresourceR�Ru((sQ//opt/alt/alt-nodejs8/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytAddResourceToTargetscCs(dd|}|j�j||�dS(Ns{ATTRIBUTES = (%s, ); }tPrivatetPublic(R�R�(tHeadersPhaseR�(theaderR�Rut	is_publictsettings((sQ//opt/alt/alt-nodejs8/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-nodejs8/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-nodejs8/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_outputRkR�t
check_call(tdataRHtparamsR	t
build_fileR9tbuild_file_roottbuild_file_exttxcodeproj_pathtconfigt	arguments((sQ//opt/alt/alt-nodejs8/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}x@|D]8}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*<Wqjtk
rZ}$tjj |$d+|��qjXntjj!}#|jd,�}%|%dk	r�|%|d-<n|#|d.|d/|jd0�d1|jd2�d3|jd4��}&|j"d5|&�|&||<|||&<|jd6g�}'|jd7g�}(d})| d(kr�|'s7|(r�t|�}*i|*d$6|d8d6}+|%rr|%d8|+d-<ntjj!|+d.|�})|j"d5|)�|&j#|)�n|)|&_$d'},x�|'D]�}-|-jd9�}.|.r�d:tjj%|.�}.nd;}.tjj&|-d<�}/tjj'|.�}0tjj'|/�}1d;}2|0rQ|2|0d=7}2n|2d>|1d?7}2tjj(i|-d@dA6dB|-dCdDd6|-dEdF6|2dG6d'dH6�}3|)r�|)j"dI|3�n!|&j)dIj*|,|3�|,dJ},t|-jdKt��r)x(|-dED]}4t+|4| ||&�q	Wnt|-jdLt��r�x%|-dED]}4t,|4||&�qLWq�q�W|!r�|jdMg�}5ng}5i}6x�|(D]�}7|7|6|7dN<g}8g}9g}:g};x�|7jdOg�D]�}<t-j.|<�\}=}>t-j|>�\}?}@i|?dP6|@dQ6|>dR6|<dS6|=dT6}Ag}BxC|7jdEg�D]/}4t/|4|A�}C|Bj|C�|j0|C�qLW|8j|B�|9j1|B�t|7jdKt��r�x$|BD]}4t+|4| ||&�q�Wn|<|5k}D|Dst|7jdLt��r&x!|BD]}4t,|4||&�q	Wn|7jd9�}.|.r_tjj%|.�}.t/|.|A�}.n|:j|.�tjj&|7d<�}/t/|/|A�}-|;j|-�q�Wt2|9�d'kr�dUt3j4dVdWdX||7dYf�}Etjj	|
|j|E�}Ft5|FdZ�}G|Gj6d[�xgt7d't2|8��D]P}H|8|Hd'}C|Ht2|8�dJkr\	d;}Ind\}I|Gj6d]|C|If�q)	Wx�t8|7dO|8|:|;�D]�\}<}J}.}-|Gj6d=�g}Kx�t7d't2|J��D]s}H|J|H}C|Hd'kr�	d;}Lnd^}L|Gj6d_|L|Cf�t-j9|C�}M|Mr�	|M|Kkr�	|Kj|M�q�	q�	W|Gj6d`�|<g}N|Nj1|7jd@g��xct7d't2|N��D]L}O|N|O}P|Ot2|N�dJkr�
d;}Ind\}I|Gj6d]|P|If�q�
Wt2|K�d'kr
|Gj6dadbj	|K��n|.r'|Gj6dc|.�n|Gj6dd|-�q�	W|Gj:�de|E}2tjj(idf|7dYdDd6|2dG6d'dH6�}3|)r�|)j"dI|3�q�|&j)dIj*|,|3�|,dJ},nd@dgg}Q|	r�g|QD]}R|Rj;dh�s�|R^q�}Qnx8|QD]0}Sx'|7j|Sg�D]}T|j0|T�qWqWq�Wxb|jdig�D]N}Ut-j|U�\}V}W|WdJ|6kr�t+|U| ||&�qO|j0|U�qOW|!r0
xS|5D]K}Xt-j|X�\}Y}Z|ZdJ|6kr�t,|X||&�q�|j0|X�q�Wx0|jdjg�D]}[t<|[||&t�q
Wn|!sB
| dkru
x0|jdkg�D]}[t<|[||&t�qU
Wni}\x�|jdlg�D]�}]|]dm}^|^d'd�kr�
dp|^}^n|\j|^d�}_|_dkr1tjj=idq|]dmd6d.|&�}_|_j>|^�|&j)dIj*|,|_�|_|\|^<nx|]drD]}`|_j?|`�q<Wq�
W|	s�xQdidMdkdjgD]:}a|adh}bx'|j|bg�D]}T|j0|T�q�WqpWnd@dgdEdsg}Q|	r�g|QD]}R|Rj;dh�s�|R^q�}Qnxg|jd6g�D]S}-xJ|QD]B}Sx9|-j|Sg�D]%}T|Tj@dt�s-|j0|T�q-q-WqWqWx�|jdug�D]w}ctjj&|cd<�}1d>|1d?}2tjj(idvgdA6dw|cdxdDd6|2dG6d'dH6�}3|&j"dI|3�qqWdy|kr;x@|dyD]1}d|&j#||d�|)r|)j#||d�qqWndz|kr�x{|dzD]l}e|&jA�j?|e�t-j9|e�}f|ftBkrR|&jCtD�s�|f|&jEtD�krR|&jFtD|f�qRqRWnx4|D],}|d|}g|&jG|�}hx*|gjd{g�D]}i|hjFd||i�qWx*|gjd}g�D]}i|hjFd~|i�q/Wd|gkr�x1|gdD]"}jtH|j�}k|hjFd�|k�q`Wnd�|gkr�x1|gd�j�D]\}l}m|hjI|l|m�q�Wnd�|gkr�|j0|gd��}n|hjJ|n�q�q�Wq�Wg}ox9|j�D]+\}}|j;d�r|oj|�qqWx"|oD]}|
|jK||�qIWx"|oD]}|
|jL||�qnWx|oD]}|
|jM�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 %st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(RGRH(NR_R=R�R`R4R+R�R�RRkR*R1R$R8tSetXcodeVersionRWRRtPBXGrouptAppendChildtAddOrGetFileByPathR:R2tParseQualifiedTargetR�tsortedR�RXR)RftPBXNativeTargettKeyErrortExceptionAppendRhR#RiRetEncodePOSIXShellArgumentRlRjRmRoRrR�R�R�tsplitRRatextendR!R�R�topenR[txrangetzipR5R�tendswithR�tPBXCopyFilesBuildPhasetSetDestinationR�t
startswithR�txcode_standard_library_dirstHasBuildSettingt_library_search_paths_vartGetBuildSettingtAppendBuildSettingRcRR\RbR�R�R�(pttarget_listttarget_dictsR
RR	Rtparallel_buildsRttproject_versiontskip_excluded_filestxcode_projectsRR9RRRtxcpR�t
main_grouptbuild_groupt
included_fileRsR�R�RIRJtspecR%R'R&t_typesttarget_propertiesR�t	is_bundlettype_bundle_keyt
xctarget_typeRBttarget_product_nameRutspec_actionst
spec_rulestsupport_xcttsupport_xccltsupport_target_propertiestprebuild_indexRRR1t
action_stringt
message_shtaction_string_shR�R�toutputttgt_mac_bundle_resourcestrules_by_exttruletconcrete_outputs_by_rule_sourcetconcrete_outputs_alltmessagesR/trule_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_defineRwRxRytbuild_files((sQ//opt/alt/alt-nodejs8/root/usr/lib/python2.7/site-packages/gyp/generator/xcode.pytGenerateOutputas�
	
		





	







		
		

$






		
	


	
	
		



+



	



+









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