%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/
Upload File :
Create Path :
Current File : //lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyo

�
vפ\c@s�dZddlZddlZddlZddlZddlZddlZidd6dd6dd6dd	6dd
6dd6d
d6dd6dd6dd6dd6dd6dd6dd6dd6dd 6d!d"6Zd#dd$fZ	e
Ze
Zid%d&6d'd(6d'd)6d'd*6d+d,6d+d-6Z
d.�Zd/�Zd0�Zd1�Zd2�Zd3�Zd4�Zd5�Zd6�Zdd7�Zd8�Zd9�Zd:�Zed;�Zd<efd=��YZied>ed?�d@6edAdBdC�dD6edAdEdF�dG6edAdHdF�dI6edJdKe�dL6ZdM�Z dN�Z!dO�Z"dP�Z#dQ�Z$dR�Z%dS�Z&dTefdU��YZ'dV�Z(dW�Z)dX�Z*dY�Z+dZ�Z,dS([s�cmake output module

This module is under development and should be considered experimental.

This module produces cmake (2.8.8+) input as its output. One CMakeLists.txt is
created for each configuration.

This module's original purpose was to support editing in IDEs like KDevelop
which use CMake for project management. It is also possible to use CMake to
generate projects for other IDEs such as eclipse cdt and code::blocks. QtCreator
will convert the CMakeLists.txt to a code::blocks cbp for the editor to read,
but build using CMake. As a result QtCreator editor is unaware of compiler
defines. The generated CMakeLists.txt can also be used to build on Linux. There
is currently no support for building on platforms other than Linux.

The generated CMakeLists.txt should properly compile all projects. However,
there is a mismatch between gyp and cmake with regard to linking. All attempts
are made to work around this, but CMake sometimes sees -Wl,--start-group as a
library and incorrectly repeats it. As a result the output of this generator
should not be relied on for building.

