summaryrefslogtreecommitdiffstats
path: root/kate/data/CMakeLists.txt
blob: b9c46283ef2fec47936a86155b6c38a013026acc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#################################################
#
#  (C) 2010 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

##### other data ################################

install( FILES
    katepart.desktop
  DESTINATION ${SERVICES_INSTALL_DIR} )

install( FILES
    katepartui.rc katepartreadonlyui.rc
  DESTINATION ${DATA_INSTALL_DIR}/katepart )

install( FILES
    katesyntaxhighlightingrc katefiletyperc
  DESTINATION ${CONFIG_INSTALL_DIR} )

install( FILES
    language.dtd syntax.template
    abap.xml abc.xml actionscript.xml ada.xml ahdl.xml ahk.xml alert_indent.xml
    alert.xml ample.xml ansic89.xml ansys.xml apache.xml asm6502.xml asm-avr.xml
    asm-dsp56k.xml asm-m68k.xml asn1.xml asp.xml asterisk.xml awk.xml bash.xml
    bibtex.xml bmethod.xml ccss.xml cgis.xml cg.xml changelog.xml chicken.xml
    cisco.xml clipper.xml clojure.xml cmake.xml coffee.xml coldfusion.xml
    commonlisp.xml component-pascal.xml context.xml cpp11.xml cpp.xml crk.xml
    css.xml cs.xml cue.xml curry.xml c.xml ddoc.xml debianchangelog.xml
    debiancontrol.xml desktop.xml diff.xml djangotemplate.xml dosbat.xml dot.xml
    doxygenlua.xml doxygen.xml dtd.xml d.xml eiffel.xml email.xml erlang.xml
    euphoria.xml e.xml ferite.xml fgl-4gl.xml fgl-per.xml fortran.xml freebasic.xml
    fsharp.xml fstab.xml gap.xml gcc.xml gdb.xml gdl.xml gettext.xml git-rebase.xml
    glosstex.xml glsl.xml gnuassembler.xml gnuplot.xml go.xml grammar.xml haml.xml
    haskell.xml html.xml idconsole.xml idl.xml ilerpg.xml inform.xml
    ini.xml jam.xml javadoc.xml javascript.xml java.xml json.xml
    jsp.xml julia.xml kbasic.xml latex.xml ldif.xml less.xml lex.xml lilypond.xml
    literate-curry.xml literate-haskell.xml logtalk.xml lpc.xml lua.xml m3u.xml
    m4.xml mab.xml makefile.xml mako.xml mason.xml matlab.xml maxima.xml
    mediawiki.xml mel.xml mergetagtext.xml mips.xml modelica.xml modelines.xml
    modula-2.xml monobasic.xml mup.xml nasm.xml nemerle.xml nesc.xml noweb.xml
    objectivecpp.xml objectivec.xml ocaml.xml octave.xml oors.xml opal.xml opencl.xml
    pango.xml pascal.xml perl.xml pgn.xml php.xml picsrc.xml pig.xml pike.xml
    postscript.xml povray.xml ppd.xml progress.xml prolog.xml protobuf.xml
    purebasic.xml python.xml qmake.xml qml.xml qt4.xml rapidq.xml relaxngcompact.xml
    relaxng.xml restructuredtext.xml rest.xml rexx.xml rhtml.xml rib.xml rpmspec.xml
    rsiidl.xml ruby.xml r.xml sather.xml scala.xml scheme.xml sci.xml scss.xml
    sed.xml sgml.xml sieve.xml sisu.xml sml.xml spice.xml sql-mysql.xml
    sql-postgresql.xml sql.xml stata.xml systemc.xml systemverilog.xml tads3.xml
    tcl.xml tcsh.xml template-toolkit.xml texinfo.xml textile.xml tibasic.xml
    txt2tags.xml update-files.xml uscript.xml valgrind-suppression.xml
    varnishtest.xml varnish.xml vcard.xml velocity.xml vera.xml verilog.xml vhdl.xml
    vrml.xml winehq.xml wml.xml xharbour.xml xmldebug.xml xml.xml xorg.xml xslt.xml
    xul.xml yacas.xml yacc.xml yaml.xml zonnon.xml zsh.xml
    ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml
    ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml
    ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml
  DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax )


##### generate php headers ######################

add_custom_command( OUTPUT html-php.xml
  COMMAND perl ARGS generate-php.pl < html.xml > ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml
  DEPENDS html.xml
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )

add_custom_command( OUTPUT css-php.xml
  COMMAND perl ARGS generate-php.pl < css.xml > ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml
  DEPENDS css.xml
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )

add_custom_command( OUTPUT javascript-php.xml
  COMMAND perl ARGS generate-php.pl < javascript.xml > ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml
  DEPENDS javascript.xml
  WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )

add_custom_target( php-headers ALL
  DEPENDS html-php.xml css-php.xml javascript-php.xml )