source: packages/Xorg/lib/qt4/files/qmake.mk @ 25401

Last change on this file since 25401 was 25401, checked in by mirko, 5 years ago

[packages/qt4] qmake.mk: pass $(STAGING_DIR); override Build/Compile/Default

File size: 1.2 KB
Line 
1#
2# Copyright (C) 2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8QMAKE_PLATFORM_PREFIX:=$(if $(CONFIG_QT4_WS_QWS),qws/)
9QMAKE_SPECFILE:=$(STAGING_DIR)/usr/share/mkspecs/$(QMAKE_PLATFORM_PREFIX)linux-openwrt-g++
10
11TARGET_INCDIRS+=$(STAGING_DIR)/include $(STAGING_DIR)/usr/include $(TOOLCHAIN_DIR)/include $(TOOLCHAIN_DIR)/usr/include
12TARGET_LIBDIRS+=$(STAGING_DIR)/lib $(STAGING_DIR)/usr/lib $(TOOLCHAIN_DIR)/lib $(TOOLCHAIN_DIR)/usr/lib
13
14define Build/Configure/Qmake
15        TARGET_CC="$(TARGET_CROSS)gcc" \
16        TARGET_CXX="$(TARGET_CROSS)g++" \
17        TARGET_AR="$(TARGET_CROSS)ar cqs" \
18        TARGET_OBJCOPY="$(TARGET_CROSS)objcopy" \
19        TARGET_RANLIB="$(TARGET_CROSS)ranlib" \
20        TARGET_CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
21        TARGET_CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
22        TARGET_LDFLAGS="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
23        TARGET_INCDIRS="$(TARGET_INCDIRS)" \
24        TARGET_LIBDIRS="$(TARGET_LIBDIRS)" \
25        STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
26        STAGING_DIR="$(STAGING_DIR)" \
27        qmake \
28                -spec $(QMAKE_SPECFILE) \
29                -o $(PKG_BUILD_DIR)/Makefile \
30                $(PKG_BUILD_DIR)/$(1).pro
31endef
32
33define Build/Compile/Default
34        $(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
35                $(1);
36endef
Note: See TracBrowser for help on using the repository browser.