
    "Kb                        d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl	Z	d dl
Z
d dlZd dlZd dlZd dlZdZdZdZi ddddd	d
dd
ddddddez  ddddddddddddddddddez  d d!Zg d"Zg d#Zg d"Zda ed$d%g      Zd& Z G d' d(e      Zd) Zd* Zd+ Z ej>                  d,      Z d- Z! ej>                  d.      Z"d/ Z#d0 Z$d1 Z%d2 Z&y)3    )print_functionNINTERMEDIATE_DIRSHARED_INTERMEDIATE_DIRLIBRARY_SEARCH_PATHSEXECUTABLE_PREFIX EXECUTABLE_SUFFIXSTATIC_LIB_PREFIXlibSHARED_LIB_PREFIXSTATIC_LIB_SUFFIXz.aSHARED_LIB_SUFFIXz.dylibz$(%s)OSmacPRODUCT_DIRz$(BUILT_PRODUCTS_DIR)LIB_DIRRULE_INPUT_ROOTz$(INPUT_FILE_BASE)RULE_INPUT_EXTz$(INPUT_FILE_SUFFIX)RULE_INPUT_NAMEz$(INPUT_FILE_NAME)RULE_INPUT_PATHz$(INPUT_FILE_PATH)RULE_INPUT_DIRNAMEz$(INPUT_FILE_DIRNAME)CONFIGURATION_NAMEz$(CONFIGURATION))mac_bundle_resourcesmac_framework_headersmac_framework_private_headers)
ios_app_extensionios_watch_appios_watchkit_extension
mac_bundler   r   r   mac_xctest_bundlemac_xcuitest_bundle#xcode_create_dependents_test_runnerz$(SDKROOT)/usr/libz$(SDKROOT)/usr/local/libc                    t         j                  j                  dg i      }t        |       dk(  rdg} | D ]5  }t         j                  j	                  d|i      }|j                  d|       7 |j                  d| d          |S )NbuildConfigurationsr   DefaultnamedefaultConfigurationName)gypxcodeproj_fileXCConfigurationListlenXCBuildConfigurationAppendPropertySetProperty)configuration_namesxcclconfiguration_namexcbcs       5/usr/lib/python3/dist-packages/gyp/generator/xcode.pyCreateXCConfigurationListr4   f   s    				/	/1F0K	L$	"$+/ 522"4$ %D-t45 -/B1/EF	+    c                   $    e Zd Zd Zd Zd Zd Zy)XcodeProjectc                    || _         || _        t        j                  j	                  |      | _        t        j                  j                  t        j                  j                  t        j                  j                  | j                               t        j                  j                  |      xs d      }| j
                  j                  d|       t        j                  j                  d| j
                  i      | _        || _        d| _        	 t        j                   | j                         d| _        y # t"        $ r(}|j$                  t$        j&                  k7  r Y d }~y d }~ww xY w)N)path.projectDirPath
rootObjectFT)gyp_pathr9   r(   r)   
PBXProjectprojectcommonRelativePathosdirnameabspathr.   XCProjectFileproject_filebuild_file_dictcreated_dirmakedirsOSErrorerrnoEEXIST)selfr=   r9   rG   r;   es         r3   __init__zXcodeProject.__init__s   s   DMDI%%00d0;DLZZ,,)GH.5#7N 	LL-~>((,)EF 	*D
 Dkk$))d 	
ELL	  
!s   &D; ;	E,E''E,c                    g }| j                   j                  d      D ]R  }|j                  d      }|j                  d      }|D ])  }|j                  d      }||vs|j                  |       + T 	 t        |      }| j                   j	                  d|       |j                  t        d       |j                  t        d       | j                  j                  di       j                         D ]  \  }	}
|j                  |	|
        d	| j                  v r9| j                   j                  | j                  d	         }|j!                  |       | j                  j                  d