When using with kdevelop, use version 4.4+. Previous versions of kdevelop will
not be able to find the header file directories described in the generated
CMakeLists.txt file.
i����NttEXECUTABLE_PREFIXtEXECUTABLE_SUFFIXtlibtSTATIC_LIB_PREFIXs.atSTATIC_LIB_SUFFIXtSHARED_LIB_PREFIXs.sotSHARED_LIB_SUFFIXs${builddir}/lib.${TOOLSET}tSHARED_LIB_DIRs${obj}.${TOOLSET}tLIB_DIRs ${obj}.${TOOLSET}/${TARGET}/genitINTERMEDIATE_DIRs
${obj}/gentSHARED_INTERMEDIATE_DIRs${builddir}tPRODUCT_DIRs${RULE_INPUT_PATH}tRULE_INPUT_PATHs${RULE_INPUT_DIRNAME}tRULE_INPUT_DIRNAMEs${RULE_INPUT_NAME}tRULE_INPUT_NAMEs${RULE_INPUT_ROOT}tRULE_INPUT_ROOTs${RULE_INPUT_EXT}tRULE_INPUT_EXTs${configuration}tCONFIGURATION_NAMEs${CMAKE_CURRENT_LIST_DIR}s${obj}tccs.ctcxxs.ccs.cpps.cxxtss.ss.ScCs!|j|�r|t|�S|S(s8Returns 'a' without 'prefix' if it starts with 'prefix'.(t
startswithtlen(tatprefix((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytRemovePrefixIscCs |jdtjj|��dS(sDCalculate additional variables for use in the build (called by gyp).tOSN(t
setdefaulttgyptcommont	GetFlavor(tdefault_variablestparams((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytCalculateVariablesNscst�fd�tD��S(s:Return true if the file is compilable (should be in OBJS).c3s|]}�j|�VqdS(N(tendswith(t.0te(tfilename(sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pys	<genexpr>Us(tanytCOMPILABLE_EXTENSIONS(R&((R&sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyt
CompilableSscCs
|jd�S(sAReturn true if the file is linkable (should be on the link line).s.o(R#(R&((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytLinkableXscCsptjj|�r|StgtD]}|j|�^q �rB|Stjjdtjjtjj||���S(sResolves rel_path against base_path and returns the result.

  If rel_path is an absolute path it is returned unchanged.
  Otherwise it is resolved against base_path and normalized.
  If the result is a relative path, it is forced to be relative to the
  CMakeLists.txt.
  s${CMAKE_CURRENT_LIST_DIR}(tostpathtisabsR'tFULL_PATH_VARSRtjointnormpath(t	base_pathtrel_pathtvar((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytNormjoinPathForceCMakeSource]s(cCsB|jd�r#|jd�r#|Stjjtjj||��S(s�Resolves rel_path against base_path and returns the result.
  TODO: what is this really used for?
  If rel_path begins with '$' it is returned unchanged.
  Otherwise it is resolved against base_path if relative, then normalized.
  t$s${configuration}(RR+R,R0R/(R1R2((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytNormjoinPathnscCs(|jdd�jdd�jdd�S(sEscapes the string 'a' for use inside a CMake string.

  This means escaping
  '' otherwise it may be seen as modifying the next character
  '"' otherwise it will end the string
  ';' otherwise the string becomes a list

  The following do not need to be escaped
  '#' when the lexer is in string state, this does not start a comment

  The following are yet unknown
  '$' generator variables (like ${obj}) must not be escaped,
      but text $ should be escaped
      what is wanted is to know which $ come from generator variables
  s\s\\t;s\;t"s\"(treplace(R((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytCMakeStringEscapeyscCs�|jd�|j|�|jd�|j|�|jd�x.|D]&}|jt|��|j|�qHW|jd�dS(s<Given a set of source file, sets the given property on them.sset_source_files_properties(s PROPERTIES s "s")
N(twriteR:(toutputtsource_namet
property_nametvaluestseptvalue((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytSetFileProperty�s





cCs�|jd�t||�|jd�|j|�|jd�x.|D]&}|jt|��|j|�qHW|jd�dS(s=Given a set of source files, sets the given property on them.sset_source_files_properties(s PROPERTIES s "s")
N(R;t
WriteVariableR:(R<tvariableR>R?R@RA((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytSetFilesProperty�s





cCs�|jd�|j|�|jd�|j|�|jd�x.|D]&}|jt|��|j|�qHW|jd�dS(s(Given a target, sets the given property.sset_target_properties(s PROPERTIES s "s")
N(R;R:(R<ttarget_nameR>R?R@RA((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytSetTargetProperty�s





cCsK|jd�|j|�|jd�|jt|��|jd�dS(sSets a CMake variable.sset(s "s")
N(R;R:(R<t
variable_nameRA((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytSetVariable�s



cCs�|st||d�St|�dkr<t|||d�S|jd�|j|�|jd�|jdjg|D]}t|�^qv��|jd�dS(	s Sets a CMake variable to a list.Riislist(APPEND s
  "s"
  "s")
N(RIRR;R/R:(R<RHR?RA((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytSetVariableList�s


/cCs+|jd�|j|�|jd�dS(sUnsets a CMake variable.sunset(s)
N(R;(R<RH((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyt
UnsetVariable�s

cCsA|r|j|�n|jd�|j|�|jd�dS(Ns${t}(R;(R<RHtprepend((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyRC�s


tCMakeTargetTypecBseZd�ZRS(cCs||_||_||_dS(N(tcommandtmodifiertproperty_modifier(tselfRORPRQ((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyt__init__�s		(t__name__t
__module__RS(((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyRN�stadd_executabletRUNTIMEt
executabletadd_librarytSTATICtARCHIVEtstatic_librarytSHAREDtLIBRARYtshared_librarytMODULEtloadable_moduletadd_custom_targettSOURCEStnonecCs|jtjdd��S(s�Converts the given string 'a' to a valid CMake target name.

  All invalid characters are replaced by '_'.
  Invalid for cmake: ' ', '/', '(', ')', '"'
  Invalid for make: ':'
  Invalid for unknown reasons but cause failures: '.'
  s /():."t_______(t	translatetstringt	maketrans(R((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytStringToCMakeTargetName�sc	Cs�x�|D]�}t|d�}d||f}|d}	|d}
t||
g|	D]}t||�^qQ�|d}g|D]}
t||
�^q~}|d}t|||�td�d�|D�D��}t|jd	t��r|jt||��n|j	d
�t
||�|j	d�t|�dkrxx8|D]-}|j	d
�|j	|�|j	d�qDWn|j	d�|j	tj
j|d��|j	d�|j	d�t
||
�|j	d�|j	d�|j	|�|j	d�|j	d�d|kr*|j	|d�n
|j	|�|j	d�|j	d�|j	d�|j	d�|j	|�|j	d�t
||�|j	d�t
||
�|j	d�|j|�qWdS(s�Write CMake for the 'actions' in the target.

  Args:
    target_name: the name of the CMake target being generated.
    actions: the Gyp 'actions' dict for this target.
    extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
    extra_deps: [<cmake_taget>] to append with generated targets.
    path_to_gyp: relative path from CMakeLists.txt being generated to
        the Gyp file in which the target being generated is defined.
  taction_names%s__%stinputst__inputtoutputst__outputcss|]}|r|VqdS(N((R$tdir((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pys	<genexpr>scss!|]}tjj|�VqdS(N(R+R,tdirname(R$to((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pys	<genexpr>stprocess_outputs_as_sourcessadd_custom_command(OUTPUT s
is-  COMMAND ${CMAKE_COMMAND} -E make_directory s
  COMMAND tactions
  DEPENDS s.  WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/s
  COMMENT tmessages  VERBATIM
s)
sadd_custom_target(s
  DEPENDS s
  SOURCES s
)
N(RiRJR4tsettinttgettFalsetextendtzipR;RCRRRtEncodePOSIXShellListtappend(RFtactionst
extra_sourcest
extra_depstpath_to_gypR<RsRjtaction_target_nameRktinputs_nametdepRmtoutt
cmake_outputstoutputs_nametdirst	directory((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytWriteActions�s^


	#

 

























cCsK|jd�r>tgtD]}|j|�^q�r>|Snt||�S(Ns${RULE_INPUT_PATH}s${RULE_INPUT_DIRNAME}(s${RULE_INPUT_PATH}s${RULE_INPUT_DIRNAME}(RR'R.R4(R1R2trule_sourceR3((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyt NormjoinRulePathForceCMakeSourceBs(c
Cs�x�|D]�}t|d|d�}|jdg�}|d}	t||	g|D]}
t||
�^qQ�|d}g}xTt|jdg��D]:\}
}|dt|
�}tjj|�\}}tjj	|�\}}t
|d|�t
|d	|�t
|d
|�t
|d|�t
|d|�td
�d�|D�D��}g}x�t|�D]�\}}|dt|�}t
||t|||��t
|jdt��r�|jd|d|f�n|jd|d�|jd|d�qiW|jd�x5|D]-}|jd�|j|�|jd�qWx5|D]-}|jd�|j|�|jd�qUW|jd�|jtjj|d��|jd�|jd�t||	�|jd�|jt||��|jd�|jd�|j|�|jd�|jd�d|kr[|j|d�n
|j|�|jd�|jd�|jd�t|d�t|d	�t|d
�t|d�t|d�q�W|jd�|j|�|jd �x5|D]-}|jd�|j|�|jd�qW|jd!�t||	�|jd�xJ|jdg�D]6}|jd�|jt||��|jd�qmW|jd�|j|�qWd"S(#s�Write CMake for the 'rules' in the target.

  Args:
    target_name: the name of the CMake target being generated.
    actions: the Gyp 'actions' dict for this target.
    extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
    extra_deps: [<cmake_taget>] to append with generated targets.
    path_to_gyp: relative path from CMakeLists.txt being generated to
        the Gyp file in which the target being generated is defined.
  t__t	rule_nameRkRlRmtrule_sourcest_R
RRRRcss|]}|r|VqdS(N((R$Ro((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pys	<genexpr>mscss!|]}tjj|�VqdS(N(R+R,Rp(R$Rq((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pys	<genexpr>msRrs${RLsadd_custom_command(OUTPUT
s  s
s-  COMMAND ${CMAKE_COMMAND} -E make_directory s
  COMMAND Rss
  DEPENDS t s.  WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/s
  COMMENT Rts  VERBATIM
s)
sadd_custom_target(s	 DEPENDS
sSOURCES N(RiRwRJR4t	enumeratetstrR+R,tsplittsplitextRIRuR�RvRxR|R;RRR{RCR6RK(RFtrulesR~RR�R<truleR�RkR�R�Rmtvar_outputstcountR�Rjtrule_source_dirnametrule_source_basenametrule_source_roottrule_source_extR�t
these_outputstoutput_indexR�toutput_nameR�((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyt
WriteRulesIs�

	#
% 		




































cCs-|d}td�|D��}|s^|jd�|j|�|jd�|j|�dSdtfd��Y}|dd	�}|d
d�}	x�|D]�}
|
d}|
d
}x�|D]�}
tjj|
�}tjj|�d}tjj||�}tjj	|
�r|n|	}
|
j
jt||
��|
jjt||��|
j
j|
�|
jj|�q�Wq�Wxt||	fD]f}
|
j
r�|d|
j|
_t||
j|
j
�|d|
j|
_t||
j|
j�q�q�W|jd�|jd�x3||	fD]%}
|
jrt||
jd�qqW|jd�x�||	fD]t}
xkt|
j
|
j�D]T\}
}|jd|
j�|j|
�|jd�|j|�|jd�qrWqVW|jd�x3||	fD]%}
|
jr�t||
jd�q�q�W|jd�|jd�|j|�|jd�|jd�|j|�|jd�|jd�|jd�|jd�|j|�|jd�x3||	fD]%}
|
jr�t||
jd�q�q�W|jd�|jrt||jd�n|jd�|j|�dS(sxWrite CMake for the 'copies' in the target.

  Args:
    target_name: the name of the CMake target being generated.
    actions: the Gyp 'actions' dict for this target.
    extra_deps: [<cmake_taget>] to append with generated targets.
    path_to_gyp: relative path from CMakeLists.txt being generated to
        the Gyp file in which the target being generated is defined.
  t__copiescss|]}|dVqdS(tfilesN((R$tcopy((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pys	<genexpr>�ssadd_custom_target(s)
NtCopycBseZd�ZRS(cSsLg|_g|_g|_g|_||_d|_d|_||_dS(N(	tcmake_inputsR�t
gyp_inputstgyp_outputstexttNoneR�R�RO(RRR�RO((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyRS�s							(RTRURS(((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyR��sRR�t_dirstcopy_directoryR�tdestinationiRlRnsadd_custom_command(
tOUTPUTR�s
sCOMMAND ${CMAKE_COMMAND} -E %s tDEPENDSs,WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/sCOMMENT Copying for s	VERBATIM
s

  DEPENDSs

  SOURCESs
)
(R'R;R|tobjectR+R,R0R�R/tbasenameR�R4R�R�R�R�R�RJR�RCRzRO(RFtcopiesRR�R<t	copy_namethave_copiesR�t	file_copytdir_copyR�R�R�tsrcR,R�tdst((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytWriteCopies�s�









	

	
"



	











	
	
cCsNtjj|�\}}}|}|rD|dkrD|d|7}nt|�S(s2This is the name we would like the target to have.ttargetR�(RRtParseQualifiedTargetRi(tqualified_targetR�tgyp_target_nametgyp_target_toolsettcmake_target_base_name((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytCreateCMakeTargetBaseName's
cCsVtjj|�\}}}|d|}|rL|dkrL|d|7}nt|�S(s#An unambiguous name for the target.t:R�R�(RRR�Ri(R�tgyp_fileR�R�tcmake_target_full_name((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytCreateCMakeTargetFullName1s
t
CMakeNamercBs eZdZd�Zd�ZRS(s�Converts Gyp target names into CMake target names.

  CMake requires that target names be globally unique. One way to ensure
  this is to fully qualify the names of the targets. Unfortunatly, this
  ends up with all targets looking like "chrome_chrome_gyp_chrome" instead
  of just "chrome". If this generator were only interested in building, it
  would be possible to fully qualify all target names, then create
  unqualified target names which depend on all qualified targets which
  should have had that name. This is more or less what the 'make' generator
  does with aliases. However, one goal of this generator is to create CMake
  files for use with IDEs, and fully qualified names are not as user
  friendly.

  Since target name collision is rare, we do the above only when required.

  Toolset variants are always qualified from the base, as this is required for
  building. However, it also makes sense for an IDE, as it is possible for
  defines to be different.
  cCsbt�|_t�}xF|D]>}t|�}||krJ|j|�q|jj|�qWdS(N(Rut"cmake_target_base_names_confictingR�tadd(RRttarget_listtcmake_target_base_names_seenR�R�((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyRSOs	
cCs)t|�}||jkr%t|�S|S(N(R�R�R�(RRR�t	base_name((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytCreateCMakeTargetName[s
(RTRUt__doc__RSR�(((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyR�;s	c	WCs�|jdt�}	|jdt�sN|jd�|j|�|jd�ntjj|�\}
}}tjj|
|j�}t	j
j|�}
tjj||j�}t	j
j
||
�}|}|j|i�}|jdi�j|i�}|jdd�}|jdd	�}|jd
�}tj|�}|dkrWd||fGHdSt|d|�t|d
|�|j|�}g}g}d|kr�t||d||||�nd|kr�t||d||||�nd|krt||d|||�n|jdg�}g}g}g}g}g}x�|D]�} t	j
j| �\}}!tj|!d�}"t|| �}#|"dkr�|j|#�qJ|"dkr�|j|#�qJ|"dkr�|j|#�qJt|!�r�|j|#�qJ|j|#�qJWx�|D]�}$|$\} }%t	j
j|%�\}}!tj|!d�}"|"dkri|j| �q|"dkr�|j| �q|"dkr�|j| �qt|!�r�|j| �q|j| �qWd}&|r�|d}&t||&|�nd}'|r |d}'t||'|�nd}(|rI|d}(t||(|�nd})|rr|d})t||)|�nd}*|r�|d}*t||*|�nd}+|&p�|'p�|(p�|)p�|*},|dkrJ|,rJ|d}+t||+d�|jd�t||+�|jd�|jd�t||+�|jd �|jd!�n|jd"�}-|-dk	r�|jd#�x>|-D]6}.|jd$�|jt||.��|jd�qyW|jd%�n|j|j�|jd&�|j|�|jdk	r|jd$�|j|j�n|&r5t||&d$�n|'rNt||'d$�n|(rgt||(d$�n|)r�t||)d$�n|*r�t||*d$�n|+r�t||+d$�n|jd%�||kr�d'nd(}/t||d)|/�x!|D]}0t||0d)|/�q�W|d*kr�|rA|rAt||d+d,g�n|*rt|jd-�t||*d.�|jd/�n|)r�|jd-�t||*d.�|jd0�n|jd1�}1|1dkrQ|d^kr�td3}1qQ|d4kr�d5}1qQ|jd6t�rtd3}1qQtjjt	j
j|
�|j�}2d7}1t	j
j
|1|2�}1nt ||1�}3t|||j!d8|3�d.}4|}5d.}6|d9kr�td:}7t"|5|7�}5|7}4td;}6n[|d_kr�td<}8t"|5|8�}5|8}4td=}6n#|dkr	d>d|d?|fGHn|jd@|4�}9|jdA|5�}:|jdB�};|;re	dC|;};n|6};t||dD|9�t|||j!dE|:�t||dF|;�|9|:|;}<t	j
j
|3|<�}=t#||=dGd'gd.�|jdH�}>|>ry
|dI}?t||?g|>D]}@t ||@�^q
�|jdJ�|j|�|jdK�t||?d.�|jd%�n|jdL�}A|Adk	r�
t||dM|AdN�n|jdOg�}B|jdPg�}C|jdQg�}D|Cs�
|r|Ds�
|rt||dR|Bd$�nS|rd|p'|rdg}E|Ej$|B�|Ej$|C�t||dR|Ed$�n|r�|ps|r�g}E|Ej$|B�|Ej$|D�t||dR|Ed$�n�|r�|Br�t%||&dR|Bd$�n|r |Bs�|Cr g}E|Ej$|B�|Ej$|C�t%||'dR|Ed$�n|rk|Bs2|Drkg}E|Ej$|B�|Ej$|D�t%||(dR|Ed$�n|jdS�}F|Fdk	r�t||dT|Fd$�q�n|jdUg�}Gg}Hg}Ig}Jx�|GD]~}K|j|K�}L|j|Ki�}M|Mjdd�}N|Nd9kr"
|Hj|L�q�|Nd4kr>
|Ij|L�q�|Jj|L�q�W|Hsa
|Isa
|Jrx�|D]�}O|jdV�|j|O�|jd�x[|H|I|JfD]J}PxAtjj&|P�D]-}Q|jdW�|j|Q�|jd�q�
Wq�
W|jd%�qh
Wn|d`k}R|Jj$|�|Js9|Rr|Hs9|Ir|jdV�|j|�|jd�xAtjj&|J�D]-}Q|jdW�|j|Q�|jd�qsW|Rsx[|H|IfD]J}PxAtjj&|P�D]-}S|jdW�|j|S�|jd�q�Wq�Wn|jd%�n|Rr�g|jdXg�D]}Tt'|T�dYkr1|T^q1}U|Usg|Hsg|Ir�|jdZ�|j|�|jd�|Hr|	o�t'|H�d[k}V|Vr�|jd\�nxAtjj&|H�D]-}Q|jdW�|j|Q�|jd�q�W|Vr|jd]�qn|IrlxDtjj&|I�D]-}Q|jdW�|j|Q�|jd�q8Wn|Ur�xDtjj&|U�D]-}T|jdW�|j|T�|jd�q�Wn|jd%�q�nt(|d
�t(|d�dS(aNtcirculart
standalones
#s
tconfigurationsRFs<missing target name>ttypes<missing target type>ttoolsets/Target %s has unknown target type %s, skipping.tTARGETtTOOLSETR}R�R�tsourcesRRRt
__asm_srcst__c_srcst
__cxx_srcst__linkable_srcst__other_srcsRXt__dummy_srcss(${obj}.${TOOLSET}/${TARGET}/genc/dummy.csif(NOT EXISTS "s")
s  file(WRITE "s" "")
sendif()
tlibrary_dirsslink_directories(R�s)
t(tTRUEtFALSEtEXCLUDE_FROM_ALLRdtLINKER_LANGUAGEtCsset_source_files_properties(Rs% PROPERTIES HEADER_FILE_ONLY "TRUE")
s$ PROPERTIES EXTERNAL_OBJECT "TRUE")
tproduct_dirRaRR_s${builddir}/lib.${TOOLSET}tstandalone_static_librarys${obj}.${TOOLSET}t_OUTPUT_DIRECTORYR\RRRRs,ERROR: What output file should be generated?R�tproduct_prefixtproduct_nametproduct_extensiont.tPREFIXt_OUTPUT_NAMEtSUFFIXt	GENERATEDtinclude_dirst__include_dirssset_property(TARGET s% APPEND PROPERTY INCLUDE_DIRECTORIES tdefinestCOMPILE_DEFINITIONSR7tcflagstcflags_ct	cflags_cct
COMPILE_FLAGStldflagst
LINK_FLAGStdependenciessadd_dependencies(s  t	librariesistarget_link_libraries(is-Wl,--start-group
s-Wl,--end-group
(s
executableRa(RaR_(s
executableRaR_()RwtTrueRxR;RRR�tRelativePathttoplevel_dirR+R,RptInvertRelativePathR/t&cmake_target_type_from_gyp_target_typeR�RIR�R�R�R�R�R(R6R|R*RJRCRORPRGtgenerator_default_variablesR4RQRRBRyREtuniquerRRK(WtnamerR�ttarget_dictst	build_dirt
config_to_usetoptionstgenerator_flagstall_qualified_targetsR<t
circular_libsR�R�trel_gyp_filetrel_gyp_dirtbuild_to_toptbuild_to_gyptpath_from_cmakelists_to_gyptspectconfigRFttarget_typettarget_toolsettcmake_target_typetcmake_target_nameR~Rtsrcst	s_sourcest	c_sourcestcxx_sourcestlinkable_sourcest
other_sourcesR�R�tsrc_typet
src_norm_pathtextra_sourcetreal_sourcets_sources_nametc_sources_nametcxx_sources_nametlinkable_sources_nametother_sources_nametdummy_sources_namethas_sourcesR�tlibrary_dirtexclude_from_alltextra_target_namettarget_output_directoryR1tcmake_target_output_directorytdefault_product_prefixtdefault_product_nametdefault_product_exttstatic_library_prefixtshared_library_prefixR�R�tproduct_exttcmake_target_output_basenametcmake_target_outputtincludest
includes_nametincludeR�R�R�t
cflags_cxxtflagsR�trawDepststatic_depstshared_depst
other_depstrawDeptdep_cmake_nametdep_spectdep_target_typet	extra_deptdepsR�tlinkabletlib_depRt
external_libstwrite_group((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytWriteTargetbs~












	













	

	


	
	

	

	

	
	
	 











	














7









cCs�|d}|d}tjj|jp)d�}|jdd�}tjjtjj|||��}	tjj|j|	�}
tjj|
d�}tj	j
|�t|d�}|jd�|jd	�tj	j
|d
�\}
}}|jd�|j|�|jd�t|d
|�d}d}d}||
jdg�}tj	j|	|j�}x�|D]x\}}|dkr�tjj||�}n|dkr�tjj||�}n|dkrhtjj||�}qhqhWtj	jddg|�}tj	jddg|�}tj	jddg|�}|rNt|d|�n|rgt|d|�n|r�t|d|�n|jd�|r�t|d|�nt|dd�t|dd�|jd�|jd�|jd �|jd�|jd!�|jd�t|�}t�}xN|d"D]B}x9tj	j||tjj|��D]}|j|�q_Wq4Wx0|D](}t||||	|||||�	q�W|j�dS(#NRRR�t
output_dirR�sCMakeLists.txttws2cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
scmake_policy(VERSION 2.8.8)
i����sproject(s)
t
configurationtmake_global_settingstARtCCtCXXt	AR_targett	CC_targett
CXX_targettCMAKE_ARtCMAKE_C_COMPILERtCMAKE_CXX_COMPILERsenable_language(ASM)
tCMAKE_ASM_COMPILERtbuilddirs${CMAKE_CURRENT_BINARY_DIR}tobjs${builddir}/objs
s(set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)
s*set(CMAKE_CXX_OUTPUT_EXTENSION_REPLACE 1)
s'set(CMAKE_NINJA_FORCE_RESPONSE_FILE 1)
tbuild_files(R+R,trelpathtgenerator_outputRwR0R/R�RRtEnsureDirExiststopenR;R�RIR�R�tGetEnvironFallbackR�Rut
AllTargetsR�RCtclose(R�RtdataR!RRRt
generator_dirRDRttoplevel_buildtoutput_fileR<R�tproject_targetR�tarRRRGR	tkeyRAR�Rt
build_fileR�((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytGenerateOutputForConfig"s|













	
c
Cs�|d}|d}tjj|jp)d�}|jdd�}x�|D]�}tjjtjj|||��}dddg}	d	||	fGHtj|	d
|�dd|g}	d
||	fGHtj|	�qHWdS(NRRR�RDR�tcmakes-GtNinjasGenerating [%s]: %stcwdtninjas-CsBuilding [%s]: %s(	R+R,RURVRwR0R/t
subprocesst
check_call(
R\R�R!RRR]RDtconfig_nameRt	arguments((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytPerformBuild�s


cCsEtjtjtj�|\}}}}}t|||||�dS(N(tsignaltSIGINTtSIG_IGNRd(targlistR�RR\R!Rk((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytCallGenerateOutputForConfig�sc
Cs|jdi�jdd�}|r=t|||||�n�||ddj�}|dr�y\tjt|��}g}x:|D]2}|j|||||f�|jt	|�q�WWqt
k
r�}	|j�|	�qXn'x$|D]}t|||||�q�WdS(NRR
iR�tparallel(RwR�RdtkeystmultiprocessingtPoolRR|tmapRrtKeyboardInterruptt	terminate(
R�RR\R!tuser_configtconfig_namestpooltarglistsRkR%((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pytGenerateOutput�s&






(-R�RuR+RnRgRit
gyp.commonRR�R.R�t$generator_supports_multiple_toolsetst4generator_wants_static_library_dependencies_adjustedR(RR"R)R*R4R6R:RBRERGRIRJRKR�RCR�RNR�RiR�R�R�R�R�R�R�RCRdRmRrR~(((sX/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/generator/cmake.pyt<module>s�

								
	

			
			O		r	l	
	
'	��	k			

Zerion Mini Shell 1.0