blob: 3fdbb8a48ca05cc58cdb2bcf9171b1736421cfcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
TEMPLATE = lib
DESTDIR = lib
CONFIG += shared warn_on
CONFIG -= qt debug_and_release
CONFIG += release
CONFIG -= debug
include( ../libembroidery/libembroidery.pri )
TARGET = embroidery
OBJECTS_DIR = .obj
DEFINES += LIBEMBROIDERY_SHARED
!msvc {
!macx { #TODO: better clang support
#QMAKE_LFLAGS += -static-libgcc #TODO: Only static link when targeting Windows and building with MinGW (natively or cross-compile)
}
}
win32 {
TARGET = lib$$qtLibraryTarget($$TARGET) #force name to be libembroidery.dll
#Find out if we are cross-compiling from a Linux machine
UNAME = $$system(uname -s)
contains( UNAME, [lL]inux ) {
QMAKE_POST_LINK = "mv -f lib/liblibembroidery.a lib/libembroidery.dll.a" # rename the stub, the Linux way
} else {
QMAKE_POST_LINK = "MOVE /Y lib\liblibembroidery.a lib\libembroidery.dll.a >nul 2>&1" # rename the stub, the Windows way
}
} else {
VERSION = 1.9.0 #TODO: update this to 2.0.0 for proper release. Better yet, grep a file with the version number
}
QMAKE_DISTCLEAN += lib/*embroidery.dll* object_script.*
|