i       }|r|D ]  }|j                  |i       }|s|j#                  |      }|j                  di       j                         D ]  \  }	}
|j                  |	|
        d	|v sh| j                   j                  ||   d	         }|j!                  |        g }g }g }g }d}g }| j                  d   D ]  }|d   }|d   }t$        j&                  j)                  | j                  ||      }||   }|| j                   j*                  d   v sJ |j                  |       |j                  |       |j,                  r6|j                  |j,                         |j                  |j,                         t/        |j                  dd            s|j                  |       |j1                         dk(  rd}|j                  d      st        |      }t$        j2                  j5                  d|z   |j                  d      |d| j                         }|j7                  |       |d   }d}|j                  d      r4|dt$        j2                  j9                  |j                  d            z  z   }|j                  d      rk|dj;                  |j                  d      j                         D cg c]+  \  }}d|dt$        j2                  j9                  |      d- c}}      z   dz   }d} |rd} |dz   | z   d t$        j2                  j9                  t$        j&                  j=                  |j                  d!                  z  z   }t$        j2                  j?                  |d"d#      }!|jA                  d$|!       |j                  |       |j                  |       ||_!         tE        | j                   j*                  d         tE        |      tE        |      z   k(  sJ || j                   j*                  d<   | j                   jG                  d       | j                   jI                          tE        |      d%kD  r||szt        |      }t$        j2                  j5                  |d&d'| j                         }"|D ]  }|"j7                  |        | j                   j*                  d   jK                  d"|"       tE        |      d%kD  r{t        |      }t$        j2                  j5                  |d(d'| j                         }#|D ]  }$|#j7                  |$        | j                   j*                  d   jK                  d%|#       y y #  t
        j                  j                  d| j                  z          xY wc c}}w ))NtargetsbuildConfigurationListr$   r&   zProblem with gyp file %s
z,$(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION)z*$(SYMROOT)/DerivedSources/$(CONFIGURATION)xcode_settingsxcode_config_fileconfigurationsFtarget_nametoolsetsuppress_wildcardallTrun_aszRun productName)r&   r[   rR   parentr   working_directoryzcd "%s"
environment
zexport z=""zpython -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:]))" exec z
%s
exit 1
actionr   )shellScriptshowEnvVarsInLogbuildPhases   AllrR   r&   zRun All Tests)&r?   GetPropertyappendr4   r.   sysstderrwriter=   SetBuildSetting_intermediate_var_shared_intermediate_varrG   getitemsAddOrGetFileInRootGroupSetBaseConfigurationConfigurationNamedr(   r@   QualifiedTarget_propertiessupport_targetintlowerr)   PBXAggregateTargetAddDependencyConvertVariablesToShellSyntaxjoinEncodePOSIXShellListPBXShellScriptBuildPhaser-   test_runnerr+   RootGroupsTakeOverOnlyChildren
SortGroupsinsert)%rM   xcode_targetsserialize_all_testsrU   xctr0   xcbcsr2   r&   xckxcv
config_refbuild_file_configurationsconfig_namebuild_file_configuration_namedxccordinary_targetsrun_test_targetssupport_targetsrQ   has_custom_alltargets_for_alltargetrV   rW   qualified_targetxcode_target
run_targetcommandscriptkeyvalcommand_prefixssbp
all_targetrun_all_tests_targetrun_test_targets%                                        r3   	Finalize1zXcodeProject.Finalize1   s   
 N||''	2 &__56d45e &$'~%



%&&&~6d
ll7>" 	*GI1EG ((,,-=rBHHJ %S
3$%d222<<77


2
35j

+ $ 4 4 8 89I2 N ' 1+%))+r: 	')''4#8<<=M=?AAF*hc3S)* !$BB==)+67JKMJ$$Z01* O G N
 O&&y1 N.=)ky!g33DMM;4;="#34l T\\55i@@@@nn\"l+		$	$|::;|223/78|,					% 
