blob: 4136e35815046c9a6a15d78031acce4fe6ea2d66 [file] [log] [blame]
Gary Bissone8dbdbd2016-04-13 15:40:35 +02001################################################################################
2#
3# qt5webkit
4#
5################################################################################
6
Alexey Brodkin9d5ac962016-11-09 16:59:54 +03007QT5WEBKIT_VERSION = $(QT5_VERSION)
8QT5WEBKIT_SITE = $(QT5_SNAPSHOTS_SITE)
9QT5WEBKIT_SOURCE = qtwebkit-opensource-src-$(QT5WEBKIT_VERSION).tar.xz
Yann E. MORINac167932016-07-26 00:33:31 +020010QT5WEBKIT_DEPENDENCIES = \
11 host-bison host-flex host-gperf host-python host-ruby \
12 qt5base sqlite
Gary Bissone8dbdbd2016-04-13 15:40:35 +020013QT5WEBKIT_INSTALL_STAGING = YES
14
15QT5WEBKIT_LICENSE_FILES = Source/WebCore/LICENSE-LGPL-2 Source/WebCore/LICENSE-LGPL-2.1
16
Rahul Bedarkar96e94802017-03-30 19:13:39 +053017QT5WEBKIT_LICENSE = LGPL-2.1+, BSD-3-Clause, BSD-2-Clause
Gary Bissone8dbdbd2016-04-13 15:40:35 +020018# Source files contain references to LGPL_EXCEPTION.txt but it is not included
19# in the archive.
20QT5WEBKIT_LICENSE_FILES += LICENSE.LGPLv21
Gary Bissone8dbdbd2016-04-13 15:40:35 +020021
22ifeq ($(BR2_PACKAGE_QT5BASE_XCB),y)
23QT5WEBKIT_DEPENDENCIES += xlib_libXext xlib_libXrender
24endif
25
26ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y)
27QT5WEBKIT_DEPENDENCIES += qt5declarative
28endif
29
Yann E. MORINac167932016-07-26 00:33:31 +020030# QtWebkit's build system uses python, but only supports python2. We work
31# around this by forcing python2 early in the PATH, via a python->python2
32# symlink.
Johan Derycked4b494b2016-10-19 16:35:24 +020033QT5WEBKIT_ENV = PATH=$(@D)/host-bin:$(BR_PATH)
Yann E. MORINac167932016-07-26 00:33:31 +020034define QT5WEBKIT_PYTHON2_SYMLINK
Johan Derycked4b494b2016-10-19 16:35:24 +020035 mkdir -p $(@D)/host-bin
Arnout Vandecappelle0f9c0bf2017-07-05 13:14:19 +020036 ln -sf $(HOST_DIR)/bin/python2 $(@D)/host-bin/python
Yann E. MORINac167932016-07-26 00:33:31 +020037endef
38QT5WEBKIT_PRE_CONFIGURE_HOOKS += QT5WEBKIT_PYTHON2_SYMLINK
39
Gary Bissone8dbdbd2016-04-13 15:40:35 +020040define QT5WEBKIT_CONFIGURE_CMDS
Arnout Vandecappelle0f9c0bf2017-07-05 13:14:19 +020041 (cd $(@D); $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(HOST_DIR)/bin/qmake)
Gary Bissone8dbdbd2016-04-13 15:40:35 +020042endef
43
44define QT5WEBKIT_BUILD_CMDS
Yann E. MORINac167932016-07-26 00:33:31 +020045 $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D)
Gary Bissone8dbdbd2016-04-13 15:40:35 +020046endef
47
48define QT5WEBKIT_INSTALL_STAGING_CMDS
Yann E. MORINac167932016-07-26 00:33:31 +020049 $(TARGET_MAKE_ENV) $(QT5WEBKIT_ENV) $(MAKE) -C $(@D) install
Gary Bissone8dbdbd2016-04-13 15:40:35 +020050 $(QT5_LA_PRL_FILES_FIXUP)
51endef
52
53ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
54define QT5WEBKIT_INSTALL_TARGET_QMLS
55 cp -dpfr $(STAGING_DIR)/usr/qml/QtWebKit $(TARGET_DIR)/usr/qml/
56endef
57endif
58
59define QT5WEBKIT_INSTALL_TARGET_CMDS
60 cp -dpf $(STAGING_DIR)/usr/lib/libQt5WebKit*.so.* $(TARGET_DIR)/usr/lib
61 cp -dpf $(@D)/bin/* $(TARGET_DIR)/usr/bin/
62 $(QT5WEBKIT_INSTALL_TARGET_QMLS)
63endef
64
65$(eval $(generic-package))