î
œ>gT
  ã               @   s0   d  d l  m Z m Z Gd d „  d e ƒ Z d S)é    )ÚBaseÚshell_commandc                   sœ   e  Z d  Z d Z d g Z d g Z i d d 6d d 6Z e ‡  f d d †  ƒ Z e d	 d
 „  ƒ Z	 e d d „  ƒ Z
 e d d „  ƒ Z e d d „  ƒ Z ‡  S)ÚBuildSystemz-CMake build system (using dh_auto_* commands)ZcmakezCMakeLists.txté
   zcmake_uninstall.cmakezCMakeCache.txtc                s   t  t |  ƒ j | | ƒ d S)Nz!dh_auto_clean --buildsystem=cmake)Úsuperr   Úclean)ÚselfÚcontextÚargs)Ú	__class__© ú3/usr/share/dh-python/dhpython/build/plugin_cmake.pyr      s    zBuildSystem.cleanc             C   s   d S)Nzëdh_auto_configure --buildsystem=cmake --builddirectory="{build_dir}" -- -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/{interpreter} -DPYTHON_LIBRARY:FILEPATH={interpreter.library_file} -DPYTHON_INCLUDE_DIR:PATH={interpreter.include_dir} {args}r   )r   r	   r
   r   r   r   Ú	configure#   s    zBuildSystem.configurec             C   s   d S)NzJdh_auto_build --buildsystem=cmake --builddirectory="{build_dir}" -- {args}r   )r   r	   r
   r   r   r   Úbuild,   s    zBuildSystem.buildc             C   s   d S)Nzbdh_auto_install --buildsystem=cmake --builddirectory="{build_dir}" --destdir="{destdir}" -- {args}r   )r   r	   r
   r   r   r   Úinstall2   s    zBuildSystem.installc             C   s   d S)NzIdh_auto_test --buildsystem=cmake --builddirectory="{build_dir}" -- {args}r   )r   r	   r
   r   r   r   Útest9   s    zBuildSystem.test)Ú__name__Ú
__module__Ú__qualname__ZDESCRIPTIONZREQUIRED_COMMANDSZREQUIRED_FILESZOPTIONAL_FILESr   r   r   r   r   r   r   r   )r   r   r      s   			r   N)Zdhpython.build.baser   r   r   r   r   r   r   Ú<module>   s   