win32/64 fixes

pull/110/head
WIN-641EQTUHGRE\root 2017-11-18 02:18:41 +03:00 committed by Hleb Valoshka
parent 4642c3fcec
commit 40de39362a
2 changed files with 19 additions and 6 deletions

View File

@ -553,14 +553,28 @@ win32 {
windows/inc/libjpeg \
windows/inc/lua \
windows/inc/spice
LIBS += -Lwindows/lib/x86 \
!contains(QMAKE_TARGET.arch, x86_64) {
LIBS += -L$$PWD/windows/lib/x86 \
-lzlib \
-llibpng \
-llibjpeg \
-llua51 \
-lcspice \
-lvfw32\
-llibintl
}
else{
LIBS += -L$$PWD/windows/lib/x64 \
-lzlib \
-llibpng \
-llibjpeg \
-lintl \
-llua51 \
-lcspice \
-lvfw32
-lcspice64 \
-lvfw32\
-llibintl
}
LIBS +=opengl32.lib -lglu32 -lUser32
SOURCES += src/celestia/avicapture.cpp
HEADERS += src/celestia/avicapture.h
@ -571,7 +585,6 @@ win32 {
# Disable the regrettable min and max macros in windows.h
DEFINES += NOMINMAX
LIBS += /nodefaultlib:libcmt.lib
}
unix {
@ -725,4 +738,4 @@ unix {
INSTALLS += target data textures lores_textures hires_textures \
flares models shaders fonts scripts locale extras extras-standard \
configuration desktop icon128
}
}

View File

@ -28,7 +28,7 @@
using namespace std;
extern "C" { FILE __iob_func[3] = { *stdin,*stdout,*stderr }; }
static const char *description = "Celestia";
// Command line options