Commit f6154e3213cd761e0747dc926880ab12848ee151
1 parent
6c640b2a
Exists in
master
Mudança no install-cacic.pro para suportar bibliotecas estáticas, se precisar eventualmente.
Showing
1 changed file
with
27 additions
and
4 deletions
Show diff stats
install-cacic/install-cacic.pro
| @@ -13,11 +13,34 @@ CONFIG += console | @@ -13,11 +13,34 @@ CONFIG += console | ||
| 13 | CONFIG -= app_bundle | 13 | CONFIG -= app_bundle |
| 14 | CONFIG += c++11 | 14 | CONFIG += c++11 |
| 15 | 15 | ||
| 16 | -win32 { | ||
| 17 | - LIBS += -LE:\LightBase\cacic-agente-project\cacic-agente\src\crypto++\lib -lcryptopp | ||
| 18 | - QT += axcontainer | 16 | +release { |
| 17 | +#Descomentar essas linhas se quiser bibliotecas estáticas | ||
| 18 | +# CONFIG += static | ||
| 19 | +# CONFIG += staticlib | ||
| 20 | +# message("Release build.") | ||
| 21 | +} | ||
| 22 | + | ||
| 23 | +static { | ||
| 24 | + DEFINES += STATIC | ||
| 25 | + message("Static build.") | ||
| 26 | + | ||
| 27 | + win32 { | ||
| 28 | + LIBS += -LE:\LightBase\cacic-agente-project\cacic-agente\src\crypto++\lib -lcryptopp | ||
| 29 | + QT += axcontainer | ||
| 30 | + } else { | ||
| 31 | + DEPENDPATH += ../lib | ||
| 32 | + LIBS += ../lib/libcryptopp.a | ||
| 33 | + LIBS += ../lib/libQt5Core.a | ||
| 34 | + LIBS += ../lib/libQt5Network.a | ||
| 35 | + } | ||
| 36 | + | ||
| 19 | } else { | 37 | } else { |
| 20 | - LIBS += -L/usr/lib -lcryptopp | 38 | + win32 { |
| 39 | + LIBS += -LE:\LightBase\cacic-agente-project\cacic-agente\src\crypto++\lib -lcryptopp | ||
| 40 | + QT += axcontainer | ||
| 41 | + } else { | ||
| 42 | + LIBS += -L/usr/lib -lcryptopp | ||
| 43 | + } | ||
| 21 | } | 44 | } |
| 22 | 45 | ||
| 23 | TEMPLATE = app | 46 | TEMPLATE = app |