~ubuntu-branches/ubuntu/vivid/kate/vivid-proposed

« back to all changes in this revision

Viewing changes to addons/pate/src/sip/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 16:49:41 UTC
  • mfrom: (1.6.6)
  • Revision ID: package-import@ubuntu.com-20141204164941-l3qbvsly83hhlw2v
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps and use pkg-kde v3 for Qt 5 build
* kate-data now kate5-data for co-installability

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file is part of PyKDE4.
 
2
#
 
3
# Copyright (C) 2012, 2013 Shaheed Haque <srhaque@theiet.org>
 
4
#
 
5
# Redistribution and use in source and binary forms, with or without
 
6
# modification, are permitted provided that the following conditions
 
7
# are met:
 
8
#
 
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.
 
14
#
 
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.
 
25
 
 
26
#
 
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
 
33
# the .msp file:
 
34
#
 
35
# msip <whatever>.msp
 
36
#
 
37
# To recreate the .sip files, cd to this directory and then:
 
38
#
 
39
# msip -g . <whatever>.msp
 
40
#
 
41
# For now, the .msp file and the .sip files are checked into this directory,
 
42
# and the <whatever> subdirectory respectively.
 
43
#
 
44
 
 
45
include(SIPMacros)
 
46
include(KDE4Defaults)
 
47
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
 
48
    # Okteta
 
49
    /usr/include/okteta1)
 
50
 
 
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})
 
54
 
 
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")
 
61
 
 
62
add_sip_python_module(PyKate4.okteta ./okteta/oktetamod.sip ${KDE4_KDEUI_LIBS} okteta1core okteta1gui)
 
63
 
 
64
install(FILES
 
65
    ./__init__.py
 
66
    DESTINATION ${PYTHON_SITE_PACKAGES_INSTALL_DIR}/PyKate4/)