[democlock] create clockframe package auto pull code from gitlab.
This commit is contained in:
parent
a09a2a63ba
commit
8293db48fc
|
@ -0,0 +1,85 @@
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
include $(BUILD_DIR)/kernel.mk
|
||||||
|
|
||||||
|
PKG_NAME:=democlock
|
||||||
|
PKG_VERSION:=1
|
||||||
|
PKG_RELEASE:=$(PKG_SOURCE_VERSION)
|
||||||
|
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=ssh://git@g.hz.netease.com:22222/IoT/PV2/C1-windows.git
|
||||||
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
PKG_SOURCE_VERSION:=de969dec3f95a3c67e65a74b0647812e84f61ea9
|
||||||
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
|
|
||||||
|
QMAKE_R311 := $(STAGING_DIR)/host/bin/qmake
|
||||||
|
QMAKE_SPECFILE:=$(STAGING_DIR)/usr/mkspecs/linux-openwrt-g++
|
||||||
|
TARGET_INCDIRS += $(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include
|
||||||
|
TARGET_LIBDIRS += $(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/usr/lib/qt5/qml
|
||||||
|
|
||||||
|
include $(BUILD_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)
|
||||||
|
SECTION:=utils
|
||||||
|
CATEGORY:=Netease
|
||||||
|
TITLE:=$(PKG_NAME) app
|
||||||
|
DEPENDS:=+qt5-gui +qt5-core +qt5-widgets +qt5-network +qt5-qml +qt5-quick +qt5-graphicaleffects +qt5-quick-2 +qt5-quick-controls +qt5-quick-layouts +qt5-quick-controls-2 +qt5-virtual-keyboard
|
||||||
|
MAINTAINER:=lupeng01 <lupeng01@corp.netease.com>
|
||||||
|
URL:=https://g.hz.netease.com/IoT/PV2/C1-windows
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/description
|
||||||
|
$(PKG_NAME) app
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
ls -l $(PKG_BUILD_DIR)
|
||||||
|
TARGET_CC="$(TARGET_CROSS)gcc" \
|
||||||
|
TARGET_CXX="$(TARGET_CROSS)g++" \
|
||||||
|
TARGET_AR="$(TARGET_CROSS)ar cqs" \
|
||||||
|
TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
|
||||||
|
TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
|
||||||
|
TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||||
|
TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||||
|
TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
|
||||||
|
TARGET_INCDIRS="$(TARGET_INCDIRS)" \
|
||||||
|
TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
|
||||||
|
TARGET_LIBS="$(TARGET_LIBS)" \
|
||||||
|
STAGING_DIR_HOST="$(STAGING_DIR_HOST)" \
|
||||||
|
STAGING_DIR="$(STAGING_DIR)" \
|
||||||
|
$(QMAKE_R311) \
|
||||||
|
-spec $(QMAKE_SPECFILE) \
|
||||||
|
-o $(PKG_BUILD_DIR)/Frames/Makefile \
|
||||||
|
$(2) \
|
||||||
|
$(PKG_BUILD_DIR)/Frames/$(1).pro
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
TARGET_CC="$(TARGET_CROSS)gcc" \
|
||||||
|
TARGET_CXX="$(TARGET_CROSS)g++" \
|
||||||
|
TARGET_AR="$(TARGET_CROSS)ar cqs" \
|
||||||
|
TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
|
||||||
|
TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
|
||||||
|
TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||||
|
TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
|
||||||
|
TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
|
||||||
|
TARGET_INCDIRS="$(TARGET_INCDIRS)" \
|
||||||
|
TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
|
||||||
|
TARGET_LIBS="$(TARGET_LIBS)" \
|
||||||
|
STAGING_DIR_HOST="$(STAGING_DIR_HOST)" \
|
||||||
|
STAGING_DIR="$(STAGING_DIR)" \
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR)/Frames/ \
|
||||||
|
ARCH="$(TARGET_ARCH)" \
|
||||||
|
AR="$(TARGET_AR)" \
|
||||||
|
CC="$(TARGET_CC)" \
|
||||||
|
CXX="$(TARGET_CXX)" \
|
||||||
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/$(PKG_NAME)/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin/
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/Frames/$(PKG_NAME) $(1)/usr/bin/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|
Loading…
Reference in New Issue