H	 )8''::(.(<(4(@(@(O(,<
 << ; !
 	  .";;*+K%%CC{{#6799 9& ;;}%DII  '{{=9??AC#s 3%%CCCHJ CD D GKK& -  '!N2^##AAZZ44W[[5JKM6M M !!::"("#<  	!!-6 	z"
+#- ]N.f t||''	23	
c/223 3 3 +2DLLY' 	LL//5 	LL ?a&~6d%%88&*&+  9 j $ )&  () lly)00J? q &~6d //BB&*&5  C  . </**?;<
 lly)004HI !	jj3dmmCDhCs   4'Z< $0[.</[+c                 j   | j                   d   D ]  }t        |j                  dd            s |d   }|d   }t        j                  j                  | j                  ||      }||   }t        |t        j                  j                        sg }|j                  d      }	|	D ]L  }
|
j                  d      }|j                  d      }t        |d	      s2|j                  |j                         N t        |      dkD  st        j                  j                  d
|z  |d| j                        }|D ]  }|j!                  |        | j                  j"                  d   j%                  |      }| j                  j"                  d   j'                  |dz   |        | j                  j(                  j+                         D ]  }| j                  j-                  |        | j                  j/                          | j0                  j3                          | j0                  j5                          y )NrQ   r"   r   rV   rW   dependenciestargetProxyremoteGlobalIDStringr   zRun %s Tests)r&   r[   r\   rg   )rG   rz   rr   r(   r@   rw   r=   
isinstancer)   r|   rj   hasattrrk   r   r+   r?   r}   rx   indexr   _other_pbxprojectskeysAddOrGetProjectReferenceSortRemoteProductReferencesrF   
ComputeIDsEnsureNoIDCollisions)rM   r   xcode_target_to_target_dictbf_tgttgt_namerW   r   r   all_run_testspbxtdspbxtdpbxcipdependency_xctrun_all_targetr   idxother_pbxprojects                    r3   	Finalize2zXcodeProject.Finalize2l  s    &&y1 P	VZZ=qA	B-(#::55dmm6>I$%56lC$6$6$I$IJ-++N;& ?e&&}5F#//0FGN~}5"">#=#=>	? !# //BB!/(!:!)D ||	 C %N
 $1 <**?;< ,,**95;;LICLL$$Y/66sQwO=PJ !LL;;@@B >
ll++,<=> 	LL,,. 	  " 	**,r5   c                 D   t        j                  dd| j                        \  }}	 t        j                  |d      }| j
                  j                  |       |j                          t        j                  j                  | j                  d      }d}	 t        j                  ||d      }|rt        j                  |       y t        j                  d      }t        j                  |       t        j                   |d| z         t        j"                  ||       y # t        $ r(}|j                  t        j                  k7  r Y d }~d }~ww xY w# t$        $ rC t        j                  |       | j&                  r t)        j*                  | j                  d	        w xY w)
