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

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

[packages/qt4] make QMAKE_LIBS modifiable from within OpenWrt Makefiles invoking qmake

File size: 1.3 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        TARGET_LIBS="$(TARGET_LIBS)" \
26        STAGING_DIR_HOST="$(STAGING_DIR)/../host" \
27        STAGING_DIR="$(STAGING_DIR)" \
28        qmake \
29                -spec $(QMAKE_SPECFILE) \
30                -o $(PKG_BUILD_DIR)/Makefile \
31                $(PKG_BUILD_DIR)/$(1).pro
32endef
33
34define Build/Compile/Default
35        $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
36                $(1);
37endef
Note: See TracBrowser for help on using the repository browser.