aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Embroidery/libembroidery/libembroidery-static.pro
blob: c73d38ba0ae9b8479689b9db1132af877a92e3b6 (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
TEMPLATE = lib
DESTDIR  = lib
CONFIG  += static warn_on create_prl
CONFIG  -= qt debug_and_release
CONFIG  += release
CONFIG  -= debug

include( ../libembroidery/libembroidery.pri )

TARGET = embroidery

OBJECTS_DIR = .obj

DEFINES += LIBEMBROIDERY_STATIC

!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 {
    #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/embroidery.prl lib/libembroidery.prl" # rename the prl file, the Linux way
    } else {
        QMAKE_POST_LINK = "MOVE /Y lib\embroidery.prl lib\libembroidery.prl >nul 2>&1" # rename the prl file, 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.prl lib/*embroidery.a object_script.*