summaryrefslogtreecommitdiffstats
path: root/kate/data/CMakeLists.txt
blob: 1a8384ca2fa8ab4f9b6cd3683663643f9aa76273 (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
85
86
87
88
89
90
#################################################
#
#  (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 cpp.xml c.xml html.xml
    kbasic.xml objectivec.xml changelog.xml ada.xml
    css.xml perl.xml php.xml xml.xml java.xml rpmspec.xml
    sql.xml sql-mysql.xml sql-postgresql.xml vhdl.xml
    diff.xml bash.xml latex.xml postscript.xml ruby.xml
    rhtml.xml desktop.xml eiffel.xml pascal.xml sather.xml
    python.xml makefile.xml ferite.xml scheme.xml matlab.xml
    tcl.xml ilerpg.xml verilog.xml javascript.xml sml.xml
    winehq.xml cs.xml sgml.xml idconsole.xml xmldebug.xml
    fortran.xml haskell.xml literate-haskell.xml r.xml
    gnuassembler.xml mab.xml mason.xml idl.xml prolog.xml
    rsiidl.xml coldfusion.xml picsrc.xml uscript.xml lpc.xml
    velocity.xml sci.xml ldif.xml inform.xml xharbour.xml
    yacas.xml component-pascal.xml asm6502.xml gdl.xml
    bibtex.xml d.xml vrml.xml rexx.xml cue.xml progress.xml
    e.xml sieve.xml modula-2.xml awk.xml cisco.xml doxygen.xml
    lua.xml pike.xml debianchangelog.xml debiancontrol.xml
    fgl-4gl.xml fgl-per.xml alert.xml gettext.xml commonlisp.xml
    clipper.xml povray.xml euphoria.xml mup.xml jsp.xml
    ocaml.xml lex.xml yacc.xml cg.xml ahdl.xml ansic89.xml
    tibasic.xml purebasic.xml mips.xml logtalk.xml txt2tags.xml
    xslt.xml stata.xml glsl.xml lilypond.xml abc.xml asp.xml
    asm-avr.xml rib.xml cmake.xml octave.xml javadoc.xml
    cgis.xml spice.xml nasm.xml mediawiki.xml apache.xml
    m3u.xml ini.xml fstab.xml actionscript.xml abap.xml
    ansys.xml asn1.xml asterisk.xml bmethod.xml ddoc.xml
    djangotemplate.xml doxygenlua.xml dtd.xml email.xml
    erlang.xml freebasic.xml gap.xml json.xml maxima.xml
    mergetagtext.xml modelica.xml monobasic.xml nemerle.xml
    noweb.xml objectivecpp.xml opal.xml pgn.xml rapidq.xml
    scala.xml sisu.xml systemc.xml texinfo.xml xorg.xml
    xul.xml yaml.xml zonnon.xml
    alert_indent.xml ample.xml asm-dsp56k.xml asm-m68k.xml
    clojure.xml coffee.xml crk.xml dosbat.xml fsharp.xml
    gdb.xml glosstex.xml go.xml grammar.xml jam.xml m4.xml
    mel.xml oors.xml pango.xml qmake.xml qml.xml relaxng.xml
    relaxngcompact.xml rest.xml sed.xml systemverilog.xml
    tads3.xml tcsh.xml valgrind-suppression.xml vera.xml
    wml.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 )