1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Chromium wayland 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyunifeq ($(BR2_aarch64),y) 7*4882a593SmuzhiyunCHROMIUM_WAYLAND_ARCH = aarch64 8*4882a593Smuzhiyunelse 9*4882a593SmuzhiyunCHROMIUM_WAYLAND_ARCH = armhf 10*4882a593Smuzhiyunendif 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunCHROMIUM_WAYLAND_VERSION = 88.0.4324.150 13*4882a593SmuzhiyunCHROMIUM_WAYLAND_SITE = $(TOPDIR)/../external/chromium 14*4882a593SmuzhiyunCHROMIUM_WAYLAND_SOURCE = chromium-ozone-wayland_$(CHROMIUM_WAYLAND_VERSION)_$(CHROMIUM_WAYLAND_ARCH).tgz 15*4882a593SmuzhiyunCHROMIUM_WAYLAND_SITE_METHOD = file 16*4882a593SmuzhiyunCHROMIUM_WAYLAND_LICENSE_FILES = LICENSE 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# The archive has no leading component. 19*4882a593SmuzhiyunCHROMIUM_WAYLAND_STRIP_COMPONENTS = 0 20*4882a593Smuzhiyun 21*4882a593Smuzhiyundefine CHROMIUM_WAYLAND_MERGE_DOWNLOAD 22*4882a593Smuzhiyun mkdir -p $(CHROMIUM_WAYLAND_DL_DIR) 23*4882a593Smuzhiyun cat $(CHROMIUM_WAYLAND_SITE)/$(CHROMIUM_WAYLAND_SOURCE)* > \ 24*4882a593Smuzhiyun $(CHROMIUM_WAYLAND_DL_DIR)/$(CHROMIUM_WAYLAND_SOURCE) 25*4882a593Smuzhiyunendef 26*4882a593SmuzhiyunCHROMIUM_WAYLAND_PRE_DOWNLOAD_HOOKS += CHROMIUM_WAYLAND_MERGE_DOWNLOAD 27*4882a593Smuzhiyun 28*4882a593Smuzhiyundefine CHROMIUM_WAYLAND_COPY_LICENSES 29*4882a593Smuzhiyun cp -rfp $(CHROMIUM_WAYLAND_SITE)/LICENSE $(@D)/ 30*4882a593Smuzhiyun cp -rfp $(CHROMIUM_WAYLAND_SITE)/licenses $(@D)/ 31*4882a593Smuzhiyunendef 32*4882a593SmuzhiyunCHROMIUM_WAYLAND_POST_EXTRACT_HOOKS += CHROMIUM_WAYLAND_COPY_LICENSES 33*4882a593Smuzhiyun 34*4882a593Smuzhiyundefine CHROMIUM_WAYLAND_INSTALL_TARGET_CMDS 35*4882a593Smuzhiyun cp -rp $(@D)/usr/ $(TARGET_DIR)/ 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun sed -i 's/\(CHROME_EXTRA_ARGS=\)/\1" $${CHROMIUM_FLAGS} "/' \ 38*4882a593Smuzhiyun $(TARGET_DIR)/usr/lib/chromium/chromium-wrapper 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun $(INSTALL) -D -m 644 $(CHROMIUM_WAYLAND_PKGDIR)/chromium-wayland.sh \ 41*4882a593Smuzhiyun $(TARGET_DIR)/etc/profile.d/chromium-wayland.sh 42*4882a593Smuzhiyunendef 43*4882a593Smuzhiyun 44*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBV4L_RKMPP),y) 45*4882a593Smuzhiyundefine CHROMIUM_WAYLAND_INSTALL_INIT_SYSV 46*4882a593Smuzhiyun $(INSTALL) -D -m 755 $(CHROMIUM_WAYLAND_PKGDIR)/S99chromium-wayland.sh \ 47*4882a593Smuzhiyun $(TARGET_DIR)/etc/init.d/S99chromium-wayland.sh 48*4882a593Smuzhiyunendef 49*4882a593Smuzhiyunendif 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun$(eval $(generic-package)) 52