Update of Windows dependencies for x64 support step 1: Removal of old dependencies.
This commit is contained in:
parent
8f3591b509
commit
45b67a0d3b
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -7,9 +7,6 @@
|
|||||||
[submodule "deps/Linux-deps"]
|
[submodule "deps/Linux-deps"]
|
||||||
path = deps/Linux-deps
|
path = deps/Linux-deps
|
||||||
url = ../oolite-linux-dependencies.git
|
url = ../oolite-linux-dependencies.git
|
||||||
[submodule "deps/Windows-x86-deps"]
|
|
||||||
path = deps/Windows-x86-deps
|
|
||||||
url = ../oolite-windows-dependencies.git
|
|
||||||
[submodule "tests"]
|
[submodule "tests"]
|
||||||
path = tests
|
path = tests
|
||||||
url = ../oolite-tests.git
|
url = ../oolite-tests.git
|
||||||
|
19
GNUmakefile
19
GNUmakefile
@ -11,20 +11,29 @@ endif
|
|||||||
GNUSTEP_OBJ_DIR_BASENAME := $(GNUSTEP_OBJ_DIR_NAME)
|
GNUSTEP_OBJ_DIR_BASENAME := $(GNUSTEP_OBJ_DIR_NAME)
|
||||||
HOST_ARCH := $(shell echo $(GNUSTEP_HOST_CPU) | sed -e s/i.86/x86/ -e s/amd64/x86_64/ )
|
HOST_ARCH := $(shell echo $(GNUSTEP_HOST_CPU) | sed -e s/i.86/x86/ -e s/amd64/x86_64/ )
|
||||||
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
||||||
JS_INC_DIR = deps/Windows-x86-deps/JS32ECMAv5/include
|
ifeq ($(GNUSTEP_HOST_CPU),x86_64)
|
||||||
JS_LIB_DIR = deps/Windows-x86-deps/JS32ECMAv5/lib
|
WIN_DEPS_DIR = deps/Windows-deps/x86_64
|
||||||
|
else
|
||||||
|
WIN_DEPS_DIR = deps/Windows-deps/x86
|
||||||
|
endif
|
||||||
|
JS_INC_DIR = $(WIN_DEPS_DIR)/JS32ECMAv5/include
|
||||||
|
JS_LIB_DIR = $(WIN_DEPS_DIR)/JS32ECMAv5/lib
|
||||||
ifeq ($(debug),yes)
|
ifeq ($(debug),yes)
|
||||||
JS_IMPORT_LIBRARY = js32ECMAv5dbg
|
JS_IMPORT_LIBRARY = js32ECMAv5dbg
|
||||||
else
|
else
|
||||||
JS_IMPORT_LIBRARY = js32ECMAv5
|
JS_IMPORT_LIBRARY = js32ECMAv5
|
||||||
endif
|
endif
|
||||||
ADDITIONAL_INCLUDE_DIRS = -Ideps/Windows-x86-deps/include -I$(JS_INC_DIR) -Isrc/SDL -Isrc/Core -Isrc/BSDCompat -Isrc/Core/Scripting -Isrc/Core/Materials -Isrc/Core/Entities -Isrc/Core/OXPVerifier -Isrc/Core/Debug -Isrc/Core/Tables
|
ADDITIONAL_INCLUDE_DIRS = -I$(WIN_DEPS_DIR)/include -I$(JS_INC_DIR) -Isrc/SDL -Isrc/Core -Isrc/BSDCompat -Isrc/Core/Scripting -Isrc/Core/Materials -Isrc/Core/Entities -Isrc/Core/OXPVerifier -Isrc/Core/Debug -Isrc/Core/Tables
|
||||||
ADDITIONAL_OBJC_LIBS = -lglu32 -lopengl32 -lpng14.dll -lmingw32 -lSDLmain -lSDL -lSDL_mixer -lgnustep-base -l$(JS_IMPORT_LIBRARY) -lwinmm -mwindows
|
ADDITIONAL_OBJC_LIBS = -lglu32 -lopengl32 -lpng14.dll -lmingw32 -lSDLmain -lSDL -lSDL_mixer -lgnustep-base -l$(JS_IMPORT_LIBRARY) -lwinmm -mwindows
|
||||||
ADDITIONAL_CFLAGS = -DWIN32 -DNEED_STRLCPY `sdl-config --cflags` -mtune=generic
|
ADDITIONAL_CFLAGS = -DWIN32 -DNEED_STRLCPY `sdl-config --cflags` -mtune=generic
|
||||||
# note the vpath stuff above isn't working for me, so adding src/SDL and src/Core explicitly
|
# note the vpath stuff above isn't working for me, so adding src/SDL and src/Core explicitly
|
||||||
ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DWIN32 -DXP_WIN -Wno-import -std=gnu99 `sdl-config --cflags` -mtune=generic
|
ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DWIN32 -DXP_WIN -Wno-import -std=gnu99 `sdl-config --cflags` -mtune=generic
|
||||||
ADDITIONAL_LDFLAGS += -Wl,--large-address-aware
|
ifneq ($(GNUSTEP_HOST_CPU),x86_64)
|
||||||
oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib -Ldeps/Windows-x86-deps/lib -L$(JS_LIB_DIR)
|
ADDITIONAL_LDFLAGS += -Wl,--large-address-aware
|
||||||
|
else
|
||||||
|
ADDITIONAL_LDFLAGS +=
|
||||||
|
endif
|
||||||
|
oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib -L$(WIN_DEPS_DIR)/lib -L$(JS_LIB_DIR)
|
||||||
ifeq ($(ESPEAK),yes)
|
ifeq ($(ESPEAK),yes)
|
||||||
ADDITIONAL_OBJC_LIBS += -lespeak.dll
|
ADDITIONAL_OBJC_LIBS += -lespeak.dll
|
||||||
ADDITIONAL_OBJCFLAGS +=-DHAVE_LIBESPEAK=1
|
ADDITIONAL_OBJCFLAGS +=-DHAVE_LIBESPEAK=1
|
||||||
|
@ -53,7 +53,11 @@ ifeq ($(debug),no)
|
|||||||
$(STRIP) $(PROGDIR)/$(DEST_BIN)
|
$(STRIP) $(PROGDIR)/$(DEST_BIN)
|
||||||
endif
|
endif
|
||||||
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
||||||
$(CP) $(CP_FLAGS) deps/Windows-x86-deps/DLLs/*.dll $(PROGDIR)
|
ifeq ($(GNUSTEP_HOST_CPU),x86_64)
|
||||||
|
$(CP) $(CP_FLAGS) deps/Windows-deps/x86_64/DLLs/*.dll $(PROGDIR)
|
||||||
|
else
|
||||||
|
$(CP) $(CP_FLAGS) deps/Windows-deps/x86/DLLs/*.dll $(PROGDIR)
|
||||||
|
endif
|
||||||
ifeq ($(debug),yes)
|
ifeq ($(debug),yes)
|
||||||
$(RM) $(PROGDIR)/js32ECMAv5.dll
|
$(RM) $(PROGDIR)/js32ECMAv5.dll
|
||||||
else
|
else
|
||||||
|
11
Makefile
11
Makefile
@ -33,8 +33,13 @@ pkg-debtest: DEB_REV := $(shell echo "0~test${DEB_REV}")
|
|||||||
pkg-debsnapshot: DEB_REV := $(shell echo "0~trunk${DEB_REV}")
|
pkg-debsnapshot: DEB_REV := $(shell echo "0~trunk${DEB_REV}")
|
||||||
|
|
||||||
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
||||||
LIBJS = deps/Windows-x86-deps/DLLs/js32ECMAv5.dll
|
ifeq ($(GNUSTEP_HOST_CPU),x86_64)
|
||||||
LIBJS_DBG = deps/Windows-x86-deps/DLLs/js32ECMAv5.dll
|
LIBJS = deps/Windows-deps/x86_64/DLLs/js32ECMAv5.dll
|
||||||
|
LIBJS_DBG = deps/Windows-deps/x86_64/DLLs/js32ECMAv5.dll
|
||||||
|
else
|
||||||
|
LIBJS = deps/Windows-deps/x86/DLLs/js32ECMAv5.dll
|
||||||
|
LIBJS_DBG = deps/Windows-deps/x86/DLLs/js32ECMAv5.dll
|
||||||
|
endif
|
||||||
DEPS = $(LIBJS)
|
DEPS = $(LIBJS)
|
||||||
DEPS_DBG = $(LIBJS_DBG)
|
DEPS_DBG = $(LIBJS_DBG)
|
||||||
else
|
else
|
||||||
@ -185,7 +190,7 @@ pkg-debclean:
|
|||||||
|
|
||||||
# And here are our Windows packager targets
|
# And here are our Windows packager targets
|
||||||
#
|
#
|
||||||
NSIS="C:\Program Files\NSIS\makensis.exe"
|
NSIS=/nsis/makensis.exe
|
||||||
NSISVERSIONS=installers/win32/OoliteVersions.nsh
|
NSISVERSIONS=installers/win32/OoliteVersions.nsh
|
||||||
|
|
||||||
# Passing arguments cause problems with some versions of NSIS.
|
# Passing arguments cause problems with some versions of NSIS.
|
||||||
|
1
deps/Windows-x86-deps
vendored
1
deps/Windows-x86-deps
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit c62480fa254c839322bd190b59484b160a45739b
|
|
Loading…
x
Reference in New Issue
Block a user