Nz.tmpzproject.pbxproj.gyp.)suffixprefixdirwzproject.pbxprojF?   i  T)tempfilemkstempr9   rB   fdopenrF   Printcloser   filecmpcmprJ   rK   ENOENTunlinkumaskchmodrename	ExceptionrH   shutilrmtree)rM   	output_fdnew_pbxproj_pathoutput_filepbxproj_pathsamerN   r   s           r3   WritezXcodeProject.Write  sL   $ 	/E!YY	( "Y *IIi-k
k*WW\\$))->?ld{{<)95A
 
 			"# 

!5E6>2
		"L1/  77ell"
 #2   	ii !			dii&s>   A-E D ,E AE 	E(EE EE AFN)__name__
__module____qualname__rO   r   r   r    r5   r3   r7   r7   r   s    .`JD=-~?r5   r7   c                 ^   g d}g d}t        j                  |       }t        j                  |      \  }}|r|dd  j                         }||v r%|dk7  r |j	                         j                  |        y ||v r%|dk7  r |j                         j                  |        y |j                  |        y )N)ccccppcxxmmmsswift)adylib	frameworkorg   none)	posixpathbasenamesplitextr{   SourcesPhaseAddFileFrameworksPhasert   )	sourcetypepbxpr   source_extensionslibrary_extensionsr   rootexts	            r3   AddSourceToTargetr     s     I 8'(""8,+4
ab'--/C$&.v&
  TV^!!&) 	  (r5   c                 B    |j                         j                  |        y )N)ResourcesPhaser   )resourcer   r   s      r3   AddResourceToTargetr     s     x(r5   c                 T    dd|   z  }|j                         j                  | |       y )Nz{ATTRIBUTES = (%s, ); })PrivatePublic)HeadersPhaser   )headerr   r   	is_publicsettingss        r3   AddHeaderToTargetr    s-     ')>y)II(VX.r5   z(\$\((.*?)\))c                     t         j                  |       }|dk(  r| S |j                          |D ];  }|\  }}||vr||   }t        j                  t        j
                  |      ||       } = | S )a  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)_xcode_variable_refindallreverseresubescape)string
expansionsmatchesmatch
to_replacevariablereplacements          r3   ExpandXcodeVariablesr    s|     &&v.'_M	// @e"Zz!X&KVVBIIj);?F@ 
-r5   z([\\\"\' ])c                 8    t        j                  t        d|       S )a  We must escape the defines that we give to XCode so that it knows not to
     split on spaces and to respect backslash and quote literals. However, we
     must not quote the define, or Xcode will incorrectly intepret variables
     especially $(inherited).z\\\1)r  r	  _xcode_define_re)r   s    r3   EscapeXcodeDefiner  0  s    
 
 '1	--r5   c                    |d   }| j                         D ]v  \  }}t        j                  j                  |      \  }}|dk7  r.||j                  z   dz   }|j
                  sMt        j                  j                  |j
                  |      }x |D ]4  }	ddg}
|
d|	gz  }
t        d|	d|
       t        j                  |
       6 y )	Noptions.gyp
.xcodeproj
xcodebuildz-projectz-configurationz
Building [z]: )
rs   rB   r9   r   r   generator_outputr   print
subprocess
check_call)datarU   paramsr  
build_filerG   build_file_rootbuild_file_extxcodeproj_pathconfig	argumentss              r3   PerformBuildr'  8  s    9'%)ZZ\ N!j/(*(8(8(D%_n$w~~5DNww||G$<$<nMnN  %fz>:I"F++I	
34)$	%r5   c                    | d   j                   }| j                  d      dk(  rt        j                  j	                  | d   j
                  xs d      }| j                  di       j                  dd      }t        j                  j                  t        j                  j                  ||            }t        j                  j                  t        j                  j                  ||d            }n{t        j                  j                  t        j                  j                  |d	            }t        j                  j                  t        j                  j                  ||d
            }||day )Nr  flavorninjar:   generator_flags
output_diroutzgypfiles-xcode-ninjar  gypfiles)toplevelqualified_out_dir)	toplevel_dirrr   rB   r9   relpathr  normpathr   generator_filelist_paths)r   r/  generator_dirr,  r0  s        r3   CalculateGeneratorInputInfor6  J  s   I++(ZZW$GGOOF9$5$F$F$M#NM-r266|UKJ!!"'',,}j"IJJ((*4*6 7 !!"'',,x"FGJ((*j** +
 ,r5   c                 #   |j                  d      dk(  }|r&t        j                  j                  | |||      \  } }}|d   }|j                  di       }|j                  dd      }|j                  dd      }|j                  dd       }	|	r-t	        |	      }	t        |	      d	k  rd
|	z   }	t        |	      d	k  r|j                  dd       }
i }|j                         D ]1  \  }}t        j                  j                  |      \  }}|dk7  r/||j                  z   dz   }|j                  r*t        j                  j                  |j                  |      }t        |||      }|||<   |j                  }i }|rd|d<   |	r|	|d<   |	|d<   |	|d<   |j                  d|       |j                  d      r|j!                  d      }t        j"                  j%                  ddi      }|j'                  |       |d   D ]  }|j)                  |d        4 i }i }| D ]  }t        j*                  j-                  |      \  }}}||   }|d   dk7  rt/        d|z        |d   g}t1        |d   j3                               D ]  }||vs|j5                  |        ||   }|j                  }t7        |      }dd d!d"d#d$d%d&d'd(d)d*d+d#d,} ||d-}!|d.   }"t9        |j                  d/d0            }#t9        |j                  d1d0            }$t9        |j                  d2d0            xs |#xs |$}%t9        |j                  d3d0            }&t9        |j                  d4d0            }'t9        |j                  d5d0            }(|"d6k7  r|"})|$r|)d7z  })|"d8k(  scJ d9|z         |#r|)d:z  })|"d8k(  sMJ d;|z         |&r|%s
J d<|z         |)d=z  })n/|'r|%s
J d>|z         |)d?z  })n|(r|%s
J d@|z         |)dAz  })n|%r|)dBz  })t        j"                  j:                  }*	 | |)   |!dC<   n>t        j"                  j@                  }*|%r
J dE|z         |$r
J dF|z         |#r
J dG|z         |j                  dH      },|,|,|!dI<    |*|!||j                  dJ      |j                  dK      |j                  dL      M      }-|jC                  dN|-       |-||<   |||-<   |j                  dOg       }.|j                  dPg       }/d }0|"d6k7  ry|.s|/ru|sst7        |      }1|j                  dQdR      }2|1||2z   d-}3|,r|,dRz   |3dI<   t        j"                  jA                  |3|S      }0|jC                  dN|0       |-jE                  |0       |0|-_#        d0}4|.D ]  }5|5j                  dT      }6|6r#dUt        j*                  jI                  |6      z   }6ndV}6t        j*                  jK                  |5dW         }7t        j"                  jM                  |6      }8t        j"                  jM                  |7      }9dV}:|8r|:|8dXz   z  }:|:dY|9z   dZz   z  }:t        j"                  jO                  |5d[   d\|5d]   z   d^z   |5d_   |:d0d`      };|0r|0jC                  da|;       n$|-jP                  da   jS                  |4|;       |4dbz   }4t9        |5j                  dcd            r|5d_   D ]  }<tU        |<|"||-        t9        |5j                  ddd            sp|5d_   D ]  }<tW        |<||-         |%r|j                  deg       }=ng }=i }>|/D ]  }?|?|>|?df   <   g }@g }Ag }Bg }C|?j                  dgg       D ]  }DtY        jZ                  |D      \  }E}FtY        j                  |F      \  }G}H|G|H|F|D|Edh}Ig }J|?j                  d_g       D ]0  }<t]        |<I      }KJj5                  |K       |j_                  |K       2 @j5                  J       Aja                  |J       t9        |?j                  dcd            rJD ]  }<tU        |<|"||-        D|=v }L|Lst9        |?j                  ddd            rJD ]  }<tW        |<||-        |?j                  dT      }6|6r+t        j*                  jI                  |6      }6t]        |6I      }6Bj5                  |6       t        j*                  jK                  |?dW         }7t]        |7I      }5Cj5                  |5        t        A      d0kD  rditc        jd                  djdk|dk|?dl         z  }Mt        j                  j                  ||   j                  |M      }Ntg        |Ndm      }O|Oji                  dn       tk        @      D ]7  \  }P}Q|Qd0   }K|Pt        @      dbz
  k(  rdV}Rndo}ROji                  dpKRdX       9 tm        |?dg   @BC      D ]L  \  }D}S}6}5Oji                  dX       g }Ttk        |S      D ]S  \  }P}K|Pd0k(  rdV}Undp}UOji                  UKdq       tY        jn                  |K      }V|Vs>VTvsCTj5                  V       U Oji                  dr       Dg}W|Wja                  |?j                  d[g              tk        |W      D ]2  \  }X}Y|Xt        W      dbz
  k(  rdV}Rndo}ROji                  dpYRdX       4 t        T      d0kD  r#Oji                  dsdtj                  T      z         |6rOji                  du|6z         Oji                  dv|5z         O Ojq                          dwMz  }:t        j"                  jO                  |?dg   dx|?dl   z   d^z   A|:d0d`      };|0r|0jC                  da|;       n$|-jP                  da   jS                  |4|;       |4dbz   }4d[dyg}Z|
