Ë ¼/Ð%¹‡=ãó*—dZddlmZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddlm Z dadadd„ZGd„de«Zd„ZGd „d e«ZGd „d e«Zd „Zd„Zd„Zd„Zd„Zd„Zd„Z dd„Zd„Zd„Zd„Z dd„Z!dd„Z"d„Z#d„Z$d„Z%y)z~ This module contains classes that help to emulate xcodebuild behavior on top of other build systems, such as make and ninja. é)Úprint_functionN)ÚGypErrorcó—d|i}|r||d<|S)zConstructs a dictionary with expansion for $(ARCHS_STANDARD) variable, and optionally for $(ARCHS_STANDARD_INCLUDING_64_BIT).ú$(ARCHS_STANDARD)ú"$(ARCHS_STANDARD_INCLUDING_64_BIT)©)ÚarchsÚarchs_including_64_bitÚmappings ú8/usr/lib/python3.12/site-packages/gyp/xcode_emulation.pyÚXcodeArchsVariableMappingr !s!€ð! %Ð (€'ÙØ4J€GÐ 0Ñ1Ø €.ócóL—eZdZdZej d«Zd„Zd„Zd„Z d„Z y)ÚXcodeArchsDefaultzüA class to resolve ARCHS variable from xcode_settings, resolving Xcode macros and implementing filtering by VALID_ARCHS. The expansion of macros depends on the SDKROOT used ("macosx", "iphoneos", "iphonesimulator") and on the version of Xcode. z\$\([a-zA-Z_][a-zA-Z0-9_]*\)$có*—|f|_|||dœ|_y)N)ÚmacÚiosÚiossim)Ú_defaultÚ_archs)ÚselfÚdefaultrÚiphonesimulatorÚiphoneoss r Ú__init__zXcodeArchsDefault.__init__3s€Ø�J€D„MØ h¸/ÑJ€D…KrcóŒ—|j«}d|vr|jdSd|vr|jdS|jdS)zDReturns the dictionary of variable mapping depending on the SDKROOT.rrrrr)Úlowerr)rÚsdkroots r Ú_VariableMappingz"XcodeArchsDefault._VariableMapping7sJ€à�m‰m‹o€GØ�WÑØ �[‰[˜Ñ ÐØ ˜gÑ %Ø �[‰[˜Ñ "Ð"à �[‰[˜Ñ Ðrcó0—|j|«}g}|D]Y}|jj|«r&|} ||}|D]}||vsŒ|j|«ŒŒD||vsŒI|j|«Œ[|S#t$r}t d|z«Yd}~Œzd}~wwxYw)z=Expands variables references in ARCHS, and remove duplicates.z,Warning: Ignoring unsupported variable "%s".N)rÚvariable_patternÚmatchÚappendÚKeyErrorÚprint) rr rÚvariable_mappingÚexpanded_archsÚarchÚvariableÚvariable_expansionÚes r Ú _ExpandArchszXcodeArchsDefault._ExpandArchsAs±€à×,Ñ,¨WÓ5ÐØ€NÛˆØ × Ñ × $Ñ $ TÔ *؈ð KØ/°Ñ9Ð Û(ˆdؘ>Ò)Ø×#Ñ# DÕ)ñ)ð �~Ò %Ø×јdÕ#ðð Ðøô ò KÜ Ð>ÀÑI× JÑ Jûð Kús·A4ÁA4Á4 BÁ=BÂBcó”—|j|xs |j|xsd«}|r!g}|D]}||vsŒ|j|«Œ|}|S)zÀExpands variables references in ARCHS, and filter by VALID_ARCHS if it is defined (if not set, Xcode accept any value in ARCHS, otherwise, only values present in VALID_ARCHS are kept).Ú)r,rr#)rr Ú valid_archsrr'Úfiltered_archsr(s r Ú ActiveArchszXcodeArchsDefault.ActiveArchsSsX€ð×&Ñ& uÒ'=°· ± ¸wº}È"ÓM€NÙØ€nÛ ˆ$Ø �;Ò Ø × Ñ  Õ %ð!ð&€nØ ÐrN) Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚreÚcompiler!rrr,r1rrr rr)s0„ñð �R—Z‘ZÐ @ÓAÐòKò òó$ rrc óš—trtSt«\}}|dkr2tdtdg«tdg«tdg««atS|dkr;tdtdgdg«tdgddg«tddggd ¢««atStdtdgdg«tddgddg«tgd ¢gd ¢««atS) aèReturns the |XcodeArchsDefault| object to use to expand ARCHS for the installed version of Xcode. The default values used by Xcode for ARCHS and the expansion of the variables depends on the version of Xcode used. For all version anterior to Xcode 5.0 or posterior to Xcode 5.1 included uses $(ARCHS_STANDARD) if ARCHS is unset, while Xcode 5.0 to 5.0.2 uses $(ARCHS_STANDARD_INCLUDING_64_BIT). This variable was added to Xcode 5.0 and deprecated with Xcode 5.1. For "macosx" SDKROOT, all version starting with Xcode 5.0 includes 64-bit architecture as part of $(ARCHS_STANDARD) and default to only building it. For "iphoneos" and "iphonesimulator" SDKROOT, 64-bit architectures are part of $(ARCHS_STANDARD_INCLUDING_64_BIT) from Xcode 5.0. From Xcode 5.1, they are also part of $(ARCHS_STANDARD). All thoses rules are coded in the construction of the |XcodeArchsDefault| object to use depending on the version of Xcode detected. The object is for performance reason.Ú0500rÚi386Úarmv7Ú0510rÚx86_64Úarmv7s)r;r>Úarm64)ÚXCODE_ARCHS_DEFAULT_CACHEÚ XcodeVersionrr )Ú xcode_versionÚ_s r ÚGetXcodeArchsDefaultrDasï€õ*Ü $Ð$Ü!“^Ñ€-�Ø�VÒÜ 1ØÜ! 6 (Ó+Ü! 6 (Ó+Ü! 7 )Ó,ó !.Ðô* #Ð"ð!�vÒÜ 1Ø,Ü! 8 *¨x¨jÓ9Ü! 6 (¨V°XÐ,>Ó?Ü!Ø �hÐ Ú (ó *ó !+Ðô #Ð"ô!2ØÜ! 8 *¨x¨jÓ9Ü! 6¨8Ð"4°v¸xÐ6HÓIÜ!Ú (Ú (ó *ó !+Ðô #Ð"rcóø—eZdZdZiZiZiZiZiZd„Z d„Z d„Z d„Z dMd„Z d„Zd „Zd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d „Z&d!„Z'd"„Z(d#„Z)d$„Z*d%„Z+d&„Z,d'„Z-d(„Z.d)„Z/d*„Z0dMd+„Z1dMd,„Z2d-„Z3d.„Z4dMd/„Z5d0„Z6d1„Z7d2„Z8d3„Z9d4„Z:d5„Z;d6„Zd9„Z?d:„Z@dMd;„ZAd<„ZBd=„ZCdMd>„ZDdMd?„ZEd@„ZFdA„ZG dNdC„ZHdD„ZIdE„ZJgdBfdF„ZKdMdG„ZLdMdH„ZMdI„ZNdJ„ZOdMdK„ZPdL„ZQy)OÚ XcodeSettingsz9A class that understands the gyp 'xcode_settings' object.cót—||_d|_d|_d|_i|_|d}|j «D]\\}}|j di«|j|<|j|«|j|j dd«sŒVd|_Œ^d|_tjd«|_ y)NFÚconfigurationsÚxcode_settingsÚIPHONEOS_DEPLOYMENT_TARGETTz^lib([^/]+)\.(a|dylib)$) ÚspecÚisIOSÚmac_toolchain_dirÚheader_map_pathrIÚitemsÚgetÚ_ConvertConditionalKeysÚ confignamer6r7Ú library_re)rrKÚconfigsrRÚconfigs r rzXcodeSettings.__init__£s¶€Ø€D„Ià€D„JØ!€DÔØ€DÔð €DÔØÐ#Ñ$€GØ%Ÿm™mžoш �FØ(.¯ © Ð3CÀRÓ(H€d×ј*Ñ%Ø ×"Ñ" :Ô.Ø × Ñ ˜ZÑ (× ,Ñ ,Ð-IØ-1õ 3àˆ� ð .ð€D„Oô—j‘jÐ!;Ó<€D…Orcó6—|j|}|D�cgc]}|jd«sŒ|‘Œ}}|D]_}|jd«r.|jd«r8|jd«d}||||<ntddj |««||=Œaycc}w) zÖConverts or warns on conditional keys. Xcode supports conditional keys, such as CODE_SIGN_IDENTITY[sdk=iphoneos*]. This is a partial implementation with some keys converted while the rest force a warning.Ú]z[sdk=iphoneos*]rÚ[rz4Warning: Conditional keys not implemented, ignoring:Ú N)rIÚendswithÚsplitr%Újoin)rrRÚsettingsÚkeyÚconditional_keysÚnew_keys r rQz%XcodeSettings._ConvertConditionalKeys½sž€ð×"Ñ" :Ñ.€HÙ'/ÓE¡x °3·<±<ÀÕ3Dš xÐÐEÛˆà �‰Ð'Ô (Ø × Ñ ˜zÔ *Ø—I‘I˜c“N 1Ñ%ˆ'Ø& s™mˆ(�7Ò ä ÐDØ�h‰hÐ'Ó(ô *à �3‰-ñ ùòFs ”B«BcóP—|jsJ‚|j|jS©N)rRrI©rs r Ú _SettingszXcodeSettings._SettingsÎs#€Ø �?Š?Ј?Ø × Ñ ˜tŸ™Ñ /Ð/rcóH—|j«j||«|k(Srb)rdrP)rÚtest_keyÚcond_keyrs r Ú_TestzXcodeSettings._TestÒs!€Ø �>‰>Ó × Ñ  ¨'Ó 2°hÑ >Ð>rNcóÆ—||j«vr/|j|t|j«|«z«y|r|j|t|«z«yyrb)rdr#Ústr)rÚlstrfÚ format_strrs r Ú_AppendfzXcodeSettings._AppendfÕsP€Ø�4—>‘>Ó#Ñ#Ø ‡j�j�œc $§.¡.Ó"2°8Ñ"<Ó=Ñ=Õ>Ù Ø ‡j�j�œc '›lÑ*Õ+ð rcóF—||j«vrtd|z«yy)Nz/Warning: Ignoring not yet implemented key "%s".)rdr%)rrfs r Ú_WarnUnimplementedz XcodeSettings._WarnUnimplementedÛs$€Ø�4—>‘>Ó#Ñ#Ü Ð =ÀÑ HÕIð$rcój—|jrdnd}|j|jd|«}|dk(S)NÚbinaryÚxmlÚINFOPLIST_OUTPUT_FORMAT)rLrIrP)rrRrÚformats r ÚIsBinaryOutputFormatz"XcodeSettings.IsBinaryOutputFormatßs;€ØŸ*š*‰h¨%€GØ × Ñ  Ñ ,× 0Ñ 0Ð1JØ18ó:€Fà �XÑ Ðrcóf—|jddk(xr|j«xr |jS)NÚtypeÚshared_library)rKÚ _IsBundlerLrcs r ÚIsIosFrameworkzXcodeSettings.IsIosFrameworkås3€Ø �9‰9�VÑ Ð 0Ñ 0ò °T·^±^Ó5Eò Ø � ‰ ðrcóš—t|jjdd««dk7xs"|j«xs|j «S)NÚ mac_bundler)ÚintrKrPÚ _IsXCTestÚ _IsXCUiTestrcs r ryzXcodeSettings._IsBundleésB€Ü ˆt�y‰y�}‰}˜\¨1Ó-Ó .°!Ñ 3ò °t·~±~Ó7Gò Ø ×ÑÓðrcóR—t|jjdd««dk7S)NÚmac_xctest_bundler©r}rKrPrcs r r~zXcodeSettings._IsXCTestíó"€Ü ˆt�y‰y�}‰}Ð0°!Ó4Ó 5¸Ñ :Ð:rcóR—t|jjdd««dk7S)NÚmac_xcuitest_bundlerr‚rcs r rzXcodeSettings._IsXCUiTestðs"€Ü ˆt�y‰y�}‰}Ð2°AÓ6Ó 7¸1Ñ <Љ>Ô ÐÐ Ø × #Ñ #Ð$7ÀÐ #Ó EÐErcó—|j«sJ‚|jddvrGdddœ|jd}|jd|¬«}d|jjd|«zS|jdd k(r^|j «s|j «rd|jjdd «zSd|jjdd «zSJd |jd›d |jd›d�«‚)z[Returns the bundle extension (.app, .framework, .plugin, etc). Only valid for bundles.rw©Úloadable_modulerxÚbundleÚ frameworkÚWRAPPER_EXTENSIONr’Ú.Úproduct_extensionÚ executableÚappexÚappzDon't know extension for 'z ', target 'Ú target_nameÚ')ryrKr“rPrˆr‹)rÚdefault_wrapper_extensionÚwrapper_extensions r ÚGetWrapperExtensionz!XcodeSettings.GetWrapperExtensions€ð �>‰>Ô ÐÐ Ø ‡y�y�ÑÐAÑAà#Ø%ñ#ð � ‰ �&Ññ#Ðð×2Ñ2Ø Ð'@ð3óBÐà �4—9‘9—=‘=Ð!4Ð6GÓHÑ HÐHØ �‰�6Ñ ˜lÒ *Ø × Ñ Ô " d×&BÑ&BÔ&DØ�T—Y‘Y—]‘]Ð#6¸Ó@Ñ@Ð@à�T—Y‘Y—]‘]Ð#6¸Ó>Ñ>Ð>ñ7Ø �)‰)�FÓ ˜TŸY™Y }Ó5ð7ó7ˆUrcóT—|jjd|jd«S)zReturns PRODUCT_NAME.Ú product_namer ©rKrPrcs r ÚGetProductNamezXcodeSettings.GetProductNames €à �9‰9�=‰=˜¨¯©°=Ñ)AÓ BÐBrcób—|j«r|j«S|j«S)zReturns FULL_PRODUCT_NAME.)ryÚGetWrapperNameÚ_GetStandaloneBinaryPathrcs r ÚGetFullProductNamez XcodeSettings.GetFullProductNames*€à ‡~�~ÔØ × Ñ Ó "Ð"à × *Ñ *Ó ,Ð,rcóh—|j«sJ‚|j«|j«zS)z`Returns the directory name of the bundle represented by this target. Only valid for bundles.)ryr¨r¤rcs r rªzXcodeSettings.GetWrapperName"s1€ð �>‰>Ô ÐÐ Ø × Ñ Ó  4×#;Ñ#;Ó#=Ñ =Ð=rcóX—|jr|j«S|j«sJ‚|jddk(r=tj j |j«d|j««Stj j |j«d«S)zŒReturns the qualified path to the bundle's contents folder. E.g. Chromium.app/Contents or Foo.bundle/Versions/A. Only valid for bundles.rwrxÚVersionsÚContents)rLrªryrKÚosÚpathr\r”rcs r ÚGetBundleContentsFolderPathz)XcodeSettings.GetBundleContentsFolderPath(sŒ€ð ‡z‚zØ × Ñ Ó "Ð"Ø �>‰>Ô ÐÐ Ø ‡y�y�ÑÐ,Ò,Ü �W‰W�\‰\Ø × Ñ Ó  ¨T×-EÑ-EÓ-GóIðIô�W‰W�\‰\˜$×-Ñ-Ó/°Ó <Љ>Ô ÐÐ Ø ‡z‚zØ × -Ñ -Ó /Ð/Ü �7‰7�<‰<˜×8Ñ8Ó:¸KÓ HÐHrcó—|j«sJ‚|jddvs |jr|j«S|jddvr.tj j |j«d«Sy)z|Returns the qualified path to the bundle's executables folder. E.g. Chromium.app/Contents/MacOS. Only valid for bundles.rwrx©r�r—ÚMacOSN)ryrKrLr³r±r²r\rcs r ÚGetBundleExecutableFolderPathz+XcodeSettings.GetBundleExecutableFolderPath=sq€ð �>‰>Ô ÐÐ Ø ‡y�y�ÑÐ-Ñ.°$·*²*Ø × -Ñ -Ó /Ð/Ø �‰�6Ñ Ð?Ñ ?Ü �W‰W�\‰\˜$×:Ñ:Ó<¸gÓ FÐFð @rcó‚—|j«sJ‚tjj|j «d«S)z‡Returns the qualified path to the bundle's Java resource folder. E.g. Chromium.app/Contents/Resources/Java. Only valid for bundles.ÚJava)ryr±r²r\r¶rcs r ÚGetBundleJavaFolderPathz%XcodeSettings.GetBundleJavaFolderPathFs2€ð �>‰>Ô ÐÐ Ü �7‰7�<‰<˜×4Ñ4Ó6¸Ó ?Ð?rcó‚—|j«sJ‚tjj|j «d«S)z€Returns the qualified path to the bundle's frameworks folder. E.g, Chromium.app/Contents/Frameworks. Only valid for bundles.Ú Frameworks©ryr±r²r\r³rcs r ÚGetBundleFrameworksFolderPathz+XcodeSettings.GetBundleFrameworksFolderPathLs2€ð �>‰>Ô ÐÐ Ü �7‰7�<‰<˜×8Ñ8Ó:¸LÓ IÐIrcó‚—|j«sJ‚tjj|j «d«S)z†Returns the qualified path to the bundle's frameworks folder. E.g, Chromium.app/Contents/SharedFrameworks. Only valid for bundles.ÚSharedFrameworksrÀrcs r Ú#GetBundleSharedFrameworksFolderPathz1XcodeSettings.GetBundleSharedFrameworksFolderPathRs7€ð �>‰>Ô ÐÐ Ü �7‰7�<‰<˜×8Ñ8Ó:Ø*ó ,ð,rcóÆ—|j«sJ‚|jddk(r|j«Stjj |j «d«S)z‡Returns the qualified path to the bundle's shared support folder. E.g, Chromium.app/Contents/SharedSupport. Only valid for bundles.rwrxÚ SharedSupport)ryrKr¶r±r²r\r³rcs r Ú GetBundleSharedSupportFolderPathz.XcodeSettings.GetBundleSharedSupportFolderPathYsX€ð �>‰>Ô ÐÐ Ø ‡y�y�ÑÐ,Ò,Ø × )Ñ )Ó +Ð+ä �W‰W�\‰\˜$×:Ñ:Ó<Ø)ó+ð+rcó‚—|j«sJ‚tjj|j «d«S)zzReturns the qualified path to the bundle's plugins folder. E.g, Chromium.app/Contents/PlugIns. Only valid for bundles.ÚPlugInsrÀrcs r ÚGetBundlePlugInsFolderPathz(XcodeSettings.GetBundlePlugInsFolderPathcs2€ð �>‰>Ô ÐÐ Ü �7‰7�<‰<˜×8Ñ8Ó:¸IÓ FÐFrcó‚—|j«sJ‚tjj|j «d«S)zƒReturns the qualified path to the bundle's XPC services folder. E.g, Chromium.app/Contents/XPCServices. Only valid for bundles.Ú XPCServicesrÀrcs r ÚGetBundleXPCServicesFolderPathz,XcodeSettings.GetBundleXPCServicesFolderPathis2€ð �>‰>Ô ÐÐ Ü �7‰7�<‰<˜×8Ñ8Ó:¸MÓ JÐJrcó"—|j«sJ‚|jddvs|j«r.tjj |j «d«Stjj |j «dd«S)zyReturns the qualified path to the bundle's plist file. E.g. Chromium.app/Contents/Info.plist. Only valid for bundles.rwr¸z Info.plistrµ)ryrKrzr±r²r\r³rcs r ÚGetBundlePlistPathz XcodeSettings.GetBundlePlistPathosu€ð �>‰>Ô ÐÐ Ø ‡y�y�ÑÐ=Ñ=Ø ×ÑÔÜ �W‰W�\‰\˜$×:Ñ:Ó<¸lÓ KÐKä �W‰W�\‰\˜$×:Ñ:Ó<Ø% |ó5ð5rcó<—|j«r(|j«sJd|jdz«‚y|j«r(|j«sJd|jdz«‚y|j «r(|j«sJd|jdz«‚y|j «r(|j«sJd|jdz«‚y |j«rd d d d œ|jdSdddddœ|jdS)z(Returns the PRODUCT_TYPE of this target.z6ios_app_extension flag requires mac_bundle (target %s)r z$com.apple.product-type.app-extensionz;ios_watchkit_extension flag requires mac_bundle (target %s)z)com.apple.product-type.watchkit-extensionz2ios_watch_app flag requires mac_bundle (target %s)z+com.apple.product-type.application.watchappz8mac_xcuitest_bundle flag requires mac_bundle (target %s)z(com.apple.product-type.bundle.ui-testingz"com.apple.product-type.applicationzcom.apple.product-type.bundlez com.apple.product-type.framework)r�r—rxrwzcom.apple.product-type.toolz&com.apple.product-type.library.dynamicz%com.apple.product-type.library.static)r�r—rxÚstatic_library)rˆryrKr‹rŽrrcs r ÚGetProductTypezXcodeSettings.GetProductTypezsM€à ×ÑÔ Ø �^‰^Ô ð4ð!ØŸ)™) MÑ2ñ!3ó4Ð à 3Ø ×#Ñ#Ô%Ø �^‰^Ô ð?ð!#Ø%)§Y¡Y¨}Ñ%=ñ!>ó?Ð à 8Ø ×ÑÔØ �^‰^Ô ð4ð!ØŸ)™) MÑ2ñ!3ó4Ð à :Ø ×ÑÔØ �^‰^Ô ð4ð!ØŸ)™) MÑ2ñ!3ó4Ð à 7Ø ‡~�~Ôà:Ø:Ø<ñð � ‰ �&Ññ ðð4ØCØBØAñ ð � ‰ �&Ññ ðrcóv—|j«s|jddk(rydddddœ|jdS) z'Returns the MACH_O_TYPE of this target.rwr�r.Ú mh_executeÚ staticlibÚmh_dylibÚ mh_bundle©r�rÑrxr—)ryrKrcs r Ú GetMachOTypezXcodeSettings.GetMachOTypešsJ€ð �>‰>Ô  § ¡ ¨&Ñ 1°\Ò AØ à Ø#Ø"Ø$ñ  ð  ‡i�i�Ññ  ðrcóž—|j«sJ‚tjj|j «|j ««S)zReturns the name of the bundle binary of by this target. E.g. Chromium.app/Contents/MacOS/Chromium. Only valid for bundles.)ryr±r²r\rºÚGetExecutableNamercs r Ú_GetBundleBinaryPathz"XcodeSettings._GetBundleBinaryPath¦s@€ð �>‰>Ô ÐÐ Ü �7‰7�<‰<˜×:Ñ:Ó<Ø×.Ñ.Ó0ó 2ð2rcóp—d|jvrd|jdzSdddddœ|jdS) Nrœr›r.z.aú.dylibz.sorØrw)rKrcs r Ú_GetStandaloneExecutableSuffixz,XcodeSettings._GetStandaloneExecutableSuffix­sL€Ø˜dŸi™iÑ'Ø �4—9‘9Ð0Ñ1Ñ 1Ð1àØØ Øñ  ð  ‡i�i�Ññ  ðrcód—|jjddddddœ|jd«S)NÚproduct_prefixr.ÚlibrØrwr§rcs r Ú_GetStandaloneExecutablePrefixz,XcodeSettings._GetStandaloneExecutablePrefix·s@€Ø �9‰9�=‰=Ð)ØØØðñ ,ð ‡i�i�Ññ,ó ðrcó˜—|j«rJ‚|jddvsJd|jdz«‚|jd}|jddk(r|dddk(r$|dd}n|jdd vr |dddk(r|dd}|j«}|jjd |«}|j «}||z|zS) zwReturns the name of the non-bundle binary represented by this target. E.g. hello_world. Only valid for non-bundles.rw)r�rxrÑr—zUnexpected type %sr rÑNérâr–r¦)ryrKrãrPrß)rÚtargetÚ target_prefixÚ target_exts r r«z&XcodeSettings._GetStandaloneBinaryPathÁsó€ð�~‰~ÔÐÐ Ø �9‰9�VÑ ð!Mñ Mð2à˜tŸy™y¨Ñ0Ñ0ó2ð Mð�Y‰Y�}Ñ %€FØ ‡y�y�ÑÐ,Ò,Ø ��ˆ�uÒ Ø˜˜�‰Ø �‰�6Ñ ÐCÑ CØ ��ˆ�uÒ Ø˜˜�ˆà×7Ñ7Ó9€MØ �Y‰Y�]‰]˜>¨6Ó 2€FØ×4Ñ4Ó6€JØ ˜6Ñ ! JÑ .Ð.rcó”—|j«r)|jjd|jd«S|j«S)zXReturns the executable name of the bundle represented by this target. E.g. Chromium.r¦r )ryrKrPr«rcs r rÛzXcodeSettings.GetExecutableNameÕs;€ð ‡~�~ÔØ �Y‰Y�]‰]˜>¨4¯9©9°]Ñ+CÓ DÐDà × *Ñ *Ó ,Ð,rcób—|j«r|j«S|j«S)z�Returns the qualified path to the primary executable of the bundle represented by this target. E.g. Chromium.app/Contents/MacOS/Chromium.)ryrÜr«rcs r ÚGetExecutablePathzXcodeSettings.GetExecutablePathÝs,€ð ‡~�~ÔØ × &Ñ &Ó (Ð(à × *Ñ *Ó ,Ð,rcó´—|j|}t«}|j|jd«|jd«|jd««S)z:Returns the architectures this target should be built for.ÚARCHSÚ VALID_ARCHSÚSDKROOT)rIrDr1rP)rrRÚconfig_settingsÚxcode_archs_defaults r ÚGetActiveArchszXcodeSettings.GetActiveArchsåsX€à×)Ñ)¨*Ñ5€OÜ.Ó0ÐØ × *Ñ *Ø×јGÓ$Ø×јMÓ*Ø×јIÓ&ó (ð(rcó0— tdd||g«S#YyxYw)NÚxcrunz--sdk©Ú GetStdout)rÚsdkÚinfoitems r Ú_GetSdkVersionInfoItemz$XcodeSettings._GetSdkVersionInfoItemîs%€ð  Ü ˜ ¨#¨xÐ8Ó 9Ð9øð Ù ús‚‘cóF—|€ |j}|jd|d¬«S)Nrïr.r’)rRÚGetPerConfigSetting)rrRs r Ú_SdkRootzXcodeSettings._SdkRootøs)€ØÐØ—?‘?€jØ × #Ñ # I¨zÀ2Ð #Ó FÐFrcó¸—|j|«}|tjvr%|j|d«}|tj|<tj|S)Nz--show-sdk-platform-path)rürFÚ_platform_path_cacherù)rrRÚsdk_rootÚ platform_paths r Ú_XcodePlatformPathz XcodeSettings._XcodePlatformPathýsU€Ø�}‰}˜ZÓ(€HØ”}×9Ñ9Ñ9Ø×1Ñ1°(Ø2LóN€mà5B„m×(Ñ(¨Ñ2Ü × -Ñ -¨hÑ 7Ð7rcól—|j|«}|jd«r|S|j|«S)NÚ/)rüÚ startswithÚ _XcodeSdkPath)rrRrÿs r Ú_SdkPathzXcodeSettings._SdkPaths4€Ø�}‰}˜ZÓ(€HØ×ј3ÔØ €oØ × Ñ ˜hÓ 'Ð'rcóÀ—|tjvr:|j|d«}|tj|<|r|tj|<tj|S)Nz--show-sdk-path)rFÚ_sdk_path_cacherùÚ_sdk_root_cache)rrÿÚsdk_paths r rzXcodeSettings._XcodeSdkPath sW€Ø”}×4Ñ4Ñ4Ø×,Ñ,¨XÐ7HÓI€hØ08„m×#Ñ# HÑ-Ù Ø2:Œ ×%Ñ% hÑ/Ü × (Ñ (¨Ñ 2Ð2rcó6—|j|dd«d|j«vrttjj |j ««}|j «jd«r|j|dd«y|j|dd«yy)NÚMACOSX_DEPLOYMENT_TARGETz-mmacosx-version-min=%srJrz-mios-simulator-version-min=%sz-miphoneos-version-min=%s)rmrdr±r²Úbasenamerrr)rrkÚsdk_path_basenames r Ú_AppendPlatformVersionMinFlagsz,XcodeSettings._AppendPlatformVersionMinFlagss…€Ø‡M�M�#Ð1Ð3LÔMØ# t§~¡~Ó'7Ñ7äŸ'™'×*Ñ*¨4¯=©=«?Ó;ÐØ × Ñ Ó "× -Ñ -Ð.?Ô @Ø � ‰ �cÐ7Ø6õ 8ð � ‰ �cÐ7Ø1õ 3ð8rcó —||_g}|j«}d|j«vr|r|jd|z«|jr|jd|jz«|j ddd¬«r|jd«|j d dd¬«r|jd «|j d dd¬«r|jd «d |j«vr(|j«d dk(r|jd«n |j ddd¬«r|jd«|j |ddd¬«|j ddd¬«rl|j«jdd«}|dk(r|jd«n5|dk(r td«‚|dk(r|jd«ntd|z«‚|j«jd«dk(r|jd«n3|j«jd«dk(r|jd«|j ddd¬«r|jd «|j d!dd¬«r|jd"«|j d#dd¬«r|jd$«|j d%dd¬«r|jd&«|j|«|j d'dd¬«r|jd'«|jd(«|jd)«|jd*«|jd+«|�|g}n)|jsJ‚|j|j«}t|«d-k7r|jd.«d/g}|jd0|d1z«|d1d2vr”|j d3dd¬«r|jd4«|j d5dd¬«r|jd6«|j d7dd¬«r|jd8«|j d9dd¬«r|jd:«||j«jd;g«z }|j|«}|r'|j«r|jd<|zd=z«|r|}nd>}|jd?|j} | jd@g«} | D]&} |jd<| j!dA|«z«Œ(d,|_|S)BzMReturns flags that need to be added to .c, .cc, .m, and .mm compilations.rïz -isysroot %sz-I%sÚCLANG_WARN_CONSTANT_CONVERSIONÚYESÚNOr’z-Wconstant-conversionÚGCC_CHAR_IS_UNSIGNED_CHARz-funsigned-charÚGCC_CW_ASM_SYNTAXz -fasm-blocksÚGCC_DYNAMIC_NO_PICz-mdynamic-no-picÚGCC_ENABLE_PASCAL_STRINGSz-mpascal-stringsÚGCC_OPTIMIZATION_LEVELz-O%sÚsÚGCC_GENERATE_DEBUGGING_SYMBOLSÚDEBUG_INFORMATION_FORMATÚdwarfz -gdwarf-2Ústabsz(stabs debug format is not supported yet.údwarf-with-dsymzUnknown debug format %sÚGCC_STRICT_ALIASINGz-fstrict-aliasingz-fno-strict-aliasingÚGCC_SYMBOLS_PRIVATE_EXTERNz-fvisibility=hiddenÚGCC_TREAT_WARNINGS_AS_ERRORSz-WerrorÚGCC_WARN_ABOUT_MISSING_NEWLINEz -Wnewline-eofÚLLVM_LTOz-fltoÚCOPY_PHASE_STRIPÚGCC_DEBUGGING_SYMBOLSÚGCC_ENABLE_OBJC_EXCEPTIONSÚ MACH_O_TYPEÚ PRODUCT_TYPENérír:ú-arch r)r:r=ÚGCC_ENABLE_SSE3_EXTENSIONSz-msse3Ú)GCC_ENABLE_SUPPLEMENTAL_SSE3_INSTRUCTIONSz-mssse3ÚGCC_ENABLE_SSE41_EXTENSIONSz-msse4.1ÚGCC_ENABLE_SSE42_EXTENSIONSz-msse4.2ÚWARNING_CFLAGSú-Fú/Developer/Library/Frameworks/r.rHÚmac_framework_dirsú $(SDKROOT))rRrrdr#rNrhrmrPÚNotImplementedErrorrroròÚlenrr~rKÚreplace) rrRr(ÚcflagsrÿÚ dbg_formatr Ú platform_rootÚframework_rootrUÚframework_dirsÚ directorys r Ú GetCflagszXcodeSettings.GetCflagss�€ð !€D„OØ €Fà�}‰}‹€HØ�D—N‘NÓ$Ñ$©Ø ‡m�m�N XÑ-Ô.à ×ÒØ ‡m�m�F˜T×1Ñ1Ñ1Ô2à ‡z�zÐ2°EÀ4€zÔHØ ‡m�mÐ+Ô,à ‡z�zÐ-¨u¸d€zÔCØ ‡m�mÐ%Ô&à ‡z�zÐ% u°e€zÔ<Ø ‡m�m�NÔ#à˜tŸ~™~Ó/Ñ/Ø �‰Ó Ð.Ñ /°5Ò 8Ø� ‰ Ð(Õ)à ð  ‡z�zÐ-¨u¸e€zÔDØ ‡m�mÐ&Ô'à‡M�M�&Ð2°FÀC€MÔHà ‡z�zÐ2°EÀ5€zÔIØ—>‘>Ó#×'Ñ'Ð(BÀGÓL€jØ �wÒ Ø� ‰ �kÕ"Ø ˜Ò Ü!Ð"LÓMÐMØ Ð*Ò *Ø� ‰ �kÕ"ä!Ð";¸jÑ"HÓIÐIà ‡~�~Ó×ÑÐ1Ó2°eÒ;Ø ‡m�mÐ'Õ(Ø �‰Ó × Ñ Ð3Ó 4¸Ò <Ø ‡m�mÐ*Ô+à ‡z�zÐ.°¸t€zÔDØ ‡m�mÐ)Ô*à ‡z�zÐ0°%À€zÔFØ ‡m�m�IÔà ‡z�zÐ2°EÀ4€zÔHØ ‡m�m�OÔ$ð  ‡z�z�*˜e¨T€zÔ2Ø ‡m�m�GÔà×'Ñ'¨Ô/ð ‡z�zÐ$ e°T€zÔ:Ø ×ÑÐ0Ô1Ø×ÑÐ3Ô4Ø×ÑÐ8Ô9ð ×јMÔ*Ø×јNÔ+à ÐØˆf�eà �_Š_Ј_Ø×!Ñ! $§/¡/Ó2€eÜ ˆ5ƒz�Q‚à ×јgÔ&؈h€eØ ‡M�M�(˜U 1™XÑ%Ô&à ˆQ�xÐ%Ñ%Ø �‰Ð0°%ÀˆÔ FØ� ‰ �hÔØ �‰Ð?ÀØ ð ô "à� ‰ �iÔ Ø �‰Ð1°5À$ˆÔ GØ� ‰ �jÔ!Ø �‰Ð1°5À$ˆÔ GØ� ‰ �jÔ!à ˆd�n‰nÓ×"Ñ"Ð#3°RÓ8Ñ8€Fà×+Ñ+¨JÓ7€MÙ˜Ÿ™Ô)Ø ‡m�m�D˜=Ñ(Ð+KÑKÔLáØ�nà€nØ �Y‰YÐ'Ñ (¨¯©Ñ 9€FØ—Z‘ZÐ 4°bÓ9€NÛ#ˆ Ø ‡m�m�D˜9×,Ñ,¨\¸>ÓJÑJÕKð$ð€D„OØ €Mrcóü—||_g}|j«jdd«dk(r|jd«n|j |dd«||j«jdg«z }d|_|S)z?Returns flags that need to be added to .c, and .m compilations.ÚGCC_C_LANGUAGE_STANDARDr.Úansiz-ansiú-std=%sÚ OTHER_CFLAGSN)rRrdrPr#rm)rrRÚcflags_cs r Ú GetCflagsCzXcodeSettings.GetCflagsCšsr€à €D„OØ€HØ ‡~�~Ó×ÑÐ5°rÓ:¸fÒD؇o�o�gÕà ‡m�m�HÐ7¸ÔCØ �—‘Ó ×$Ñ$ ^°RÓ8Ñ8€HØ€D„OØ €Orcó—||_g}|j«jd«}|r|jd|z«|j |dd«|j ddd¬«r|jd «|j d dd¬«r|jd «|j d dd¬«r|jd «|j ddd¬«r|jd«|j ddd¬«r|jd«g}|j«jddg«D]A}|dvrd}|dvr$||j«jdg«z }Œ1|j|«ŒC||z }d|_|S)zAReturns flags that need to be added to .cc, and .mm compilations.ÚCLANG_CXX_LANGUAGE_STANDARDrAÚCLANG_CXX_LIBRARYú -stdlib=%sÚGCC_ENABLE_CPP_RTTIrrr’z -fno-rttiÚGCC_ENABLE_CPP_EXCEPTIONSz-fno-exceptionsÚGCC_INLINES_ARE_PRIVATE_EXTERNz-fvisibility-inlines-hiddenÚGCC_THREADSAFE_STATICSz-fno-threadsafe-staticsÚ%GCC_WARN_ABOUT_INVALID_OFFSETOF_MACROz-Wno-invalid-offsetofÚOTHER_CPLUSPLUSFLAGSú $(inherited))z $inheritedrOz ${inherited}ú $OTHER_CFLAGS)rPz$(OTHER_CFLAGS)z${OTHER_CFLAGS}rBN)rRrdrPr#rmrh)rrRÚ cflags_ccÚclang_cxx_language_standardÚ other_ccflagsÚflags r Ú GetCflagsCCzXcodeSettings.GetCflagsCC¦s€€à €D„OØ€Ià"&§.¡.Ó"2×"6Ñ"6Ø%ó#'Ðñ#Ø×Ñ�yÐ#>Ñ>Ô?à‡M�M�)Ð0°,Ô?à ‡z�zÐ'¨°u€zÔ=Ø×Ñ�{Ô#Ø ‡z�zÐ-¨t¸U€zÔCØ×ÑÐ(Ô)Ø ‡z�zÐ2°EÀ4€zÔHØ×ÑÐ4Ô5Ø ‡z�zÐ*¨D¸%€zÔ@Ø×ÑÐ0Ô1à ‡z�zÐ9¸4È€zÔOØ×ÑÐ.Ô/à€Mà—‘Ó ×$Ñ$Ð%;¸nÐ=MÖNˆà Ð?Ñ ?ØˆØ ÐHÑ HؘŸ™Ó)×-Ñ-¨n¸bÓAÑA‰ à×јTÕ"ðOð�Ñ€Ià€D„OØ Ðrcó —|j«jdd«}|dk(r|jd«y|dk(r|jd«yy)NÚGCC_ENABLE_OBJC_GCÚ unsupportedÚ supportedz -fobjc-gcÚrequiredz-fobjc-gc-only)rdrPr#)rÚflagsÚ gc_policys r Ú$_AddObjectiveCGarbageCollectionFlagsz2XcodeSettings._AddObjectiveCGarbageCollectionFlagsÏsJ€Ø—‘Ó ×$Ñ$Ð%9¸=ÓI€IØ�KÒØ ‡l�l�;ÕØ �jÒ Ø ‡l�lÐ#Õ$ð !rcóš—|jddd¬«r|jd«|jddd¬«r|jd«yy)NÚCLANG_ENABLE_OBJC_ARCrrr’z -fobjc-arcÚCLANG_ENABLE_OBJC_WEAKz -fobjc-weak©rhr#©rr[s r Ú_AddObjectiveCARCFlagsz$XcodeSettings._AddObjectiveCARCFlagsÖsF€Ø ‡z�zÐ)¨5¸$€zÔ?Ø ‡l�l�<Ô Ø ‡z�zÐ*¨E¸4€zÔ@Ø ‡l�l�=Õ!ðArcóP—|jddd¬«r|jd«yy)NÚ*CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESISrrr’z!-Wobjc-missing-property-synthesisrarbs r Ú+_AddObjectiveCMissingPropertySynthesisFlagsz9XcodeSettings._AddObjectiveCMissingPropertySynthesisFlagsÜs-€Ø ‡z�zÐ>Ø ðô'à ‡l�lÐ6Õ7ð'rcóŒ—||_g}|j|«|j|«|j|«d|_|S)z7Returns flags that need to be added to .m compilations.N)rRr]rcrf)rrRÚ cflags_objcs r Ú GetCflagsObjCzXcodeSettings.GetCflagsObjCásE€à €D„OØ€KØ×-Ñ-¨kÔ:Ø×Ñ  Ô,Ø×4Ñ4°[ÔAØ€D„OØ ÐrcóÖ—||_g}|j|«|j|«|j|«|j ddd¬«r|j d«d|_|S)z8Returns flags that need to be added to .mm compilations.ÚGCC_OBJC_CALL_CXX_CDTORSrrr’z-fobjc-call-cxx-cdtorsN)rRr]rcrfrhr#)rrRÚ cflags_objccs r ÚGetCflagsObjCCzXcodeSettings.GetCflagsObjCCësg€à €D„OØ€LØ×-Ñ-¨lÔ;Ø×Ñ  Ô-Ø×4Ñ4°\ÔBØ ‡z�zÐ,¨e¸T€zÔBØ×ÑÐ2Ô3Ø€D„OØ Ðrcóº—|jddk7r#|jddk7s|j«ry|jd|j«rdnd¬«}|S) z/Return DYLIB_INSTALL_NAME_BASE for this target.rwrxr—NÚDYLIB_INSTALL_NAME_BASEz/Library/Frameworksz/usr/local/libr’)rKryr“)rÚ install_bases r ÚGetInstallNameBasez XcodeSettings.GetInstallNameBase÷se€ð � ‰ �&ÑÐ-Ò-Ø �‰�6Ñ Ð/Ò /°4·>±>Ô3CØ Ø×+Ñ+Ø!Ø)-¯©Ô)9Ñ%Ð?Oð,óQ€Lð Ðrcóà—d|vrid|}}|jd«r|jdd«\}}tjj |«}tjj ||«}|S)z(Do :standardizepath processing for path.rr.Ú@r))rr[r±r²Únormpathr\)rr²ÚprefixÚrests r Ú_StandardizePathzXcodeSettings._StandardizePathsa€ð ˆd�{ؘˆd€fØ �‰˜Ô Ø—z‘z # qÓ)‰ ˆ�Ü �W‰W× Ñ ˜dÓ #€dÜ �W‰W�\‰\˜& $Ó '€dØ €Krcó<—|jddk7r#|jddk7s|j«ryd}|jd|¬«}d|vrÍ|d |fvsJd |jd ›d |›d �«‚|jd|j |j «««}|j«rA|jd|j ««}|jd|j««}n d|vsJ‚d|vsJ‚|jd|j««}|S)z-Return LD_DYLIB_INSTALL_NAME for this target.rwrxr—Nz=$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)ÚLD_DYLIB_INSTALL_NAMEr’Ú$zJ$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)zNVariables in LD_DYLIB_INSTALL_NAME are not generally supported yet in target 'r z' (got 'z')z*$(DYLIB_INSTALL_NAME_BASE:standardizepath)z$(WRAPPER_NAME)z$(PRODUCT_NAME)z$(EXECUTABLE_PATH)) rKryr“r6rwrqrªr¨rë)rÚdefault_install_nameÚ install_names r ÚGetInstallNamezXcodeSettings.GetInstallNamesV€ð � ‰ �&ÑÐ-Ò-Ø �‰�6Ñ Ð/Ò /°4·>±>Ô3CØ ð Hðà×+Ñ+ØÐ)=ð,ó?€Lð  ˆlÑØ ð,Ø-AðCñCñ8ð�y‰y˜Ó'ªð 7ó8ðCð "×)Ñ)Ø 6Ø × Ñ  × 7Ñ 7Ó 9Ó :ó<€lð �‰Ô à#×+Ñ+Ø ˜t×2Ñ2Ó4ó6ˆ à#×+Ñ+Ø ˜t×2Ñ2Ó4ó6‰ ð!¨ Ñ4Ð4Ð4Ø ¨ Ñ4Ð4Ð4à!×)Ñ)Ø  × 6Ñ 6Ó 8ó:€là Ðrcó„—d}d}d|gd|gd|gd|||gg}|D]~}tjddj|«z«}|j|«}|sŒ>|d |j d «||j d ««z||j d «d z}Œ€|jd «rd ||td «d «z}|S) zuChecks if ldflag contains a filename and if so remaps it from gyp-directory-relative to build-directory-relative.z(\S+)z\S+z-exported_symbols_listz-unexported_symbols_listz-reexported_symbols_listz -sectcreatez (?:-Wl,)?z[ ,]Nr)ú-L) r6r7r\r"ÚstartÚgroupÚendrr5) rÚldflagÚgyp_to_build_pathÚ LINKER_FILEÚWORDÚ linker_flagsÚ flag_patternÚregexÚms r Ú_MapLinkerFlagFilenamez$XcodeSettings._MapLinkerFlagFilename4sà€ð€KØ €Dà Ð-Ø! ;Ð/Ø! ;Ð/Ø�d˜D +Ð.ð €Ló %ˆ Ü�j‰j˜ v§{¡{°<Ó'@Ñ@ÓA€eØ �+‰+�fÓ €aÚ Ø˜ ˜Ÿ™ ›Ð$Ñ'8¸¿¹À»Ó'DÑDؘŸ™˜a›˜ Ð"ñ#‰ð %ð×Ñ˜ÔØÑ'¨¬s°4«y¨zÐ(:Ó;Ñ;€fØ €MrcóÒ—||_g}|j«jdg«D]#}|j|j ||««Œ%|j ddd¬«r|jd«|j ddd¬«r|jd«|j |d d «|j |d d «|j|«d |j«vr2|j«r"|jd|j«z«|j«jdg«D]}|jd||«z«Œd|j«vr+|jd||j«d«z«|�|g}n)|jsJ‚|j|j«}t|«dk7r|jd«dg}|jd|dz«|jd|dk7r|ndz«|j«} | r6|jddk7r$|jd| jdd«z«|j«jd g«D]} |jd!| z«Œ|j«} | sd"} |jd#|j} | jd$g«} | D]&}|jd%|jd&| «z«Œ(|j|«}| r:|r8|j!«r(|jd%|zd'z«|jd(«|j#«xs|j%«}| rZ|rXt'«dd)kr&|jd*«|j| d+z«n|jd,«|jd-«|j |d.d/«d|_|S)0a±Returns flags that need to be passed to the linker. Args: configname: The name of the configuration to get ld flags for. product_dir: The directory where products such static and dynamic libraries are placed. This is added to the library search path. gyp_to_build_path: A function that converts paths relative to the current gyp file to paths relative to the build direcotry. Ú OTHER_LDFLAGSÚDEAD_CODE_STRIPPINGrrr’z-Wl,-dead_stripÚ PREBINDINGz -Wl,-prebindÚDYLIB_COMPATIBILITY_VERSIONz-compatibility_version %sÚDYLIB_CURRENT_VERSIONz-current_version %srïz -isysroot ÚLIBRARY_SEARCH_PATHSrÚ ORDER_FILEz-Wl,-order_file -Wl,Nr)rír:r*rr›z./rwr—z-install_name rYz\ ÚLD_RUNPATH_SEARCH_PATHSz -Wl,-rpath,r.rHr2r0r3r1z-framework XCTestÚ0900z -lpkstartz?/System/Library/PrivateFrameworks/PlugInKit.framework/PlugInKitz-e _NSExtensionMainz-fapplication-extensionrGrH)rRrdrPr#r‹rhrmrrròr5ror}rKr6rr~rˆr‹rA)rrRÚ product_dirr„r(ÚldflagsrƒÚ library_pathr r|ÚrpathrÿrUr;r<r9Ú is_extensions r Ú GetLdflagszXcodeSettings.GetLdflagsPs—€ð!€D„OØ€Gð—.‘.Ó"×&Ñ& ¸Ö;ˆØ ‡n�n�T×0Ñ0°Ð9JÓKÕLð<ð ‡z�zÐ'¨¸€zÔ=Ø ‡n�nÐ&Ô'à ‡z�z�, ¨t€zÔ4Ø ‡n�n�^Ô$à‡M�MØÐ.Ð0KôMà‡M�MØÐ(Ð*?ôAð ×'Ñ'¨Ô0à�D—N‘NÓ$Ñ$¨¯©¬Ø ‡n�n�\ D§M¡M£OÑ3Ô4àŸ™Ó(×,Ñ,Ð-CÀRÖHˆ Ø ‡n�n�TÑ-¨lÓ;Ñ;Õ<ðIð�t—~‘~Ó'Ñ'Ø ‡n�nðÙ/Ø"&§.¡.Ó"2°<Ñ"@óBñBôCð ÐØˆf�eà �_Š_Ј_Ø×!Ñ! $§/¡/Ó2€eÜ ˆ5ƒz�Q‚à ×јgÔ&؈h€eØ ‡N�N�8˜e A™hÑ&Ô'ð ‡N�N�4¨+¸Ò*<™;À$ÑGÔHà×&Ñ&Ó(€LÙ˜Ÿ ™  &Ñ)Ð->Ò>Ø ‡n�nÐ%¨ ×(<Ñ(<¸SÀ%Ó(HÑHÔIà—‘Ó!×%Ñ%Ð&?ÀÖDˆØ ‡n�n�] UÑ*Õ+ðEð�}‰}‹€H٠؀hØ �Y‰YÐ'Ñ (¨¯©Ñ 9€FØ—Z‘ZÐ 4°bÓ9€NÛ#ˆ Ø ‡n�n�T˜I×-Ñ-¨l¸HÓEÑEÕFð$ð×+Ñ+¨JÓ7€MÙ‘M d§n¡nÔ&6Ø ‡n�n�T˜MÑ)Ð,LÑLÔMØ ‡n�nÐ(Ô)à×*Ñ*Ó,ÒN°×0LÑ0LÓ0N€LÙ‘Lô ‹˜Ñ ˜VÒ #Ø�‰�{Ô#Ø�‰�xØ MñNõ Oð �‰Ð,Ô-Ø ‡n�nÐ.Ô/à‡M�M�'Ð.° Ô=à€D„OØ €Nrcó’—||_g}|j«jdg«D]}|j|«Œd|_|S)z‘Returns flags that need to be passed to the static linker. Args: configname: The name of the configuration to get ld flags for. r�N)rRrdrPr#)rrRÚ libtoolflagsÚ libtoolflags r ÚGetLibtoolflagszXcodeSettings.GetLibtoolflags°sL€ð !€D„OØ€Là—~‘~Ó'×+Ñ+¨O¸RÖ@ˆ Ø×ј+Õ&ðAð€D„OØ Ðrcó—d}i}t|jj««D]U}|rt|j|«}d}Œ |j|j «D]\}}||vrŒ |||k7sŒ||=ŒŒW|S)z~Gets a list of all the per-target settings. This will only fetch keys whose values are the same across all configurations.TF)ÚsortedrIÚkeysÚdictrO)rÚ first_passÚresultrRr^Úvalues r ÚGetPerTargetSettingsz"XcodeSettings.GetPerTargetSettingsÀs‘€ð€JØ €FܘT×0Ñ0×5Ñ5Ó7Ö8ˆ Ù Ü�d×)Ñ)¨*Ñ5Ó6ˆØ‰ à×-Ñ-¨jÑ9×?Ñ?ÖA‰JˆC�Ø ˜Ñ Ø Ø�c‰{˜eÓ#Ø�s‘ ñ Bð 9ð €Mrcó€—||jvr|j|j||«S|j||«Srb)rIrPr“)rÚsettingrRrs r rûz!XcodeSettings.GetPerConfigSettingÑsA€Ø�T×(Ñ(Ñ(Ø × Ñ  Ñ ,× 0Ñ 0°¸'Ó BÐBà × %Ñ % g¨wÓ 7Ð7rcó(—d}d}t|jj««D]c}|r"|j|j|d«}d}Œ'||j|j|d«k(rŒJJd|›d|jd›d�«‚|€|S|S)z�Tries to get xcode_settings.setting from spec. Assumes that the setting has the same value in all configurations and throws otherwise.TNFz!Expected per-target setting for 'z"', got per-config setting (target r Ú))r¡rIr¢rPrK)rr©rÚ is_first_passr¥rRs r r“z!XcodeSettings.GetPerTargetSetting×s¥€ð€MØ €FܘT×0Ñ0×5Ñ5Ó7Ö8ˆ Ù Ø×$Ñ$ ZÑ0×4Ñ4°W¸dÓCˆØ‰ à˜×,Ñ,¨ZÑ8×<Ñ<¸WÀdÓKÓKñ Aâ$ d§i¡i° Ó&>ð @ó AÐKð 9ð€~Ø €nØ €Mrcó8—||_g}|jddd¬«rõ|jddd¬«rád}|jddk(s|j«r|j «rd }n|jdd k(rd }|j «j d |«}d dddœ|}|j «j dd «}|r|dt|«zz }|s!|jd|jdz«|jd|›d|›�«d|_|S)z¶Returns a list of shell commands that contain the shell commands neccessary to strip this target's binary. These should be run as postbuilds before the actual postbuilds run.ÚDEPLOYMENT_POSTPROCESSINGrrr’ÚSTRIP_INSTALLED_PRODUCTÚ debuggingrwr—ú non-globalr�ÚallÚ STRIP_STYLEr.z-xz-S)r²r±r°Ú STRIPFLAGSrYzecho STRIP\(%s\)r zstrip N) rRrhrKrˆryrdrPÚ_NormalizeEnvVarReferencesr#) rrRÚ output_binaryÚquietr¥Údefault_strip_styleÚ strip_styleÚ strip_flagsÚexplicit_strip_flagss r Ú_GetStripPostbuildsz!XcodeSettings._GetStripPostbuildsès$€ð!€D„Oà €FØ � ‰ Ð.°¸tˆ ÔDØ � ‰ Ð,¨e¸Tˆ ÔBà'ÐØ �9‰9�VÑ Ð 1Ò 1°T×5LÑ5LÔ5NØ�n‰nÔØ*ÑØ �9‰9�VÑ   Ò ,Ø#Ðà—N‘NÓ$×(Ñ(¨Ð8KÓL€kàØØñð ñ €kð "Ÿ^™^Ó-×1Ñ1°,ÀÓCÐÙ Ø�sÔ7Ð8LÓMÑMÑMˆ á Ø� ‰ Ð*¨T¯Y©Y°}Ñ-EÑEÔFØ ‡m‚m¢[±-Ð@ÔAà€D„OØ €Mrcó—||_g}|jddd¬«rc|jddd¬«rO|jddk7r=|s!|jd |jd z«|jd |›d |d z›�«d|_|S)zÃReturns a list of shell commands that contain the shell commands neccessary to massage this target's debug information. These should be run as postbuilds before the actual postbuilds run.rrr’rrrrwrÑzecho DSYMUTIL\(%s\)r z dsymutil z -o z.dSYMN)rRrhrKr#)rrRÚoutputr¶r·r¥s r Ú_GetDebugInfoPostbuildsz%XcodeSettings._GetDebugInfoPostbuilds s‘€ð!€D„Oð€FØ � ‰ Ð3°UÀEˆ ÔJØ � ‰ Ø &Ð(9À7ð ô Là � ‰ �&ÑÐ-Ò-Ù Ø� ‰ Ð-°· ± ¸-Ñ0HÑHÔIØ ‡m‚mª=¸&À7Ò:JÐKÔLà€D„OØ €MrFcóR—|j||||«|j|||«zS)zˆReturns a list of shell commands that contain the shell commands to run as postbuilds for this target, before the actual postbuilds.)r¿r¼)rrRr¾r¶r·s r Ú_GetTargetPostbuildsz"XcodeSettings._GetTargetPostbuildss6€ð ×$Ñ$ Z°¸ÈÓNØ × Ñ  ¨]¸EÓBñ CðDrcóΗ|jr"|jddk(s"|j«s|j«sgSg}|j «}|j |}|j«r‡t jjd|«}t jj|jd««}t jj|d|«}|jd|›d|›�g«|j|«} | s|Sdg} t| «t|j |j««z} | r&td d jt!| ««z«|j«�rêt jj|jd««}t jj|d «} |j#|«} d d g} | D]Ø}t jj| |«}t jj| t jj%|««}|jd|›d|›�g«|jt jjdd«›d| ›d|jdd«›d|jdd«›d|›dd›� g«ŒÚt jj|d«}t jj||«|g}|D]c}|jt jjdd«›d| ›d|jdd«›d|jdd«›d|›dd›� g«Œe|jt jjdd«›d| ›d|jdd«›d|jdd«›dt jjd|«›dd›� g«|S)z›Return a shell command to codesign the iOS output binary so it can be deployed to a device. This should be run as the very last step of the build.rwr�z${BUILT_PRODUCTS_DIR}Ú TEST_HOSTrÉzditto rYÚOTHER_CODE_SIGN_FLAGSz9Warning: Some codesign keys not implemented, ignoring: %sz, r¿z@Developer/Library/PrivateFrameworks/IDEBundleInjection.frameworkz-Developer/Library/Frameworks/XCTest.frameworkz${TARGET_BUILD_DIR}z gyp-mac-toolz code-sign-bundle "z" "ÚCODE_SIGN_ENTITLEMENTSr.ÚPROVISIONING_PROFILEz" TF)rLrKr~rzr¬rIr±r²r\ÚdirnamerPÚextendÚ_GetIOSCodeSignIdentityKeyÚsetr¢r%r¡rr )rrRr¶Ú postbuildsr¦r]ÚsourceÚ test_hostÚxctest_destinationr^ÚunimplÚframeworks_dirr9Ú frameworksr™Ú destinationÚ plugin_dirÚtargetsræs r Ú_GetIOSPostbuildszXcodeSettings._GetIOSPostbuilds's*€ð �JŠJØ �‰�6Ñ ˜lÒ *¨d¯n©nÔ.>Ø × Ñ Ô Ø €ià€JØ×*Ñ*Ó,€LØ×"Ñ" :Ñ.€Hð ‡~�~ÔÜ�w‰w�|‰|Ð3°\ÓB€fÜ—'‘'—/‘/ (§,¡,¨{Ó";Ó<€iÜŸ7™7Ÿ<™<¨ °9¸lÓKÐØ×Òª&Ñ2DÐEÐFÔGà × )Ñ )¨(Ó 3€CÙ Ø Ðð&Ð &€FÜ �‹[œ3˜t×2Ñ2°:Ñ>×CÑCÓEÓFÑ F€FÙ Ü Ð GØ �)‰)”F˜6“NÓ #ñ %ô&ð ‡~�~Õä—'‘'—/‘/ (§,¡,¨{Ó";Ó<€iÜ—w‘w—|‘| I¨|Ó<€nØ×-Ñ-¨jÓ9€mà MØ :ð <ðó"ˆ)Ü—‘—‘˜m¨YÓ7ˆÜ—g‘g—l‘l >´2·7±7×3CÑ3CÀIÓ3NÓOˆ Ø×ÒªF±KÐ@ÐAÔBð ×ÑÜ �G‰G�L‰LÐ.°Õ ?ÂØ �L‰LÐ1°2Õ 6Ø �L‰LÐ/°Õ 4²kÁ4ðIð õ ð "ô—7‘7—<‘<  ¨9Ó5€jÜ—‘—‘˜j¨,Ó7¸ÐC€gÛˆ&Ø×ÑÜ �G‰G�L‰LÐ.°Õ ?ÂØ �L‰LÐ1°2Õ 6Ø �L‰LÐ/°Õ 4²f¹dðDð õ ðð×ÑÜ �‰� ‰ Ð*¨NÕ;ºSØ� ‰ Ð-¨rÕ2Ø� ‰ Ð+¨RÕ0Ü �‰� ‰ Ð,¨lÕ;¹Uð Dðôð Ðrcóª—|jd«}|sy|tjvrŽtjgd¢«}|j «D]d}|j d«}||vsŒ|j«d}tj}||vs|||k(s Jd|z«‚|tj|<Œftjj|d«S)NÚCODE_SIGN_IDENTITY)Úsecurityz find-identityz-pÚ codesigningz-vúutf-8r)z2Multiple codesigning fingerprints for identity: %sr.)rPrFÚ_codesigning_key_cacheÚ subprocessÚ check_outputÚ splitlinesÚdecoder[)rr]Úidentityr¾ÚlineÚ line_decodedÚ fingerprintÚcaches r rÉz(XcodeSettings._GetIOSCodeSignIdentityKeyjsÕ€Ø�|‰|Ð0Ó1€HÙ Ø Ø”}×;Ñ;Ñ;Ü×&Ñ&Ú BóD€fà×#Ñ#Ö%ˆ$Ø—{‘{ 7Ó+ˆ Ø �|Ò #Ø$×*Ñ*Ó,¨QÑ/ˆ+Ü×6Ñ6ˆ%Ø Ñ&¨+¸¸x¹Ò*Hð OØBÀXÑMó OÐHà;FŒ-× .Ñ .¨xÒ 8ð&ô × /Ñ /× 3Ñ 3°H¸bÓ AÐArcóf—|€J‚|j||||«}|j||«}||z|zS)zSReturns a list of shell commands that should run before and after |postbuilds|.)rÁrÕ)rrRr¾r¶rËr·ÚpreÚposts r ÚAddImplicitPostbuildsz#XcodeSettings.AddImplicitPostbuilds{sH€ð Ð $Ð$Ð $Ø × #Ñ # J°¸ ÀuÓ M€CØ × !Ñ ! *¨mÓ <€DØ �Ñ ˜dÑ "Ð"rcó€—|jd«s|jd«rCdtjjtjj |««dz}n4|j j |«}|rd|jd«z}n|}|j|«}|sd}|jd|«}|jd«rltjj|«\}}|d k(rEtjj|«s&|d z}tjj|«r|}|S) Nz .frameworkz .xcframeworkz -framework rz-lr)r.r3rÞz.tbd) rZr±r²Úsplitextr rSr"r�rr6rÚexists) rÚlibraryÚ config_nameÚlrŠrÿr ÚextÚ tbd_librarys r Ú_AdjustLibraryzXcodeSettings._AdjustLibrary„sþ€Ø×ј Ô%¨×)9Ñ)9¸.Ô)IØ œ"Ÿ'™'×*Ñ*¬2¯7©7×+;Ñ+;¸GÓ+DÓEÀaÑHÑ H�aà �/‰/× Ñ  Ó (€aÙ Ø �1—7‘7˜1“:Ñ ‰à ˆà�}‰}˜[Ó)€H٠؀hð�i‰i˜  hÓ/€G؇|�|�LÔ!Ü—g‘g×&Ñ& wÓ/�m€h�Ø �Ф§¡§¡°Ô!8Ø Ñ'ˆ Ü �7‰7�>‰>˜+Ô &؈'Ø €NrcóN—|D�cgc]}|j||«‘Œ}}|Scc}w)z�Transforms entries like 'Cocoa.framework' in libraries into entries like '-framework Cocoa', 'libcrypto.dylib' into '-lcrypto', etc. )rñ)rÚ librariesrírìs r ÚAdjustLibrarieszXcodeSettings.AdjustLibraries£s<€ñ !*ó+Ù )�Wð×$Ñ$ W¨kÕ:Ø )ðð+à Ðùò+s…"có—tddg«S)NÚsw_versz -buildVersionrõrcs r Ú_BuildMachineOSBuildz"XcodeSettings._BuildMachineOSBuild«s€Ü �i Ð1Ó 2Ð2rcóš—|j|jdd«}|jd«D�cgc] }t|«‘Œc}Scc}w)NÚTARGETED_DEVICE_FAMILYÚ1Ú,)rIrPr[r})rrRÚfamilyÚxs r Ú_XcodeIOSDeviceFamilyz#XcodeSettings._XcodeIOSDeviceFamily®sG€Ø × Ñ  Ñ ,× 0Ñ 0Ð1IÈ3Ó O€FØ"ŸL™L¨Ô-Ó .Ñ-�qŒC��FÐ-Ñ .Ð.ùÒ .s³Acó—|tjv�r5i}|j«|d<t«\}}||d<||d<|j|j d«}|�||d<|j |«}|s|j«}|j|d«}||xsdz|d<|d k\r|j|d «|d <n|d k\r||d <n|d|d <|jrV|j|j d «|d<||d<||d<|jd«rdg|d<|d |d<n dg|d<d|d<|tj|<ttj|«}|jr|j|«|d<|S)z@Returns a dictionary with extra items to insert into Info.plist.ÚBuildMachineOSBuildÚDTXcodeÚ DTXcodeBuildÚ GCC_VERSIONÚ DTCompilerz--show-sdk-versionr.Ú DTSDKNameÚ0720z--show-sdk-build-versionÚ DTSDKBuildÚ0430rJÚMinimumOSVersionÚDTPlatformNameÚDTPlatformVersionrÚiPhoneOSÚCFBundleSupportedPlatformsÚDTPlatformBuildÚiPhoneSimulatorÚUIDeviceFamily) rFÚ _plist_cacher÷rArIrPrüÚ_DefaultSdkRootrùrLrZr£rþ) rrRräÚxcodeÚ xcode_buildÚcompilerrÿÚ sdk_versionrOs r ÚGetExtraPlistItemsz XcodeSettings.GetExtraPlistItems²sÍ€àœ×3Ñ3Ò3Ø€eØ%)×%>Ñ%>Ó%@€eÐ !Ñ"ä'›>Ñ€eˆ[Ø€eˆIÑØ)€eˆNÑØ×$Ñ$ ZÑ0×4Ñ4°]ÓC€hØ Ð Ø&ˆˆlÑà—‘˜zÓ*€hÙ Ø×'Ñ'Ó)ˆØ×/Ñ/°Ð:NÓO€kØ# {Ò'8°bÑ9€eˆKÑØ �&ŠØ"×9Ñ9Ø Ð0ó2ˆˆlÒà �FŠ?Ø)ˆˆlÒà#Ð$9Ñ:ˆˆlÑà �ŠØ$(×$7Ñ$7¸ Ñ$C×$GÑ$GØ (ó%*ˆÐ Ñ!à"*ˆÐÑØ%0ˆÐ!Ñ"à × Ñ ˜zÔ *Ø1;° ˆ%Ð,Ñ -Ø%*¨<Ñ%8ˆ%Ð!Ò "à1BÐ0Cˆ%Ð,Ñ -ð&(ˆ%Ð!Ñ "Ø/4„m× Ñ  Ñ,ô ”×+Ñ+¨JÑ7Ó 8€EØ ‡z‚zØ $× :Ñ :¸:Ó F€eÐ ÑØ €Lrcót—t«\}}|dkry|jd«}tjj |«}|r|S t ddg«}|j «D]I}|j«}t|«dk\sŒ"|ddk(sŒ+|d}|j|«} | |k(sŒG|cSy#YyxYw) zûReturns the default SDKROOT to use. Prior to version 5.0.0, if SDKROOT was not explicitly set in the Xcode project, then the environment variable was empty. Starting with this version, Xcode uses the name of the newest SDK installed. r9r.Ú xcodebuildz -showsdksråéþÿÿÿz-sdkéÿÿÿÿ) rArrFr rPrörÞr[r5) rrBrÚdefault_sdk_pathÚdefault_sdk_rootÚall_sdksrárOrÿr s r rzXcodeSettings._DefaultSdkRootãsÍ€ô".£Ñ€M�;Ø�vÒØ Ø×)Ñ)¨"Ó-ÐÜ$×4Ñ4×8Ñ8Ð9IÓJÐÙØ ÐðܘL¨+Ð6Ó7€hð×#Ñ#Ö%ˆØ�j‰j‹l€eÜ ˆU‹�q‹˜U 2™Y¨&Ó0ؘ‘9ˆØ×%Ñ% hÓ/ˆØ Ð'Ó 'ØŠ/ð &ð øðá ús Á B3Â3B7rb©F)Rr2r3r4r5rrþr rrÛrrQrdrhrmrorurzryr~rrˆr‹rŽr”r¤r¨r¬rªr³r¶rºr½rÁrÄrÇrÊrÍrÏrÒrÙrÜrßrãr«rÛrëròrùrürrrrr=rDrUr]rcrfrirmrqrwr}r‹r›rŸr§rûr“r¼r¿rÁrÕrÉrèrñrôr÷rþrrrrr rFrF’s·„ÙAð€/ØÐØ€/ð€,ðÐò=ò4ò"0ò?ó,ò Jòò òò;ò=ò;ò@ò7òFò 7ò*Cò-ò>ò =òIòGò@ò Jò ,ò+òGò Kò 5òò@ ò2òòò/ò(-ò-ò(ò òGó 8ó(ò 3ò 3óyòv ò'òR%ò"ò 8ò ò ò ò ò$òLó8^ò@ò ó"8ó ò"!òFð("'óDòAòFBð$(*°ó#óó>ò3ò/ó/óbrrFcó:—eZdZdZd„Zd„Zd d„Zd„Zd d„Zd d„Z y) ÚMacPrefixHeadera²A class that helps with emulating Xcode's GCC_PREFIX_HEADER feature. This feature consists of several pieces: * If GCC_PREFIX_HEADER is present, all compilations in that project get an additional |-include path_to_prefix_header| cflag. * If GCC_PRECOMPILE_PREFIX_HEADER is present too, then the prefix header is instead compiled, and all other compilations in the project get an additional |-include path_to_compiled_header| instead. + Compiled prefix headers have the extension gch. There is one gch file for every language used in the project (c, cc, m, mm), since gch files for different languages aren't compatible. + gch files themselves are built with the target's normal cflags, but they obviously don't get the |-include| flag. Instead, they need a -x flag that describes their language. + All o files in the target need to depend on the gch file, to make sure it's built before any o file is built. This class helps with some of these tasks, but it needs help from the build system for writing dependencies to the gch files, for writing build commands for the gch files, and for figuring out the location of the gch files. cóB—d|_d|_|r1|jd«|_|jdd¬«dk7|_i|_|jrK|jr'dD]"}||j|«|j|<Œ$||j«|_yy)aIf xcode_settings is None, all methods on this class are no-ops. Args: gyp_path_to_build_path: A function that takes a gyp-relative path, and returns a path relative to the build directory. gyp_path_to_build_output: A function that takes a gyp-relative path and a language code ('c', 'cc', 'm', or 'mm'), and that returns a path to where the output of precompiling that path for that language should be placed (without the trailing '.gch'). NFÚGCC_PREFIX_HEADERÚGCC_PRECOMPILE_PREFIX_HEADERrr’)ÚcÚccrŠÚmm)ÚheaderÚcompile_headersr“Úcompiled_headers)rrIÚgyp_path_to_build_pathÚgyp_path_to_build_outputÚlangs r rzMacPrefixHeader.__init__s§€ð€D„KØ €DÔÙØ"×6Ñ6Ð7JÓK€d„kØ+×?Ñ?Ø (°$ð@ó8Ø;?ñ@€dÔà€DÔØ ‡{‚{Ø × Ò Û*ˆDÙ(@Ø�k‰k˜4ó)!ˆ$× Ñ  Ò %ð+ñ+¨4¯;©;Ó7€d…kð rcóT—|jsJ‚|j|}|r|d|zz }|S)Nr›)r)r*)rr-r(Úhs r Ú_CompiledHeaderzMacPrefixHeader._CompiledHeader2s6€Ø × Ò ÐÐ Ø ×јdÑ#€A٠؈3�‰:�o€aØ €HrNcó˜—|jr#||jvrd|j||«zS|jrd|jzSy)zAGets the cflags to include the prefix header for language |lang|.z -include %sr.)r)r*r0r(©rr-r(s r Ú GetIncludezMacPrefixHeader.GetInclude9sI€à ×Ò ¨×(=Ñ(=Ñ =Ø ˜T×1Ñ1°$¸Ó=Ñ =Ð=Ø �ŠØ ˜TŸ[™[Ñ (Ð(à rcóH—|jsJ‚|j||«dzS)zFReturns the actual file name of the prefix header for language |lang|.z.gch)r)r0r2s r Ú_GchzMacPrefixHeader._GchBs)€à × Ò ÐÐ Ø × Ñ   dÓ +¨fÑ 4Ð4rc ó*—|jr |jsgSg}t||«D]g\}}tjj |«d}dddddddœj |d«}|sŒD|j|||j||«f«Œi|S)aGiven a list of source files and the corresponding object files, returns a list of (source, object, gch) tuples, where |gch| is the build-directory relative path to the gch file each object file depends on. |compilable[i]| has to be the source file belonging to |objs[i]|.r)r%r&rŠr')z.cz.cppz.ccz.cxxz.mz.mmN) r(r)Úzipr±r²rêrPr#r5) rÚsourcesÚobjsr(r¥rÌÚobjrïr-s r ÚGetObjDependenciesz"MacPrefixHeader.GetObjDependenciesGsœ€ð �;Š;˜d×2Ò2Ø €ià €Fܘ7 DÖ)‰ ˆ�Ü �G‰G× Ñ ˜VÓ $ QÑ '€càØ˜T¨4ØØñ ÷ ‰ˆC�‹ð  ò Ø� ‰ �v˜s D§I¡I¨d°DÓ$9Ð:Õ;ð*ð €Mrcó2—|jr |jsgS|jd|«dd|jf|jd|«dd|jf|jd|«dd|jf|jd|«dd|jfgS) z‚Returns [(path_to_gch, language_flag, language, header)]. |path_to_gch| and |header| are relative to the build directory. r%z -x c-headerr&z -x c++-headerrŠz-x objective-c-headerr'z-x objective-c++-header)r(r)r5)rr(s r ÚGetPchBuildCommandsz#MacPrefixHeader.GetPchBuildCommands\s�€ð �;Š;˜d×2Ò2Ø €ià ‡y�y��dÓ˜]¨C°·±Ð=Ø ‡y�y��tÓ˜o¨t°T·[±[ÐAØ ‡y�y��dÓÐ4°c¸4¿;¹;ÐGØ ‡y�y��tÓÐ7¸¸t¿{¹{ÐKð  ðrrb) r2r3r4r5rr0r3r5r;r=rrr r!r!s%„ñò*8ò8 óò5ó ô* rr!cóø—trtS tddg«j«}t|«dkr t d«‚ |d}|d }|j«d jd d«}|d d t|«z zzjd «}|r|j«d }||fatS#t «}|r(t jd|«j«d}n t d«‚|dg}YŒ¶xYw)z@Returns a tuple of version and build version of installed Xcode.rz-versionéz&xcodebuild returned unexpected resultsz(\d\.\d\.?\d*)rz!No Xcode or CLT version detected!r.rr›Ú0råé) ÚXCODE_VERSION_CACHErörÞr5rÚ CLTVersionr6r"Úgroupsr[r6Úzfill)Ú version_listÚversionÚbuilds r rArAjs€õÜ Ðð!ܘl¨JÐ7Ó8×CÑCÓE€Lô  ˆ<Ó˜1ÒÜ Ð=Ó >Ð>ð𠘉O€'Ø �rÑ €%à �M‰M‹O˜BÑ × 'Ñ '¨¨RÓ 0€'Ø �s˜a¤# g£,Ñ.Ñ/Ñ /× 6Ñ 6°qÓ 9€'Ù Ø �K‰K‹M˜"Ñ €EØ  %Ð(ÐÜ Ðøð!!Ü‹l€GÙÜ—‘Ð*¨GÓ4×;Ñ;Ó=¸aÑ@�gä Ð8Ó 9Ð9à˜R�=‚Lús Ž4B2Â2AC9cóÊ—d}d}d}tjd«}|||fD]9} tdd|g«}tj||«j «dcSy#YŒAxYw) z7Returns the version of command-line tools from pkgutil.z"com.apple.pkg.DeveloperToolsCLILeozcom.apple.pkg.DeveloperToolsCLIz!com.apple.pkg.CLTools_Executableszversion: (?P.+)z/usr/sbin/pkgutilz --pkg-inforGN)r6r7röÚsearchÚ groupdict)ÚSTANDALONE_PKG_IDÚFROM_XCODE_PKG_IDÚMAVERICKS_PKG_IDr‰r^r¾s r rCrC”sy€ð;ÐØ7ÐØ8Ðä �*‰*Ð/Ó 0€%ØÐ 1Ð3DÓ E€cðÜÐ-¨|¸SÐAÓB€fÜ �Y‰Y�u˜fÓ %× /Ñ /Ó 1°)Ñ <Ò<ñFøðÙús ¥4AÁA"cóN—tj|tj¬«}|j«d}|jdk7r?t j j|dz«td|j|dfz«‚|jd«jd«S)z�Returns the content of standard output returned by invoking |cmdlist|. Raises |GypError| if the command return with a non-zero return code.)Ústdoutró zError %d running %srÚ) rÜÚPopenÚPIPEÚ communicateÚ returncodeÚsysÚstderrÚwriterÚrstriprß)ÚcmdlistÚjobÚouts r röröªs…€ô ×ј¬¯©Ô9€#Ø �‰Ó˜!Ñ€#؇^�^�qÒ܇J�J×Ñ�S˜5‘[Ô!Ü Ð(¨C¯N©N¸GÀA¹JÐ+GÑGÓ HÐHØ �‰�EÓ × !Ñ ! 'Ó *Ð*rcó´—|jdi«}|dj«D]0}d|vsŒ|j«}|j|d«||d<Œ2y)zÕMerges the global xcode_settings dictionary into each configuration of the target represented by spec. For keys that are both in the global and the local xcode_settings dict, the local key gets precendence. rIrHN)rPÚvaluesÚcopyÚupdate)Ú global_dictrKÚglobal_xcode_settingsrUÚ new_settingss r ÚMergeGlobalXcodeSettingsToSpecrdµsd€ð&Ÿ/™/Ð*:¸BÓ?ÐØÐ%Ñ&×-Ñ-Ö/€fؘ6Ò!Ø*×/Ñ/Ó1€lØ×ј&Ð!1Ñ2Ô3Ø!-€fÐ Òñ 0rcóþ—t|jdd««dk7xsEt|jdd««dk7xs%t|jdd««dk7xr|dk(}|r|ddk7s Jd|d z«‚|S) zêReturns if |spec| should be treated as a bundle. Bundles are directories with a certain subdirectory structure, instead of just a single file. Bundle rules do not produce a binary but also package resources into that directory.r�rr…r|rrwÚnonez6mac_bundle targets cannot have type none (target "%s")r )r}rP)ÚflavorrKÚ is_mac_bundles r Ú IsMacBundleriÅsž€ô �d—h‘hÐ2°AÓ6Ó7¸1Ñ<ò@Ü ˆ$�(‰(Ð(¨!Ó ,Ó-°Ñ2ò@ä ˆ4�8‰8�L !Ó $Ó%¨Ñ*Ò>¨v¸©ðñØ �‰<˜6Ò !ðØ@Ø ˆ]Ññ óÐ !ð Ðrc#ó´K—tjj||j««}|D�] }|}d|vs Jd|z«‚tjj |«}tjj |d«}|dj d«r#tjj||d«}tjj||d«}|j d«r%tjj |«ddz}|j d«r%tjj |«dd z}||f–—�Œ#y ­w) avYields (output, resource) pairs for every resource in |resources|. Only call this for mac bundle targets. Args: product_dir: Path to the directory containing the output bundle, relative to the build directory. xcode_settings: The XcodeSettings of the current target. resources: A list of bundle resources, relative to the build directory. rYz/Spaces in resource filenames not supported (%s)rr)z.lprojz.xibz.nibz .storyboardz .storyboardcN)r±r²r\r¶r[rZrê)r–rIÚ resourcesÚdestÚresr¾Ú res_partsÚ lproj_partss r ÚGetMacBundleResourcesrpÖs#èø€ô �‰�‰�kØ$×<Ñ<Ó>ó @€$ä €cØ €Fð �c‰>ð@Ø7¸3Ñ>ó@ˆ>ô—‘— ‘ ˜cÓ"€Iô—'‘'—-‘-  ¨!¡ Ó-€Kà�1�~×јxÔ(Ü�w‰w�|‰|˜F K°¡NÓ3€fä �W‰W�\‰\˜& )¨A¡,Ó /€Fà ‡��vÔÜ�w‰w×Ñ Ó'¨Ñ*¨VÑ3€fà ‡��}Ô%Ü�w‰w×Ñ Ó'¨Ñ*¨^Ñ;€fà �#ˆ+Ôñ3ùs‚EEcóf—|jd«}|sddgifSd|vs Jd|z«‚||«}|jdd¬«dk(r'tj|jd d ¬««}ng}tjj ||j ««}|j«}||||fS) a)Returns (info_plist, dest_plist, defines, extra_env), where: * |info_plist| is the source plist path, relative to the build directory, * |dest_plist| is the destination plist path, relative to the build directory, * |defines| is a list of preprocessor defines (empty if the plist shouldn't be preprocessed, * |extra_env| is a dict of env variables that should be exported when invoking |mac_tool copy-info-plist|. Only call this for mac bundle targets. Args: product_dir: Path to the directory containing the output bundle, relative to the build directory. xcode_settings: The XcodeSettings of the current target. gyp_to_build_path: A function that converts paths relative to the current gyp file to paths relative to the build direcotry. ÚINFOPLIST_FILENrYz1Spaces in Info.plist filenames not supported (%s)ÚINFOPLIST_PREPROCESSrr’rÚ"INFOPLIST_PREPROCESSOR_DEFINITIONSr.)r“Úshlexr[r±r²r\rÏr§)r–rIr+Ú info_plistÚdefinesÚ dest_plistÚ extra_envs r ÚGetMacInfoPlistrzþsÞ€ð(×1Ñ1Ð2BÓC€*Ù Ø ��r˜2Ð Ðð �JÑ ðGØ7¸:ÑEóGÐ ñ& jÓ1€*ð×'Ñ'Ø dð(ó,Ø/4ò5ô�k‰k˜.×<Ñ<Ø,°bð=ó:ó;�Gð€Gä�w‰w�|‰|˜K¨×)JÑ)JÓ)LÓM€*Ø×1Ñ1Ó3€)à �Z ¨)Ð 3Ð3rc óΗ|siS|j}||||j«|d|dt«ddœ }|jd|«r|j |«|d<nd|d<|j r|j |d<|dd vrc|j «|d <|j«|d <|j«|d <|j«}|r||d <|j«|d<|j«�rtjj|tjz|j!«z«|d<|j#«|d<|j%«|d<|j'«|d<|j)«|d<|j!«|d<|j+«|d<|j-«|d<|j/«|d<|j1«|d<|j3«|d<|j5«|d<|j7«}|r||d<|j9«} | r| |d<t«ddk\r:|j;d«s)|j=|«} | s|j?d«} | |d<|si}n2|D]-} tA|| tB«rŒdj|| «|| <Œ/|jE|«|D]} tG|| «|| <Œ|S)aŒReturn the environment variables that Xcode would set. See http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-SW153 for a full list. Args: xcode_settings: An XcodeSettings object. If this is None, this function returns an empty dict. built_products_dir: Absolute path to the built products dir. srcroot: Absolute path to the source root. configuration: The build configuration name. additional_settings: An optional dict with more values to add to the result. z ${SRCROOT}z ${TMPDIR}r) ÚBUILT_FRAMEWORKS_DIRÚBUILT_PRODUCTS_DIRÚ CONFIGURATIONÚ PRODUCT_NAMEÚSRCROOTÚ SOURCE_ROOTÚTARGET_BUILD_DIRÚTEMP_DIRÚXCODE_VERSION_ACTUALrïr.Ú DEVELOPER_DIRrwrØÚEXECUTABLE_NAMEÚEXECUTABLE_PATHÚFULL_PRODUCT_NAMEr'r(r|ÚCONTENTS_FOLDER_PATHÚEXECUTABLE_FOLDER_PATHÚ!UNLOCALIZED_RESOURCES_FOLDER_PATHÚJAVA_FOLDER_PATHÚFRAMEWORKS_FOLDER_PATHÚSHARED_FRAMEWORKS_FOLDER_PATHÚSHARED_SUPPORT_FOLDER_PATHÚPLUGINS_FOLDER_PATHÚXPCSERVICES_FOLDER_PATHÚINFOPLIST_PATHÚ WRAPPER_NAMEryror9rY)$rKr¨rArûrrMrÛrër¬rÙrÒryr±r²r\ÚseprÁr³rºr¶r½rÄrÇrÊrÍrÏrªr}rqrPrürÚ isinstancerjr`rµ) rIÚbuilt_products_dirÚsrcrootÚ configurationÚadditional_settingsrKÚenvÚ mach_o_typer|Úinstall_name_baserÿÚks r Ú _GetXcodeEnvrž-sK€ñ  ˜ð × Ñ €$ð0Ø-Ø#Ø#×2Ñ2Ó4àØð,ØÜ)›^¨AÑ.ñ €#ð×'Ñ'¨ °=ÔAØ#×,Ñ,¨]Ó;€Cˆ ‚Nà€Cˆ �Nà×%Ò%Ø)×;Ñ;€CˆÑà ˆ&�\ðKñKà+×=Ñ=Ó?€CÐÑØ+×=Ñ=Ó?€CÐÑØ-×@Ñ@ÓB€CÐÑØ ×-Ñ-Ó/€KÙØ&€cˆ-ÑØ(×7Ñ7Ó9€CˆÑØ×ÑÕô �‰� ‰ Ð'¬"¯&©&Ñ0Ø%×CÑCÓEñFó GðÐÑð ×2Ñ2Ó4ðÐÑð ×4Ñ4Ó6ðÐ Ñ!ð ×.Ñ.Ó0ðÐ+Ñ,à,×DÑDÓF€CÐÑà×4Ñ4Ó6ðÐ Ñ!ð ×:Ñ:Ó<ðÐ'Ñ(ð ×7Ñ7Ó9ðÐ$Ñ%à!/×!JÑ!JÓ!L€CÐÑà×5Ñ5Ó7ðÐ!Ñ"à*×=Ñ=Ó?€CÐÑØ(×7Ñ7Ó9€CˆÑà×.Ñ.Ó0€,ÙØ#/€CÐÑ Ø$×7Ñ7Ó9ÐÙØ%6€CÐ!Ñ"܃^�Aј&Ò ¨¯©°Ô);Ø×&Ñ& }Ó5€HÙ Ø×-Ñ-¨bÓ1€hØ€Cˆ �Ná ØÑó!ˆÜ Ð+¨AÑ.´Õ 4Ø!$§¡Ð*=¸aÑ*@Ó!AИAÒð!ð×јSÔ!ã €aÜ7Ð8KÈAÑ8NÓOИÒð ð ÐrcóÄ—tjdd|«}tjd|«}|D]-}|\}}d|vs Jd|z«‚|j|d|zdz«}Œ/|S)z�Takes a string containing variable references in the form ${FOO}, $(FOO), or $FOO, and returns a string with all variable references in the form ${FOO}. z\$([a-zA-Z_][a-zA-Z0-9_]*)z${\1}z(\$\(([a-zA-Z0-9\-_]+)\))ú$(z#$($(FOO)) variables not supported: ú${Ú})r6ÚsubÚfindallr6)rjÚmatchesr"Ú to_replacer)s r rµrµ—sw€ô �‰Ð,¨h¸Ó<€#ô �J‰JÐ3°SÓ 9€'Û€eØ Ñ€J�Ø �uÑ ÐKÐCÀeÑKÓKÐ Ø �+‰+�j $¨¡/°CÑ"7Ó 8�Cðð €*rcó¶—t|«D]J\}}|jd|zdz|«}|jd|zdz|«}|jd|z|«}ŒL|S)aExpands ${VARIABLES}, $(VARIABLES), and $VARIABLES in string per the expansions list. If the variable expands to something that references another variable, this variable is expanded as well if it's in env -- until no variables present in env are left.r¡r¢r r«rz)Úreversedr6)ÚstringÚ expansionsr�Úvs r Ú ExpandEnvVarsr¬¨sb€ô �zÖ"�d€aˆØ �^‰^˜D 1™H s™N¨AÓ .€FØ �^‰^˜D 1™H s™N¨AÓ .€FØ �^‰^˜C !™G QÓ '�Fð#ð €-rcóJ‡‡—tjd«Šˆˆfd„} tjj ‰j «|«}|j «|S#tjj$r&}tdt|j«z«‚d}~wwxYw)aTakes a dict |env| whose values are strings that can refer to other keys, for example env['foo'] = '$(bar) and $(baz)'. Returns a list L of all keys of env such that key2 is after key1 in L if env[key2] refers to env[key1]. Throws an Exception in case of dependency cycles. z\$\{([a-zA-Z0-9\-_]+)\}c󜕗t‰j‰|«D�cgc] }|‰vsŒ|‘Œ c}«}|D]}d|vrŒJd|z«‚|Scc}w)Nr¡z Nested variables not supported: )rÊr¤)Únoder«r¥Údependeeršr‰s €€r ÚGetEdgesz0_TopologicallySortedEnvVarKeys..GetEdges¿saø€ô ˜eŸm™m¨C°©IÔ6ÓCÑ6˜¸!¸sº(’1Ð6ÑCÓD€GÛˆØ ˜Ò !ÐPÐ#EÈÑ#PÓPÐ !ðà €NùòDs � A §A z6Xcode environment variables are cyclically dependent: N) r6r7ÚgypÚcommonÚTopologicallySortedr¢ÚreverseÚ CycleErrorrrjÚnodes)ršr±Úorderr+r‰s` @r Ú_TopologicallySortedEnvVarKeysr¹´s†ù€ô �*‰*Ð/Ó 0€%õ ð Qô �J‰J× *Ñ *¨3¯8©8«:°xÓ @€EØ ‡M�M„OØ €LøÜ �‰× Ñ òQÜ Ø@Ä3ÀqÇwÁwÃ<ÑOó QðQûðQúsŸ?AÁB"Áô?à×Ñ”c—j‘j×5Ñ5°iÀÑ6IÓJÕKð .ð Ðrcó¦—|j«D]>}|dj«D]&}|jdi«jd«sŒ%yŒ@y)zVReturns true if any target contains the iOS specific key IPHONEOS_DEPLOYMENT_TARGET.rHrIrJTF)r^rP)rÔÚ target_dictrUs r Ú _HasIOSTargetrÄésQ€ð—^‘^Ö%€kØÐ.Ñ/×6Ñ6Ö8ˆØ �‰Ð$ bÓ )× -Ñ -Ð.JÕ KÚñ9ð&ð rcóü—|j«D]h}|d}|d}t|«j«D]@\}}tj|«}|||dz<|||dz<|dk(sŒ1d|dd<d |dd<ŒBŒj|S) z–Clone all targets and append -iphoneos to the name. Configure these targets to build for iOS devices and use correct architectures for those builds.ÚtoolsetrHz -iphoneosz-iphonesimulatorrærrIrïr)r^r£rOr_Údeepcopy)rÔrÃrÆrTríÚsimulator_config_dictÚiphoneos_config_dicts r Ú_AddIOSDeviceConfigurationsrÊós¨€ð—^‘^Ö%€kؘ)Ñ$€GØÐ*Ñ+€Gä.2°7«m×.AÑ.AÖ.CÑ*ˆ Ð*Ü!Ÿ]™]Ð+@ÓAÐØ+?€gˆk˜KÑ'Ñ(Ø2G€gˆkÐ.Ñ.Ñ/Ø �HÓ Ø=NÐÐ.Ñ/° Ñ:ØrÓsÕðñ õ &ã ÛÛ ÛÛ Û ÛÛ ÛÝð Ðð!Ðóô5˜ô5òp.#ôbk�Fôkô\#g�fôgòT&òTò,+ò .ò ò"%òP,4ð`%)ógòT ò" òQðF:>óJó òòó r