summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2019-11-06 07:27:16 (GMT)
committerTony Theodore <tonyt@logyst.com>2019-11-06 07:27:16 (GMT)
commit5c4a5b99e53e97eb67553220bd3d693f6c5fbd05 (patch)
tree6f5f0a75a41892a4206d63efb3efeb4d57807434
parent3860b273e42ca36d763aca7befdaa133e66ef520 (diff)
downloadmxe-5c4a5b99e53e97eb67553220bd3d693f6c5fbd05.zip
mxe-5c4a5b99e53e97eb67553220bd3d693f6c5fbd05.tar.gz
mxe-5c4a5b99e53e97eb67553220bd3d693f6c5fbd05.tar.bz2
qwt: build in top-level to install more features
closes #2359
-rw-r--r--src/qwt.mk19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/qwt.mk b/src/qwt.mk
index 367eb00..2a971ff 100644
--- a/src/qwt.mk
+++ b/src/qwt.mk
@@ -19,17 +19,20 @@ endef
define $(PKG)_BUILD
$(if $(BUILD_STATIC),\
- echo "QWT_CONFIG -= QwtDll" >> '$(1)/qwtconfig.pri')
+ echo "QWT_CONFIG -= QwtDll" >> '$(SOURCE_DIR)/qwtconfig.pri')
- # build
- cd '$(1)/src' && $(PREFIX)/$(TARGET)/$($(PKG)_QT_DIR)/bin/qmake
- $(MAKE) -C '$(1)/src' -f 'Makefile.Release' -j '$(JOBS)' install
+ # doesn't support out-of-source build
+ cd '$(SOURCE_DIR)' && $(PREFIX)/$(TARGET)/$($(PKG)_QT_DIR)/bin/qmake \
+ -after \
+ 'SUBDIRS -= doc designer' \
+ 'CONFIG -= debug_and_release'
+ $(MAKE) -C '$(SOURCE_DIR)' -j '$(JOBS)'
+ $(MAKE) -C '$(SOURCE_DIR)' -j 1 install
#build sinusplot example to test linkage
- cd '$(1)/examples/sinusplot' && $(PREFIX)/$(TARGET)/$($(PKG)_QT_DIR)/bin/qmake
- $(MAKE) -C '$(1)/examples/sinusplot' -f 'Makefile.Release' -j '$(JOBS)'
+ cd '$(SOURCE_DIR)/examples/sinusplot' && $(PREFIX)/$(TARGET)/$($(PKG)_QT_DIR)/bin/qmake
+ $(MAKE) -C '$(SOURCE_DIR)/examples/sinusplot' -f 'Makefile.Release' -j '$(JOBS)'
# install
- $(INSTALL) -m755 '$(1)/examples/bin/sinusplot.exe' '$(PREFIX)/$(TARGET)/bin/test-qwt.exe'
+ $(INSTALL) -m755 '$(SOURCE_DIR)/examples/bin/sinusplot.exe' '$(PREFIX)/$(TARGET)/bin/test-qwt.exe'
endef
-