�
K��b�� � �b � d Z ddlmZ ddlZddlZddlZddlZddlZddlZ ddl
Z ej Zn# e
$ r
ej ZY nw xY wi dd�dd�dd�d d
�dd�dd
�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�d"d#�Zd$Zd%Zd%Zd&d'd'd'd(d(d)�Zd*� Zd+� Zd,� Zd-� Zd.� Zd/� Zd0� Zd1� Zd2� ZdSd3�Zd4� Zd5� Zd6� Z dTd7�Z! G d8� d9e"� � Z# e#d:dd;� � e#d<d=d>� � e#d<d?d@� � e#d<dAd@� � e#dBdCd� � dD�Z$dE� Z%dF� Z&dG� Z'dH� Z(dI� Z)dJ� Z*dK� Z+ G dL� dMe"� � Z,dN� Z-dO� Z.dP� Z/dQ� Z0dR� Z1dS )Ua� 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.
� )�print_functionN�EXECUTABLE_PREFIX� �EXECUTABLE_SUFFIX�STATIC_LIB_PREFIX�lib�STATIC_LIB_SUFFIXz.a�SHARED_LIB_PREFIX�SHARED_LIB_SUFFIXz.so�SHARED_LIB_DIR�${builddir}/lib.${TOOLSET}�LIB_DIR�${obj}.${TOOLSET}�INTERMEDIATE_DIRz ${obj}.${TOOLSET}/${TARGET}/geni�SHARED_INTERMEDIATE_DIRz
${obj}/gen�PRODUCT_DIR�${builddir}�RULE_INPUT_PATH�${RULE_INPUT_PATH}�RULE_INPUT_DIRNAME�${RULE_INPUT_DIRNAME}�RULE_INPUT_NAMEz${RULE_INPUT_NAME}�RULE_INPUT_ROOTz${RULE_INPUT_ROOT}�RULE_INPUT_EXTz${RULE_INPUT_EXT}�CONFIGURATION_NAME�${configuration})�${CMAKE_CURRENT_LIST_DIR}r z${obj}T�cc�cxx�s)z.cz.ccz.cppz.cxxz.sz.Sc �^ � | � |� � r| t |� � d� n| S )z8Returns 'a' without 'prefix' if it starts with 'prefix'.N)�
startswith�len)�a�prefixs �5/usr/lib/python3/dist-packages/gyp/generator/cmake.py�RemovePrefixr' |