
nZc        
   @   s
  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 6d d 6d d	 6d d
 6d d 6d d 6d e d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d d 6d e d 6d d  6Z d! d" d# g Z d$ d% d& d' d! d" d# d( d) d* g
 Z d! d" d# g Z e a e d+ d, g  Z d-   Z d. e f d/     YZ d0   Z d1   Z d2   Z e	 j d3  Z d4   Z  e	 j d5  Z! d6   Z" d7   Z# d8   Z$ d9   Z% d S(:   iNt   INTERMEDIATE_DIRt   SHARED_INTERMEDIATE_DIRt   LIBRARY_SEARCH_PATHSt    t   EXECUTABLE_PREFIXt   EXECUTABLE_SUFFIXt   libt   STATIC_LIB_PREFIXt   SHARED_LIB_PREFIXs   .at   STATIC_LIB_SUFFIXs   .dylibt   SHARED_LIB_SUFFIXs   $(%s)t   mact   OSs   $(BUILT_PRODUCTS_DIR)t   PRODUCT_DIRt   LIB_DIRs   $(INPUT_FILE_BASE)t   RULE_INPUT_ROOTs   $(INPUT_FILE_SUFFIX)t   RULE_INPUT_EXTs   $(INPUT_FILE_NAME)t   RULE_INPUT_NAMEs   $(INPUT_FILE_PATH)t   RULE_INPUT_PATHs   $(INPUT_FILE_DIRNAME)t   RULE_INPUT_DIRNAMEs   $(CONFIGURATION)t   CONFIGURATION_NAMEt   mac_bundle_resourcest   mac_framework_headerst   mac_framework_private_headerst   ios_app_extensiont   ios_watch_appt   ios_watchkit_extensiont
   mac_bundlet   mac_xctest_bundlet   mac_xcuitest_bundlet#   xcode_create_dependents_test_runners   $(SDKROOT)/usr/libs   $(SDKROOT)/usr/local/libc         C   s   t  j j i g  d 6 } t |   d k r7 d g }  n  x7 |  D]/ } t  j j i | d 6 } | j d |  q> W| j d |  d  | S(   Nt   buildConfigurationsi    t   Defaultt   namet   defaultConfigurationName(   t   gypt   xcodeproj_filet   XCConfigurationListt   lent   XCBuildConfigurationt   AppendPropertyt   SetProperty(   t   configuration_namest   xcclt   configuration_namet   xcbc(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   CreateXCConfigurationListd   s    t   XcodeProjectc           B   s,   e  Z d    Z d   Z d   Z d   Z RS(   c         C   s   | |  _  | |  _ t j j d |  |  _ t j j t j j	 t j j
 |  j    t j j	 |  pf d  } |  j j d |  t j j i |  j d 6 |  _ | |  _ t |  _ y t j |  j  t |  _ Wn+ t k
 r } | j t j k r   q n Xd  S(   Nt   patht   .t   projectDirPatht
   rootObject(   t   gyp_pathR0   R#   R$   t
   PBXProjectt   projectt   commont   RelativePatht   ost   dirnamet   abspathR)   t   XCProjectFilet   project_filet   build_file_dictt   Falset   created_dirt   makedirst   Truet   OSErrort   errnot   EEXIST(   t   selfR4   R0   R>   R2   t   e(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   __init__q   s     					c   %   	   C   s[  g  } xt |  j  j d  D]` } | j d  } | j d  } x9 | D]1 } | j d  } | | k rD | j |  qD qD Wq Wy# t |  } |  j  j d |  Wn! t j j d |  j    n X| j	 t
 d  | j	 t d  x9 |  j j d i   j   D] \ }	 }
 | j	 |	 |
  q Wd	 |  j k rX|  j  j |  j d	  } | j |  n  |  j j d
 i   } | r x | D] } | j | i   } | rz| j |  } x6 | j d i   j   D] \ }	 }
 | j	 |	 |
  qWd	 | k r|  j  j | | d	  } | j |  qqzqzWn  g  } g  } g  } g  } t } g  } x|  j d D]} | d } | d } t j j |  j | |  } | | } | |  j  j d k st  | j |  | j |  | j r| j | j  | j | j  n  t | j d t   s| j |  n  | j   d k r6t } n  | j d  rRt |  } t j j i d | d 6| j d  d 6| d 6d |  j  } | j |  | d } d } | j d  r| d t j j | j d   } n  | j d  rG| d j  g  | j d  j   D]( \ } } d | t j j |  f ^ q d } n  d }  | r\d }  n  | d |  d t j j t j j! | j d    } t j j" i | d 6d d 6 }! | j# d  |!  | j |  | j |  | | _$ qRqRWt% |  j  j d  t% |  t% |  k st  | |  j  j d <|  j  j& t  |  j  j'   t% |  d! k r| rt |  } t j j i | d 6d" d 6d |  j  }" x | D] } |" j |  qW|  j  j d j( d |"  n  t% |  d! k rWt |  } t j j i | d 6d# d 6d |  j  }# x | D] }$ |# j |$  q#W|  j  j d j( d! |#  n  d  S($   Nt   targetst   buildConfigurationListR   R!   s   Problem with gyp file %s
s,   $(PROJECT_DERIVED_FILE_DIR)/$(CONFIGURATION)s*   $(SYMROOT)/DerivedSources/$(CONFIGURATION)t   xcode_settingst   xcode_config_filet   configurationst   target_namet   toolsett   suppress_wildcardt   allt   run_ass   Run t   productNamet   parentR   t   working_directorys   cd "%s"
t   environments   
s   export %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:]))" s   exec s
   %s
exit 1
t   actiont   shellScripti    t   showEnvVarsInLogt   buildPhasesi   t   Alls   Run All Tests()   R6   t   GetPropertyt   appendR.   R)   t   syst   stderrt   writeR4   t   SetBuildSettingt   _intermediate_vart   _shared_intermediate_varR>   t   gett	   iteritemst   AddOrGetFileInRootGroupt   SetBaseConfigurationt   ConfigurationNamedR?   R#   R7   t   QualifiedTargett   _propertiest   AssertionErrort   support_targett   intt   lowerRB   R$   t   PBXAggregateTargett   AddDependencyt   ConvertVariablesToShellSyntaxt   joint   EncodePOSIXShellListt   PBXShellScriptBuildPhaseR(   t   test_runnerR&   t   RootGroupsTakeOverOnlyChildrent
   SortGroupst   insert(%   RF   t   xcode_targetst   serialize_all_testsRM   t   xctR+   t   xcbcsR-   R!   t   xckt   xcvt
   config_reft   build_file_configurationst   config_namet   build_file_configuration_namedt   xcct   ordinary_targetst   run_test_targetst   support_targetsRI   t   has_custom_allt   targets_for_allt   targetRN   RO   t   qualified_targett   xcode_targett
   run_targett   commandt   scriptt   keyt   valt   command_prefixt   ssbpt
   all_targett   run_all_tests_targett   run_test_target(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt	   Finalize1   s    		(		


	
		

	X		 	
	
c         C   s  x~|  j  d D]o} t | j d d   r | d } | d } t j j |  j | |  } | | } t | t j j	  r}g  } | j
 d  }	 xN |	 D]F }
 |
 j
 d  } | j
 d  } t | d	  r | j | j  q q Wt |  d k rzt j j	 i d
 | d 6| d 6d |  j } x | D] } | j |  q&W|  j j d j |  } |  j j d j | d |  qzq}q q Wx* |  j j j   D] } |  j j |  qW|  j j   |  j j   |  j j   d  S(   NRI   R   i    RN   RO   t   dependenciest   targetProxyt   remoteGlobalIDStringRu   s   Run %s TestsR!   RS   RT   i   (   R>   Rm   Rd   R#   R7   Ri   R4   t
   isinstanceR$   Ro   R\   t   hasattrR]   Ru   R&   R6   Rp   Rj   t   indexRx   t   _other_pbxprojectst   keyst   AddOrGetProjectReferencet   SortRemoteProductReferencesR=   t
   ComputeIDst   EnsureNoIDCollisions(   RF   Ry   t   xcode_target_to_target_dictt   bf_tgtt   tgt_nameRO   R   R   t   all_run_testst   pbxtdst   pbxtdt   pbxcipt   dependency_xctt   run_all_targetR   t   idxt   other_pbxproject(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt	   Finalize2j  s:    



+c         C   sZ  t  j d d d d d |  j  \ } } y t j | d  } |  j j |  | j   t j j |  j d  } t	 } y t
 j | | t	  } Wn+ t k
 r } | j t j k r   q n X| r t j |  nA t j d  } t j |  t j | d	 | @ t j | |  Wn@ t k
 rUt j |  |  j rOt j |  j t  n    n Xd  S(
   Nt   suffixs   .tmpt   prefixs   project.pbxproj.gyp.t   dirt   wbs   project.pbxproji?   i  (   t   tempfilet   mkstempR0   R9   t   fdopenR=   t   Printt   closeRr   R?   t   filecmpt   cmpRC   RD   t   ENOENTt   unlinkt   umaskt   chmodt   renamet	   ExceptionR@   t   shutilt   rmtreeRB   (   RF   t	   output_fdt   new_pbxproj_patht   output_filet   pbxproj_patht   sameRG   R   (    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   Write  s0    

	(   t   __name__t
   __module__RH   R   R   R   (    (    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyR/   p   s   			?c   	      C   s   d d d d d d d d g } d	 d
 d d g } t  j |   } t  j |  \ } } | rm | d j   } n  | | k r | d k r | j   j |   n; | | k r | d k r | j   j |   n | j |   d  S(   Nt   ct   cct   cppt   cxxt   mt   mmt   st   swiftt   at   dylibt	   frameworkt   oi   t   none(   t	   posixpatht   basenamet   splitextRn   t   SourcesPhaset   AddFilet   FrameworksPhaseRf   (	   t   sourcet   typet   pbxpR{   t   source_extensionst   library_extensionsR   t   roott   ext(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   AddSourceToTarget  s    c         C   s   | j    j |   d  S(   N(   t   ResourcesPhaseR   (   t   resourceR   R{   (    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   AddResourceToTarget  s    c         C   s(   d d | } | j    j |  |  d  S(   Ns   {ATTRIBUTES = (%s, ); }t   Privatet   Public(   R   R   (   t   HeadersPhaseR   (   t   headerR   R{   t	   is_publict   settings(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   AddHeaderToTarget  s    s   (\$\((.*?)\))c         C   s   t  j |   } | d k r |  S| j   xT | D]L } | \ } } | | k rT q0 n  | | } t j t j |  | |   }  q0 W|  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_ret   findallt   Nonet   reverset   ret   subt   escape(   t   stringt
   expansionst   matchest   matcht
   to_replacet   variablet   replacement(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   ExpandXcodeVariables  s    


"s   ([\\\"\' ])c         C   s   t  j t d |   S(   s  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).s   \\\1(   R   R   t   _xcode_define_re(   R   (    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   EscapeXcodeDefine.  s    c         C   s   | d } xy |  j    D]k \ } } t j j |  \ } } | d k rM q n  | | j d } | j r t j j | j |  } q q WxI | D]A }	 d d | g }
 |
 d |	 g 7}
 d |	 |
 f GHt j |
  q Wd  S(   Nt   optionss   .gyps
   .xcodeprojt
   xcodebuilds   -projects   -configurations   Building [%s]: %s(	   Re   R9   R0   R   R   t   generator_outputRr   t
   subprocesst
   check_call(   t   dataRM   t   paramsR   t
   build_fileR>   t   build_file_roott   build_file_extt   xcodeproj_patht   configt	   arguments(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   PerformBuild6  s    
	c         C   s  |  d j  } |  j d  d k r t j j |  d j p; d  } |  j d i   j d d  } t j j t j j | |   } t j j t j j | | d   } nE t j j t j j | d	   } t j j t j j | | d
   } i | d 6| d 6a d  S(   NR   t   flavort   ninjaR1   t   generator_flagst
   output_dirt   outs   gypfiles-xcode-ninjaR  t   gypfilest   toplevelt   qualified_out_dir(	   t   toplevel_dirRd   R9   R0   t   relpathR  t   normpathRr   t   generator_filelist_paths(   R  R  t   generator_dirR  R  (    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   CalculateGeneratorInputInfoH  s    !!c   z      C   s  | j  d  d k } | rB t j j |  | | |  \ }  } } n  | d } | j  d i   } | j  d t  } | j  d t  } | j  d d   }	 |	 r t |	  }	 x# t |	  d k  r d	 |	 }	 q Wn  | j  d
 t  }
 i  } xZ| j   D]L\ } } t	 j
 j |  \ } } | d k r(q n  | | j d } | j r]t	 j
 j | j |  } n  t | | |  } | | | <| j } i  } | rd | d <n  |	 r|	 | d <|	 | d <|	 | d <n  | j d |  | j  d  s | j d  } t j j i d d 6 } | j |  x% | d D] } | j | t  q!Wq q Wi  } i  } x|  D]} t j j |  \ } } } | | } | d d k rt d |   n  | d g } x: t | d j    D]" } | | k r| j |  qqW| | } | j } t |  } i d d 6d d  6d! d" 6d# d$ 6d% d& 6d' d( 6d) d* 6d+ d, 6d- d. 6d/ d0 6d1 d2 6d3 d4 6d5 d6 6d% d7 6}  i | d8 6| d 6}! | d9 }" t | j  d: d;   }# t | j  d< d;   }$ t | j  d= d;   p|# }% t | j  d> d;   }& t | j  d? d;   }' t | j  d@ d;   }( |" dA k rw|" }) |$ ri|) dB 7}) |" d  k s&t  dC |   n |# r|) dD 7}) |" d  k s&t  dE |   n |& r|% st  dF |   |) dG 7}) ne |' r|% st  dH |   |) dI 7}) n< |( r|% st  dJ |   |) dK 7}) n |% r&|) dL 7}) n  t j j! }* y |  |) |! dM <Wqt" k
 rs}+ t j j# |+ dN |    qXnQ t j j$ }* |% st  dO |   |$ st  dP |   |# st  dQ |   | j  dR  }, |, d  k	 r|, |! dS <n  |* |! dT | dU | j  dV  dW | j  dX  dY | j  dZ  }- | j% d[ |-  |- | | <| | |- <| j  d\ g   }. | j  d] g   }/ d  }0 |" dA k r!|. s|/ r!| r!t |  }1 | j  d^ d_  }2 i |1 d8 6| |2 d 6}3 |, r|, d_ |3 dS <n  t j j$ |3 dT | }0 | j% d[ |0  |- j& |0  n  |0 |- _' d; }4 x|. D]}5 |5 j  d`  }6 |6 rkda t j j( |6  }6 n db }6 t j j) |5 dc  }7 t j j* |6  }8 t j j* |7  }9 db }: |8 r|: |8 dd 7}: n  |: de |9 df 7}: t j j+ i |5 dg dh 6di |5 dj dk d 6|5 dl dm 6|: dn 6d; do 6 }; |0 r<|0 j% dp |;  n! |- j, dp j- |4 |;  |4 dq }4 t |5 j  dr t   rx( |5 dl D] }< t. |< |" | |-  qWn  t |5 j  ds t   r7x% |5 dl D] }< t/ |< | |-  qWq7q7W|% r| j  dt g   }= n g  }= i  }> x|/ D]}? |? |> |? du <g  }@ g  }A g  }B g  }C x|? j  dv g   D]}D t0 j1 |D  \ }E }F t0 j |F  \ }G }H i |G dw 6|H dx 6|F dy 6|D dz 6|E d{ 6}I g  }J xC |? j  dl g   D]/ }< t2 |< |I  }K |J j |K  | j3 |K  q	W|@ j |J  |A j4 |J  t |? j  dr t   rO