r!ZD [cg c]  }[|[js                  dz      r[ }Z}[ZD ]*  }\|?j                  |\g       D ]  }]|j_                  |]        ,  |j                  d{g       D ]A  }^tY        j                  |^      \  }_}`|`dbd  |>vrtU        ^|"||-       1|j_                  ^       C |%rj|=D ]@  }atY        j                  |a      \  }b}c|cdbd  |>vrtW        a||-       0|j_                  a       B |j                  d|g       D ]  }dtu        |d||-d        |%s|"d}k(  r%|j                  d~g       D ]  }dtu        |d||-d        i }e|j                  dg       D ]  }f|fd   }g|gd0   dvrdgz   }gt9        fj                  dd0            }hd|h   }iej                  gd       }j|j^t        j"                  jw                  ddfd   z   i|-S      }j|jjy                  g       |-jP                  da   jS                  |4|j       |je|g<   fd   D ]  }kjj{                  |ki         |
s4dD ]/  }l|ldzz   }m|j                  |mg       D ]  }]|j_                  |]        1 g d}Z|
r!ZD [cg c]  }[|[js                  dz      r[ }Z}[|j                  dOg       D ]C  }5ZD ]<  }\|5j                  |\g       D ]%  }]|]j}                  d      r|j_                  ]       ' > E |j                  dg       D ]l  }nt        j*                  jK                  |ndW         }9dY|9z   dZz   }:t        j"                  jO                  dgd|nd   z   d^z   |:d0d      };|-jC                  da|;       n d|v r5|d   D ]-  }o|-jE                  ||o          |0s|0jE                  |o          / d|v r|d   D ]  }p|-j                         j{                  |p       tY        jn                  |p      }q|qt        vs@|-j                  t              rq|-j                  t              vsm|-j                  t        q        |D ]X  }|d   |   }r|-j                  |      }s|rj                  dg       D ]  }tsj                  d|t        rj                  dg       D ]  }tsj                  d|t        rj                  dg       D ]N  }q|qt        vssj                  t              rqsj                  t              vs9sj                  t        q       P drv r'rd   D ]  }ut        |u      }vsj                  d|v       ! drv r-rd   j                         D ]  \  }w}xsj                  |w|x        drv s4|j_                  rd         }ysj                  |y       [  g }z|j                         D ](  \  }}|js                  d      szj5                  |       * zD ]  }||   j                  ||        zD ]  }||   j                  ||        zD ]  }||   j                           y # t<        $ r)}+t        j*                  j?                  |+dD|z          d }+~+ww xY wc c}[w c c}[w )Nr)  r*  r  r+  xcode_parallel_buildsTxcode_serialize_all_test_runs#xcode_upgrade_check_project_version   0xcode_list_excluded_filesr  r  YES!BuildIndependentTargetsInParallelLastUpgradeCheckLastTestingUpgradeCheckLastSwiftUpdateCheck
attributes
standalone	mainGroupr&   Buildincluded_filesFrW   r   z:Multiple toolsets not supported in xcode build (target %s)default_configurationrU   zcom.apple.product-type.toolzcom.googlecode.gyp.xcode.bundlez&com.apple.product-type.library.dynamicz%com.apple.product-type.library.staticz'com.apple.product-type.kernel-extensionz"com.apple.product-type.applicationzcom.apple.product-type.bundlez'com.apple.product-type.bundle.unit-testz(com.apple.product-type.bundle.ui-testingz com.apple.product-type.frameworkz$com.apple.product-type.app-extensionz)com.apple.product-type.watchkit-extensionz+com.apple.product-type.application.watchapp)
executableloadable_moduleshared_librarystatic_librarymac_kernel_extensionzexecutable+bundlezloadable_module+bundlezloadable_module+xctestzloadable_module+xcuitestzshared_library+bundlezexecutable+extension+bundlez!executable+watch+extension+bundlezexecutable+watch+bundlezmac_kernel_extension+bundleri   r   r    r   r!   r   r   r   r   r   z	+xcuitestrJ  zFmac_xcuitest_bundle targets must have type loadable_module (target %s)z+xctestzDmac_xctest_bundle targets must have type loadable_module (target %s)z6ios_app_extension flag requires mac_bundle (target %s)z+extension+bundlez;ios_watchkit_extension flag requires mac_bundle (target %s)z+watch+extension+bundlez2ios_watch_app flag requires mac_bundle (target %s)z+watch+bundlez+bundleproductTypez/-- unknown product type while writing target %sz6mac_bundle targets cannot have type none (target "%s")z?mac_xcuitest_bundle targets cannot have type none (target "%s")z=mac_xctest_bundle targets cannot have type none (target "%s")product_namer[   product_dirproduct_prefixproduct_extension)r]   force_outdirforce_prefixforce_extensionrQ   actionsrulessupport_target_suffixz Supportr\   messagezecho note: r   rc   r`   rb   z
exit 1
inputszAction "action_namera   outputs)
inputPathsr&   outputPathsrd   re   rf   rg   process_outputs_as_sources'process_outputs_as_mac_bundle_resourcesr   	extensionrule_sources)INPUT_FILE_BASEINPUT_FILE_SUFFIXINPUT_FILE_NAMEINPUT_FILE_PATHINPUT_FILE_DIRNAMEz%s.makez[^a-zA-Z0-9_]_	rule_namer   zall: \
z \z    z \
z    : \
z	@mkdir -p "%s"
z" "z	@echo note: %s
z	%s
zJOB_COUNT="$(/usr/sbin/sysctl -n hw.ncpu)"
if [ "${JOB_COUNT}" -gt 4 ]; then
  JOB_COUNT=4
fi
exec xcrun make -f "${PROJECT_FILE_PATH}/%s" -j "${JOB_COUNT}"
exit 1
zRule "inputs_excluded	_excludedsourcesr   rL  r   copiesdestination)/$z$(SRCROOT)/xcode_code_sign)Nz#{ATTRIBUTES = (CodeSignOnCopy, ); }zCopy to files)rl  r   r   r   )rZ  rj  r\  outputs_excludedz$(BUILT_PRODUCTS_DIR)/
postbuildsz($(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)zPostbuild "postbuild_name)r]  r&   rd   re   r   	librariesmac_framework_dirsFRAMEWORK_SEARCH_PATHSinclude_dirsHEADER_SEARCH_PATHSlibrary_dirsdefinesGCC_PREPROCESSOR_DEFINITIONSrS   rT   )Lrr   r(   xcode_ninjaCreateWrapperstrr+   rs   rB   r9   r   r   r  r   r7   r?   r.   rj   r)   PBXGroupAppendChildAddOrGetFileByPathr@   ParseQualifiedTargetr   sortedr   rk   r4   rz   PBXNativeTargetKeyErrorExceptionAppendr|   r-   r}   ry   EncodePOSIXShellArgumentr   r~   r   rx   r   r   r   r   splitr  rt   extendr  r	  openrn   	enumerateziprC   r   endswithr  PBXCopyFilesBuildPhaseSetDestinationr   
startswithr   xcode_standard_library_dirsHasBuildSetting_library_search_paths_varGetBuildSettingAppendBuildSettingrv   r  ro   ru   r   r   r   ){target_listtarget_dictsr  r   ninja_wrapperr  r+  parallel_buildsr   upgrade_check_project_versionskip_excluded_filesxcode_projectsr!  rG   r"  r#  r$  xcpr   project_attributes
main_groupbuild_groupincluded_filer   r   r   rV   rW   specr/   r1   r0   _typestarget_propertiesr   	is_xctestis_xcuitest	is_bundleis_app_extensionis_watchkit_extensionis_watch_apptype_bundle_keyxctarget_typerN   target_product_namer   spec_actions
spec_rulessupport_xctsupport_xcclrX  support_target_propertiesprebuild_indexrc   rY  action_string
message_shaction_string_shr   r   outputtgt_mac_bundle_resourcesrules_by_extruleconcrete_outputs_by_rule_sourceconcrete_outputs_allmessagesrV  rule_sourcerule_source_dirnamerule_source_basenamerule_source_rootrule_source_extrule_input_dict%concrete_outputs_for_this_rule_sourceconcrete_outputwas_mac_bundle_resourcemakefile_namemakefile_pathmakefileconcrete_output_indexconcrete_output_by_rule_sourceeolconcrete_outputsconcrete_output_dirsbolconcrete_output_dirprerequisitesprerequisite_indexprerequisitegroupsxgroupitemr   source_rootsource_extensionr   resource_rootresource_extensionr   
pbxcp_dict
copy_groupdest	code_signr  pbxcpfiler   excluded_key	postbuild
dependencylibrarylibrary_dirconfigurationr2   include_dirdefine
set_definer   r   r   build_filess{                                                                                                                              r3   GenerateOutputr  ^  s   **X&'1-%%k<vN &[, 9'JJ0"5/#''(?F/94@  ?F   #$'(E$F!
+
,q
0&),I&I# +
,q
0 

94
@@ .%)ZZ\ =!j/(*(8(8(D%_n$w~~5DNww||G$<$<nMn
z>?
CC!$N:;;D @E<=$/L+,
' 23 ( /0\#56 |,##K0j&&//0ABk[)*+;< =-&&}e<=9=> - "% p	.

''(89 'Zg ()DI("
F
    789$T*:%;%@%@%BC 7	#6	6""#567 
$C;;D %%89D &C%F%M%L%N%I%D%N%O%G%K
5
7%N!F( !% +
 <DDHH0!45Idhh4a89KDHH\1-.J)J{I488$7;<)A1 EFtxx34Lv~o	;&(( 	)'(	)( 9$(( 	)'(	)(  	) '( 	)y..  	) '( 	)y44 	) '( 	)y?*9$((88m+1/+B-( ((;;m 
B
]  
K
_  
I
] ((>2&)<&
)$%)XXm%<%)XX.>%?(,1D(EGC 		3'&)M"#'+$88Ir*L'2&J K v~<:}./BCl-11
!:/ #/"-0E"E# 
*, 	"-0 


/
/0I7; 0 =  )[1	$ %CN  41 

9%g	#**"E"Eg"NN jj55fX6FGm %%CCGLj++II f	*t## **\99f88 *!66<!),! !: d 
""=$7
 	&--ndC'!+ 
VZZ4e<	=Y' 	5F
FD$
4	5 
VZZA5I	JY' 	1F
fdC
0	1g41p !%*@"!E!#H L b-(,l4$%8 )+%
   hg."5 :+OOK( 	21 34 	,	?  0.3* 3
 13-hhy"- 
	8F 1I/
/
6
6
G 
&
&
7
	8 	(..1	3##$IJ txx4e<== 7ffdD#67
 #.1I"I"BEJK= 3fc23 ((9%JJ77@'(/B'  

77XG%m_Evu:x 
!	"Q	& "BFFSk4;L#M%O O^J%?%D%D%24 s+ 	{#56	@A!#A ;1=/"c*I&JQ&NNCC
..#>
?	@ ^$&E'#.	,<[*GV ..

 "$
()?4#_$)ccNN#?@"+"3"3O"D##+??"))*=>? ..
& '--


txx"5
62;M2J ?. ,!S%7!%;;ccNN<=>? %&*NN/ ::&:;< =
 NN/'9:
..F*
+].	,` 	  	 !!:: 0k!22S81#"#<  

