1
# This file is part of PyKDE4.
3
# Copyright (C) 2012, 2013 Shaheed Haque <srhaque@theiet.org>
5
# Redistribution and use in source and binary forms, with or without
6
# modification, are permitted provided that the following conditions
9
# 1. Redistributions of source code must retain the above copyright
10
# notice, this list of conditions and the following disclaimer.
11
# 2. Redistributions in binary form must reproduce the above copyright
12
# notice, this list of conditions and the following disclaimer in the
13
# documentation and/or other materials provided with the distribution.
15
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
# The .sip files being built here are generated using MetaSIP from
28
# http://www.riverbankcomputing.com/hg/metasip. This is a relatively new tool
29
# and is typically not packaged by distros. A summary of the steps needed to
30
# get it working are at http://python.6.n6.nabble.com/ANN-MetaSIP-v1-0-Released-tp4715818p4991287.html.
31
# The result is a MetaSIP .msp project file, from which MetaSIP's CLI
32
# can be used to generate the .sip files. The MetaSIP GUI is used to create
37
# To recreate the .sip files, cd to this directory and then:
39
# msip -g . <whatever>.msp
41
# For now, the .msp file and the .sip files are checked into this directory,
42
# and the <whatever> subdirectory respectively.
47
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
51
set(SIP_INCLUDES ${PYQT4_SIP_DIR} ${PYKDE4_SIP_DIR} ./okteta)
52
set(SIP_CONCAT_PARTS 1)
53
set(SIP_TAGS ALL WS_X11 ${PYQT4_VERSION_TAG})
55
if(PYQT4_VERSION LESS "040905")
56
set(SIP_EXTRA_OPTIONS -g)
57
else (PYQT4_VERSION LESS "040905")
58
# Disable QVector<int> for newer PyQt
59
set(SIP_EXTRA_OPTIONS -g -x PyKDE_QVector)
60
endif(PYQT4_VERSION LESS "040905")
62
add_sip_python_module(PyKate4.okteta ./okteta/oktetamod.sip ${KDE4_KDEUI_LIBS} okteta1core okteta1gui)
66
DESTINATION ${PYTHON_SITE_PACKAGES_INSTALL_DIR}/PyKate4/)