summaryrefslogtreecommitdiffstats
path: root/meta-efl
diff options
context:
space:
mode:
Diffstat (limited to 'meta-efl')
-rw-r--r--meta-efl/recipes-efl/webkit/webkit-efl/CMakeLists.txt160
-rw-r--r--meta-efl/recipes-efl/webkit/webkit-efl_svn.bb20
2 files changed, 173 insertions, 7 deletions
diff --git a/meta-efl/recipes-efl/webkit/webkit-efl/CMakeLists.txt b/meta-efl/recipes-efl/webkit/webkit-efl/CMakeLists.txt
new file mode 100644
index 000000000..c13086747
--- /dev/null
+++ b/meta-efl/recipes-efl/webkit/webkit-efl/CMakeLists.txt
@@ -0,0 +1,160 @@
1CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
2PROJECT(WebKit)
3
4# Set a default build type if and only if user did not define one as command
5# line options and he did not give custom CFLAGS or CXXFLAGS. Otherwise, flags
6# from default build type would overwrite user-defined ones.
7IF (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_C_FLAGS AND NOT CMAKE_CXX_FLAGS)
8 SET(CMAKE_BUILD_TYPE Release)
9ENDIF ()
10
11# -----------------------------------------------------------------------------
12# Default library type
13# -----------------------------------------------------------------------------
14SET(ENABLE_WEBCORE On)
15
16IF (NOT ENABLE_WEBKIT AND NOT ENABLE_WEBKIT2)
17 SET(ENABLE_WEBKIT On)
18ENDIF ()
19
20OPTION(ONLY_BUILD_JAVASCRIPTCORE "only build JavaScriptCore")
21IF (ONLY_BUILD_JAVASCRIPTCORE)
22 SET(ENABLE_WEBCORE Off)
23 SET(ENABLE_WEBKIT Off)
24 SET(ENABLE_WEBKIT2 Off)
25ENDIF ()
26
27SET(JAVASCRIPTCORE_DIR "${CMAKE_SOURCE_DIR}/Source/JavaScriptCore")
28SET(WEBCORE_DIR "${CMAKE_SOURCE_DIR}/Source/WebCore")
29SET(WEBKIT_DIR "${CMAKE_SOURCE_DIR}/Source/WebKit")
30SET(WEBKIT2_DIR "${CMAKE_SOURCE_DIR}/Source/WebKit2")
31SET(THIRDPARTY_DIR "${CMAKE_SOURCE_DIR}/Source/ThirdParty")
32
33SET(TOOLS_DIR "${CMAKE_SOURCE_DIR}/Tools")
34
35SET(DERIVED_SOURCES_DIR "${CMAKE_BINARY_DIR}/DerivedSources")
36SET(DERIVED_SOURCES_JAVASCRIPTCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/JavaScriptCore")
37SET(DERIVED_SOURCES_WEBCORE_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebCore")
38SET(DERIVED_SOURCES_WEBKIT2_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit2")
39
40SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/Source/cmake")
41
42INCLUDE(WebKitMacros)
43INCLUDE(WebKitFS)
44INCLUDE(WebKitHelpers)
45INCLUDE(WebKitFeatures)
46
47# -----------------------------------------------------------------------------
48# Determine which port will be built
49# -----------------------------------------------------------------------------
50SET(ALL_PORTS Efl WinCE BlackBerry)
51SET(PORT "NOPORT" CACHE STRING "choose which WebKit port to build (one of ${ALL_PORTS})")
52
53LIST(FIND ALL_PORTS ${PORT} RET)
54IF (${RET} EQUAL -1)
55 MESSAGE(FATAL_ERROR "Please choose which WebKit port to build (one of ${ALL_PORTS})")
56ENDIF ()
57
58STRING(TOLOWER ${PORT} WEBKIT_PORT_DIR)
59
60# -----------------------------------------------------------------------------
61# Find common packages (used by all ports)
62# -----------------------------------------------------------------------------
63FIND_PACKAGE(BISON REQUIRED)
64FIND_PACKAGE(FLEX REQUIRED)
65FIND_PACKAGE(Gperf REQUIRED)
66FIND_PACKAGE(Perl REQUIRED)
67FIND_PACKAGE(PythonInterp REQUIRED)
68
69# -----------------------------------------------------------------------------
70# Determine the target processor
71# -----------------------------------------------------------------------------
72STRING(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_SYSTEM_PROCESSOR)
73IF (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
74 SET(WTF_CPU_ARM 1)
75ELSEIF (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^mips")
76 SET(WTF_CPU_MIPS 1)
77ELSEIF (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64|amd64)")
78 SET(WTF_CPU_X86_64 1)
79ELSEIF (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86|x86)")
80 SET(WTF_CPU_X86 1)
81ELSE ()
82 MESSAGE(FATAL_ERROR "Unknown CPU '${CMAKE_SYSTEM_PROCESSOR}'")
83ENDIF ()
84
85# -----------------------------------------------------------------------------
86# Determine the operating system
87# -----------------------------------------------------------------------------
88IF (UNIX)
89 IF (APPLE)
90 SET(WTF_OS_MAC_OS_X 1)
91 ELSE ()
92 SET(WTF_OS_UNIX 1)
93 ENDIF ()
94ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
95 SET(WTF_OS_WINDOWS 1)
96ELSEIF (CMAKE_SYSTEM_NAME MATCHES "QNX")
97 SET(WTF_OS_QNX 1)
98 SET(WTF_OS_UNIX 1)
99ELSE ()
100 MESSAGE(FATAL_ERROR "Unknown OS '${CMAKE_SYSTEM_NAME}'")
101ENDIF ()
102
103# -----------------------------------------------------------------------------
104# Default target names (can be overrriden in Options${PORT}.cmake file)
105# -----------------------------------------------------------------------------
106SET(JSC_EXECUTABLE_NAME JSC)
107SET(WTF_LIBRARY_NAME WTF)
108SET(JavaScriptCore_LIBRARY_NAME JavaScriptCore)
109SET(WebCore_LIBRARY_NAME WebCore)
110SET(WebKit_LIBRARY_NAME WebKit)
111SET(WebKit2_LIBRARY_NAME WebKit2)
112
113# -----------------------------------------------------------------------------
114# Default library types
115# -----------------------------------------------------------------------------
116OPTION(SHARED_CORE "build WTF, JavaScriptCore and WebCore as shared libraries")
117
118IF (SHARED_CORE)
119 SET(WTF_LIBRARY_TYPE SHARED)
120 SET(JavaScriptCore_LIBRARY_TYPE SHARED)
121 SET(WebCore_LIBRARY_TYPE SHARED)
122ELSE ()
123 SET(WTF_LIBRARY_TYPE STATIC)
124 SET(JavaScriptCore_LIBRARY_TYPE STATIC)
125 SET(WebCore_LIBRARY_TYPE STATIC)
126ENDIF ()
127
128SET(WebKit_LIBRARY_TYPE SHARED)
129SET(WebKit2_LIBRARY_TYPE SHARED)
130
131# -----------------------------------------------------------------------------
132# Port-specific options
133# -----------------------------------------------------------------------------
134INCLUDE(OptionsCommon)
135INCLUDE(Options${PORT})
136
137# -----------------------------------------------------------------------------
138# Install JavaScript shell
139# -----------------------------------------------------------------------------
140OPTION(SHOULD_INSTALL_JS_SHELL "generate an installation rule to install the built JavaScript shell")
141
142# -----------------------------------------------------------------------------
143# Define packaging
144# -----------------------------------------------------------------------------
145INCLUDE(WebKitPackaging)
146
147# -----------------------------------------------------------------------------
148# Add module directories
149# -----------------------------------------------------------------------------
150ADD_SUBDIRECTORY(Source)
151
152# -----------------------------------------------------------------------------
153# Add tools
154# -----------------------------------------------------------------------------
155ADD_SUBDIRECTORY(Tools)
156
157# -----------------------------------------------------------------------------
158# Prints a summary of all enabled/disabled features
159# -----------------------------------------------------------------------------
160WEBKIT_PRINT_FEATURES()
diff --git a/meta-efl/recipes-efl/webkit/webkit-efl_svn.bb b/meta-efl/recipes-efl/webkit/webkit-efl_svn.bb
index 9f02a595e..77aef024b 100644
--- a/meta-efl/recipes-efl/webkit/webkit-efl_svn.bb
+++ b/meta-efl/recipes-efl/webkit/webkit-efl_svn.bb
@@ -1,25 +1,31 @@
1DESCRIPTION = "Webkit browser engine, EFL edition" 1DESCRIPTION = "Webkit browser engine, EFL edition"
2LICENSE = "GPLv2+" 2LICENSE = "GPLv2+"
3LIC_FILES_CHKSUM = "file://WebKit/LICENSE;md5=4646f90082c40bcf298c285f8bab0b12 \ 3LIC_FILES_CHKSUM = "file://Source/WebKit/LICENSE;md5=4646f90082c40bcf298c285f8bab0b12 \
4 file://JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d84286dda758da57bd691 \ 4 file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d84286dda758da57bd691 \
5 file://WebKit/efl/ewk/EWebKit.h;endline=20;md5=55ea170b1582797d2c69712de850f2fa \ 5 file://Source/WebKit/efl/ewk/EWebKit.h;endline=20;md5=55ea170b1582797d2c69712de850f2fa \
6" 6"
7 7
8DEPENDS = "icu libxslt sqlite3 gperf-native bison-native flex-native jpeg \ 8DEPENDS = "icu libxslt sqlite3 gperf-native bison-native flex-native jpeg \
9 libpng libxt fontconfig cairo freetype glib-2.0 libsoup-2.4 \ 9 libpng libxt fontconfig cairo freetype glib-2.0 libsoup-2.4 \
10 libxml2 pango eina ecore evas edje" 10 libxml2 pango eina ecore evas edje"
11 11
12SRCREV = "97724" 12SRCREV = "105069"
13PV = "1.6.1+svnr${SRCPV}" 13PV = "1.7.3+svnr${SRCPV}"
14 14
15SRCREV_FORMAT = "source" 15SRCREV_FORMAT = "source"
16 16
17SRC_URI = "\ 17SRC_URI = "\
18 svn://svn.webkit.org/repository/webkit/trunk;module=Source;name=source;proto=http;subdir=src \ 18 svn://svn.webkit.org/repository/webkit/trunk;module=Source;name=source;proto=http;subdir=src \
19 svn://svn.webkit.org/repository/webkit/trunk/;module=WebKitLibraries;proto=http;subdir=src \
19 svn://svn.webkit.org/repository/webkit/trunk/;module=Tools;proto=http;subdir=src \ 20 svn://svn.webkit.org/repository/webkit/trunk/;module=Tools;proto=http;subdir=src \
20 " 21 file://CMakeLists.txt \
22"
23
24S = "${WORKDIR}/src"
21 25
22S = "${WORKDIR}/src/Source" 26do_configure_prepend() {
27 cp ${WORKDIR}/CMakeLists.txt ${S};
28}
23 29
24inherit cmake lib_package pkgconfig perlnative 30inherit cmake lib_package pkgconfig perlnative
25 31