$
$]D
9
 //-
(
/
/
E)A-. +,f	#C1::k+B!CC -%HHUB' 	-D

&
&t
,	--Ab-J ((9b) -(1(:(:6(B%{$	!"	\	1 	&$c2$$V,- . 1(.7.@.@.J+*ab!5
hc
2

&
&x
01 HH<bA 4&&$U34
 D,,HH4b9 3&&$T23 Jhhx, &
&d	a
	"t#jnn%6:;i>yIh
 nnT4(e	""99j:m#<<;  :  	T" 	&--neD 
4W% &$dH%&5&< 3 -#[(HH\2. 	-D

&
&t
,	-- JF!AaK)@AfA((9b) / /%JJub) 	/D !9:((.		/// XXlB/ .	8889LM))L8f 88EF!I.>$??#E! !	: d 
-.8 ^, ?*-
34 

#
#M*$=
>? d+& I'%%g.  ''099##$=>s223LMM

 
 !:K
HI 2 .+,-?@m##$67d&**+?D G+ 8+FG&**>2> D+ 5{CD&**>2> J+99$$%>?t334MNN

!
!";[
I	J 
m	##I. 	NF(0*

!
!"@*
M	N 
]	*%&67==? 	)HC


sC
(	)		-11-.0
!!*-/.sp	.d +%)ZZ\ %!j/6"$%   Mj:((8KLM   Fj:(()DFF   'j:$$&'Q  

""1 '79D'E 	F~ DX Bs;   
AF>AF6AF6AF;*AF;F	AF3F
$AF.F.AF3)'
__future__r   r   
gyp.commonr(   gyp.xcodeproj_filegyp.xcode_ninjarK   rB   rl   r   r  r   r  r   rp   rq   r  generator_default_variables"generator_additional_path_sections+generator_additional_non_configuration_keys!generator_extra_sources_for_rulesr4  	frozensetr  r4   objectr7   r   r   r  compiler  r  r  r  r'  r6  r  r   r5   r3   <module>r     s  
 &      	 
  	    '  5 2 rr u u	
 t x g 11  ( $  )!" *#$ )%& )'( /)* W'??+, *- 4& "/ +% !    ()  
	x6 xv)4)/  RZZ 01 4 2::n- .%$(x
'r5   