mirror of https://git.wownero.com/dsc/mxe.git
qtserialport_qt4: enable static build and copy test program
closes #1175
This commit is contained in:
parent
f089be0b96
commit
a7c2578ba2
|
@ -0,0 +1,10 @@
|
|||
diff --git a/src/serialport/qt4support/serialport.prf b/src/serialport/qt4support/serialport.prf
|
||||
index b1d65e1..d20d47a 100644
|
||||
--- a/src/serialport/qt4support/serialport.prf
|
||||
+++ b/src/serialport/qt4support/serialport.prf
|
||||
@@ -25,3 +25,5 @@ mac {
|
||||
LIBS += -lQtSerialPort$${QT_LIBINFIX}
|
||||
}
|
||||
}
|
||||
+
|
||||
+static:DEFINES += QT_STATIC
|
|
@ -15,8 +15,10 @@ $(PKG)_DEPS := gcc qt
|
|||
|
||||
$(PKG)_UPDATE := $(call MXE_GET_GITHUB_SHA, $($(PKG)_GH_USER)/$($(PKG)_GH_REPO), $($(PKG)_GH_TREE))
|
||||
|
||||
define $(PKG)_BUILD_SHARED
|
||||
define $(PKG)_BUILD
|
||||
cd '$(1)' && '$(PREFIX)/$(TARGET)/qt/bin/qmake'
|
||||
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
||||
$(MAKE) -C '$(1)' -j 1 install
|
||||
# install one of the test programs
|
||||
cp -f '$(1)/examples/serialport/cenumerator/release/cenumerator.exe' '$(PREFIX)/$(TARGET)/bin/test-qtserialport_qt4.exe'
|
||||
endef
|
||||
|
|
Loading…
Reference in New Issue