x$ |J D] }< t. |< |" | |-  q/
Wn  |D |= k }L |L sy
t |? j  ds t   r
x! |J D] }< t/ |< | |-  q
Wn  |? j  d`  }6 |6 r
t j j( |6  }6 t2 |6 |I  }6 n  |B j |6  t j j) |? dc  }7 t2 |7 |I  }5 |C j |5  qQ	Wt |A  d; k r7d| t5 j6 d} d~ d | |? d f  }M t	 j
 j | | j
 |M  }N t7 |N d  }O |O j8 d  xg t9 d; t |@   D]P }P |@ |P d; }K |P t |@  dq k rdb }Q n d }Q |O j8 d |K |Q f  qWxt: |? dv |@ |B |C  D]\ }D }R }6 }5 |O j8 dd  g  }S x t9 d; t |R   D]s }P |R |P }K |P d; k rndb }T n d }T |O j8 d |T |K f  t0 j; |K  }U |U rI|U |S k rI|S j |U  qIqIW|O j8 d  |D g }V |V j4 |? j  dg g    xc t9 d; t |V   D]L }W |V |W }X |W t |V  dq k r4db }Q n d }Q |O j8 d |X |Q f  qWt |S  d; k r|O j8 d d j |S   n  |6 r|O j8 d |6  n  |O j8 d |5  qW|O j<   d |M }: t j j+ i d |? d dk d 6|: dn 6d; do 6 }; |0 r|0 j% dp |;  q7|- j, dp j- |4 |;  |4 dq }4 n  dg d g }Y |
 rtg  |Y D] }Z |Z j= d  sP|Z ^ qP}Y n  x8 |Y D]0 }[ x' |? j  |[ g   D] }\ | j3 |\  qWq{Wq	Wxb | j  d g   D]N }] t0 j |]  \ }^ }_ |_ dq |> k rt. |] |" | |-  q| j3 |]  qW|% rxS |= D]K }` t0 j |`  \ }a }b |b dq |> k rct/ |` | |-  q%| j3 |`  q%Wx0 | j  d g   D] }c t> |c | |- t  qWn  |% s|" d$ k rx0 | j  d g   D] }c t> |c | |- t  qWn  i  }d x | j  d g   D] }e |e d }f |f d; d k r2d |f }f n  t |e j  d d;   }g d |g }h |d j  |f d   }i |i d  k rt j j? i d |e d d 6dT |- }i |i j@ |f  |- j, dp j- |4 |i  |i |d |f <n  x" |e d D] }j |i jA |j |h  qWqW|
 sMxQ d dt d d g D]: }k |k d }l x' | j  |l g   D] }\ | j3 |\  q/WqWn  dg d dl d g }Y |
 rg  |Y D] }Z |Z j= d  sl|Z ^ ql}Y n  xg | j  d\ g   D]S }5 xJ |Y D]B }[ x9 |5 j  |[ g   D]% }\ |\ jB d  s| j3 |\  qqWqWqWx | j  d g   D]w }m t j j) |m dc  }9 de |9 df }: t j j+ i d g dh 6d |m d dk d 6|: dn 6d; do 6 }; |- j% dp |;  qWd | k rx@ | d D]1 }n |- j& | |n  |0 r|0 j& | |n  qqWn  d | k rax{ | d D]l }o |- jC   jA |o  t0 j; |o  }p |p tD k r|- jE tF  sG|p |- jG tF  k r|- jH tF |p  qqWn  x| D]} | d | }q |- jI |  }r x* |q j  d g   D] }s |r jH d |s  qWx* |q j  d g   D] }s |r jH d |s  qWx^ |q j  d g   D]J }p |p tD k r|r jE tF  s/|p |r jG tF  k r|r jH tF |p  qqWd |q k rx1 |q d D]" }t tJ |t  }u |r jH d |u  q]Wn  d |q k rx1 |q d j   D] \ }v }w |r jK |v |w  qWn  d |q k rh| j3 |q d  }x |r jL |x  qhqhWqUWg  }y x9 | j   D]+ \ } } | j= d  r|y j |  qqWx" |y D] } | | jM | |  qFWx" |y D] } | | jN | |  qkWx |y D] } | | jO   qWd  S(   NR  R  R   R  t   xcode_parallel_buildst   xcode_serialize_all_test_runst#   xcode_upgrade_check_project_versioni   t   0t   xcode_list_excluded_filess   .gyps
   .xcodeprojt   YESt!   BuildIndependentTargetsInParallelt   LastUpgradeCheckt   LastTestingUpgradeCheckt   LastSwiftUpdateCheckt
   attributest
   standalonet	   mainGroupt   BuildR!   t   included_filesRO   R   s:   Multiple toolsets not supported in xcode build (target %s)t   default_configurationRM   s   com.apple.product-type.toolt
   executables   com.googlecode.gyp.xcode.bundlet   loadable_modules&   com.apple.product-type.library.dynamict   shared_librarys%   com.apple.product-type.library.statict   static_librarys'   com.apple.product-type.kernel-extensiont   mac_kernel_extensions"   com.apple.product-type.applications   executable+bundles   com.apple.product-type.bundles   loadable_module+bundles'   com.apple.product-type.bundle.unit-tests   loadable_module+xctests(   com.apple.product-type.bundle.ui-testings   loadable_module+xcuitests    com.apple.product-type.frameworks   shared_library+bundles$   com.apple.product-type.app-extensions   executable+extension+bundles)   com.apple.product-type.watchkit-extensions!   executable+watch+extension+bundles+   com.apple.product-type.application.watchapps   executable+watch+bundles   mac_kernel_extension+bundleRJ   R   R   i    R   R   R   R   R   R   s	   +xcuitestsF   mac_xcuitest_bundle targets must have type loadable_module (target %s)s   +xctestsD   mac_xctest_bundle targets must have type loadable_module (target %s)s6   ios_app_extension flag requires mac_bundle (target %s)s   +extension+bundles;   ios_watchkit_extension flag requires mac_bundle (target %s)s   +watch+extension+bundles2   ios_watch_app flag requires mac_bundle (target %s)s   +watch+bundles   +bundlet   productTypes/   -- unknown product type while writing target %ss6   mac_bundle targets cannot have type none (target "%s")s?   mac_xcuitest_bundle targets cannot have type none (target "%s")s=   mac_xctest_bundle targets cannot have type none (target "%s")t   product_nameRS   RT   t   force_outdirt   product_dirt   force_prefixt   product_prefixt   force_extensiont   product_extensionRI   t   actionst   rulest   support_target_suffixs    Supportt   messages   echo note: R   RW   s   
s   exec s   
exit 1
t   inputst
   inputPathss   Action "t   action_namet   "t   outputst   outputPathsRX   RY   RZ   i   t   process_outputs_as_sourcest'   process_outputs_as_mac_bundle_resourcesR   t	   extensiont   rule_sourcest   INPUT_FILE_BASEt   INPUT_FILE_SUFFIXt   INPUT_FILE_NAMEt   INPUT_FILE_PATHt   INPUT_FILE_DIRNAMEs   %s.makes   [^a-zA-Z0-9_]t   _s   %s_%st	   rule_nameR   s   all: \
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 xcrun make -f "${PROJECT_FILE_PATH}/%s" -j "${JOB_COUNT}"
exit 1
s   Rule "t   inputs_excludedt	   _excludedt   sourcesR   R   t   copiest   destinationt   /t   $s   $(SRCROOT)/t   xcode_code_signs#   {ATTRIBUTES = (CodeSignOnCopy, ); }s   Copy to t   filest   outputs_excludeds   $(BUILT_PRODUCTS_DIR)/t
   postbuildss(   $(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)s   Postbuild "t   postbuild_nameR   t	   librariest   mac_framework_dirst   FRAMEWORK_SEARCH_PATHSt   include_dirst   HEADER_SEARCH_PATHSt   library_dirst   definest   GCC_PREPROCESSOR_DEFINITIONSRK   RL   (   RS  RT  (   Ns#   {ATTRIBUTES = (CodeSignOnCopy, ); }(P   Rd   R#   t   xcode_ninjat   CreateWrapperRB   R   t   strR&   Re   R9   R0   R   R   R  Rr   R/   R6   R)   R\   R$   t   PBXGroupt   AppendChildt   AddOrGetFileByPathR?   R7   t   ParseQualifiedTargetR   t   sortedR   R]   R.   Rm   Rk   t   PBXNativeTargett   KeyErrort   ExceptionAppendRo   R(   Rp   Rl   t   EncodePOSIXShellArgumentRs   Rq   Rt   Rj   Rx   R   R   R   t   splitR   Rf   t   extendR   R   t   openR`   t   xranget   zipR:   R   t   endswithR   t   PBXCopyFilesBuildPhaset   SetDestinationR   t
   startswithR   t   xcode_standard_library_dirst   HasBuildSettingt   _library_search_paths_vart   GetBuildSettingt   AppendBuildSettingRh   R   Ra   Rg   R   R   R   (z   t   target_listt   target_dictsR  R  t   ninja_wrapperR   R  t   parallel_buildsRz   t   upgrade_check_project_versiont   skip_excluded_filest   xcode_projectsR  R>   R  R	  R
  t   xcpR   t   project_attributest
   main_groupt   build_groupt   included_fileRy   R   R   RN   RO   t   specR*   R,   R+   t   _typest   target_propertiesR   t	   is_xctestt   is_xcuitestt	   is_bundlet   is_app_extensiont   is_watchkit_extensiont   is_watch_appt   type_bundle_keyt   xctarget_typeRG   t   target_product_nameR{   t   spec_actionst
   spec_rulest   support_xctt   support_xcclR;  t   support_target_propertiest   prebuild_indexRW   R<  t   action_stringt
   message_sht   action_string_shR   R   t   outputt   tgt_mac_bundle_resourcest   rules_by_extt   rulet   concrete_outputs_by_rule_sourcet   concrete_outputs_allt   messagesR9  t   rule_sourcet   rule_source_dirnamet   rule_source_basenamet   rule_source_roott   rule_source_extt   rule_input_dictt%   concrete_outputs_for_this_rule_sourcet   concrete_outputt   was_mac_bundle_resourcet   makefile_namet   makefile_patht   makefilet   concrete_output_indext   eolt   concrete_outputst   concrete_output_dirst   bolt   concrete_output_dirt   prerequisitest   prerequisite_indext   prerequisitet   groupst   xt   groupt   itemR   t   source_roott   source_extensionR   t   resource_roott   resource_extensionR   t
   pbxcp_dictt
   copy_groupt   destt	   code_signR   t   pbxcpt   fileR   t   excluded_keyt	   postbuildt
   dependencyt   libraryt   library_dirt   configurationR-   t   include_dirt   definet
   set_defineR}   R~   R   t   build_files(    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   GenerateOutput\  s   '
	
	



	
















				
$
			
		
		

+

	
+
(&   R   t
   gyp.commonR#   t   gyp.xcodeproj_filet   gyp.xcode_ninjaRD   R9   R^   R   R   R   R  R   Rb   Rc   Ry  t   generator_default_variablest"   generator_additional_path_sectionst+   generator_additional_non_configuration_keyst!   generator_extra_sources_for_rulesR   R  t	   frozensetRw  R.   t   objectR/   R   R   R   t   compileR   R   R   R   R  R  R  (    (    (    s7   /usr/lib/python2.7/dist-packages/gyp/generator/xcode.pyt   <module>   s   
				 |							