Merge branch 'master' of github.com:OoliteProject/oolite
This commit is contained in:
commit
977190d82e
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -7,9 +7,6 @@
|
||||
[submodule "deps/Linux-deps"]
|
||||
path = deps/Linux-deps
|
||||
url = ../oolite-linux-dependencies.git
|
||||
[submodule "deps/Windows-x86-deps"]
|
||||
path = deps/Windows-x86-deps
|
||||
url = ../oolite-windows-dependencies.git
|
||||
[submodule "tests"]
|
||||
path = tests
|
||||
url = ../oolite-tests.git
|
||||
@ -25,3 +22,6 @@
|
||||
[submodule "deps/libvorbis"]
|
||||
path = deps/libvorbis
|
||||
url = ../libvorbis-1.3.3.git
|
||||
[submodule "deps/Windows-deps"]
|
||||
path = deps/Windows-deps
|
||||
url = ../oolite-windows-dependencies.git
|
||||
|
19
GNUmakefile
19
GNUmakefile
@ -11,20 +11,29 @@ endif
|
||||
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/ )
|
||||
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
||||
JS_INC_DIR = deps/Windows-x86-deps/JS32ECMAv5/include
|
||||
JS_LIB_DIR = deps/Windows-x86-deps/JS32ECMAv5/lib
|
||||
ifeq ($(GNUSTEP_HOST_CPU),x86_64)
|
||||
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)
|
||||
JS_IMPORT_LIBRARY = js32ECMAv5dbg
|
||||
else
|
||||
JS_IMPORT_LIBRARY = js32ECMAv5
|
||||
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_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
|
||||
ADDITIONAL_OBJCFLAGS = -DLOADSAVEGUI -DWIN32 -DXP_WIN -Wno-import -std=gnu99 `sdl-config --cflags` -mtune=generic
|
||||
ADDITIONAL_LDFLAGS += -Wl,--large-address-aware
|
||||
oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib -Ldeps/Windows-x86-deps/lib -L$(JS_LIB_DIR)
|
||||
ifneq ($(GNUSTEP_HOST_CPU),x86_64)
|
||||
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)
|
||||
ADDITIONAL_OBJC_LIBS += -lespeak.dll
|
||||
ADDITIONAL_OBJCFLAGS +=-DHAVE_LIBESPEAK=1
|
||||
|
@ -53,7 +53,11 @@ ifeq ($(debug),no)
|
||||
$(STRIP) $(PROGDIR)/$(DEST_BIN)
|
||||
endif
|
||||
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)
|
||||
$(RM) $(PROGDIR)/js32ECMAv5.dll
|
||||
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}")
|
||||
|
||||
ifeq ($(GNUSTEP_HOST_OS),mingw32)
|
||||
LIBJS = deps/Windows-x86-deps/DLLs/js32ECMAv5.dll
|
||||
LIBJS_DBG = deps/Windows-x86-deps/DLLs/js32ECMAv5.dll
|
||||
ifeq ($(GNUSTEP_HOST_CPU),x86_64)
|
||||
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_DBG = $(LIBJS_DBG)
|
||||
else
|
||||
@ -185,7 +190,7 @@ pkg-debclean:
|
||||
|
||||
# And here are our Windows packager targets
|
||||
#
|
||||
NSIS="C:\Program Files\NSIS\makensis.exe"
|
||||
NSIS=/nsis/makensis.exe
|
||||
NSISVERSIONS=installers/win32/OoliteVersions.nsh
|
||||
|
||||
# Passing arguments cause problems with some versions of NSIS.
|
||||
|
1
deps/Windows-deps
vendored
Submodule
1
deps/Windows-deps
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 8f30e266986dcee7bfb5dced20928f894b09e21c
|
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