blob: 70fea75bda7c52aeb70c0a6001567752afc30059 (
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WOVERLOADED_VIRTUAL}" )
add_subdirectory( misc )
add_subdirectory( dom )
add_subdirectory( css )
add_subdirectory( xml )
add_subdirectory( html )
add_subdirectory( rendering )
add_subdirectory( java )
add_subdirectory( ecma )
add_subdirectory( tdemultipart )
include_directories(
${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/kjs
${CMAKE_BINARY_DIR}/tdeio/kssl
${CMAKE_BINARY_DIR}/tdecore
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/dcop
${CMAKE_SOURCE_DIR}/tdefx
${CMAKE_SOURCE_DIR}/tdecore
${CMAKE_SOURCE_DIR}/tdeui
${CMAKE_SOURCE_DIR}/tdeio
${CMAKE_SOURCE_DIR}/tdeio/tdeio
${CMAKE_SOURCE_DIR}/tdeio/tdefile
${CMAKE_SOURCE_DIR}/tdeio/kssl
${CMAKE_SOURCE_DIR}/tdeutils
${CMAKE_SOURCE_DIR}/tdewallet/client
${CMAKE_SOURCE_DIR}/tdeprint
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### headers ###################################
install( FILES
tdehtmlview.h tdehtml_part.h tdehtml_events.h
tdehtml_settings.h tdehtmldefaults.h
DESTINATION ${INCLUDE_INSTALL_DIR} )
##### other data ################################
tde_create_translated_desktop(
SOURCE tdehtml.desktop tdehtmlimage.desktop
DESTINATION ${SERVICES_INSTALL_DIR}
PO_DIR tdehtml-desktops
)
install( FILES tdehtml.rc tdehtml_browser.rc tdehtml_popupmenu.rc DESTINATION ${DATA_INSTALL_DIR}/tdehtml )
##### tdehtml #####################################
set( target tdehtml )
set( ${target}_SRCS
tdehtmlview.cpp tdehtml_part.cpp tdehtml_run.cpp
tdehtml_factory.cpp tdehtml_settings.cpp tdehtml_events.cpp
tdehtml_ext.cpp tdehtml_pagecache.cpp tdehtml_iface.cpp
tdehtml_printsettings.cpp tdehtmlimage.cpp kjserrordlg.ui
htmlpageinfo.ui tdehtml_iface.skel
)
### FIXME what is this?
### if include_VERSION_SCRIPT
### VSCRIPT = -Wl,--version-script=$(srcdir)/libtdehtml.map
### endif
### FIXME what about java?
### FIXME maybe static libs must be embedded?
tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS}
VERSION 14.0.0
LINK ${VSCRIPT} kjava-static kjs_html-static tdehtmldom-static tdehtmlcss-static
tdehtmlhtml-static tdehtmlxml-static tdehtmlrender-static tdehtmlmisc-static
tdeutils-shared tdeprint-shared
LINK_PRIVATE kjs-shared
DESTINATION ${LIB_INSTALL_DIR}
)
##### libtdehtmlpart ##############################
set( target libtdehtmlpart )
set( ${target}_SRCS
dummy.cpp
)
file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
"#include <tdelibs_export.h>
extern \"C\" TDE_EXPORT void* init_libtdehtml();
extern \"C\" TDE_EXPORT void* init_libtdehtmlpart() { return init_libtdehtml(); }
" )
tde_add_kpart( ${target}
SOURCES ${${target}_SRCS}
LINK tdehtml-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### tdehtmlimagepart ############################
set( target tdehtmlimagepart )
set( ${target}_SRCS
imgdummy.cpp
)
file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/imgdummy.cpp
"
#include <tdelibs_export.h>
extern \"C\" TDE_EXPORT void* init_tdehtmlimagefactory();
extern \"C\" TDE_EXPORT void* init_tdehtmlimagepart() { return init_tdehtmlimagefactory(); }
" )
tde_add_kpart( ${target}
SOURCES ${${target}_SRCS}
LINK tdehtml-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
|