git-svn-id: svn://svn.icculus.org/netradiant/trunk@87 61c419a2-8eb2-4b30-bcec-8cead039b335
|
|
@ -1,3 +1,9 @@
|
|||
2008-09-18 Rudolf Polzer divVerent(at)alientrap.org
|
||||
* radiant: handle missing anisotropy extension; fixes display bug on
|
||||
Windows XP software renderer
|
||||
* radiant: make logging kick in earlier
|
||||
* radiant: add svn release to the version number
|
||||
|
||||
2008-09-15 Rudolf Polzer divVerent(at)alientrap.org
|
||||
* all: added a Makefile to build GtkRadiant; this replaces scons and
|
||||
python install.py
|
||||
|
|
|
|||
16
Makefile
|
|
@ -19,6 +19,7 @@ CXX ?= g++
|
|||
RANLIB ?= ranlib
|
||||
AR ?= ar
|
||||
LDD ?= ldd # nothing on Win32
|
||||
WINDRES ?= # only used on Win32
|
||||
|
||||
PKGCONFIG ?= pkg-config
|
||||
PKG_CONFIG_PATH ?=
|
||||
|
|
@ -204,6 +205,7 @@ dependencies-check:
|
|||
checkbinary g++ "$(CXX)"; \
|
||||
checkbinary binutils "$(RANLIB)"; \
|
||||
checkbinary binutils "$(AR)"; \
|
||||
[ "$(OS)" = "Win32" ] && checkbinary mingw32 "$(WINDRES)"; \
|
||||
[ "$(OS)" != "Win32" ] && checkbinary libc6 "$(LDD)"; \
|
||||
$(ECHO) All required tools have been found!
|
||||
@$(ECHO)
|
||||
|
|
@ -286,6 +288,14 @@ clean:
|
|||
$(CXX) $^ $(LDFLAGS) $(LDFLAGS_COMMON) $(LDFLAGS_EXTRA) $(LDFLAGS_DLL) $(LIBS_EXTRA) $(LIBS_COMMON) $(LIBS) -shared -o $@
|
||||
[ -z "$(LDD)" ] || [ -z "`$(LDD) -r $@ $(STDERR_TO_STDOUT) $(STDOUT_TO_DEVNULL) $(TEE_STDERR)`" ] || { $(RM) $@; exit 1; }
|
||||
|
||||
%.rc: %.ico
|
||||
$(ECHO) '1 ICON "$<"' > $@
|
||||
|
||||
ifeq ($(OS),Win32)
|
||||
%.o: %.rc
|
||||
$(WINDRES) $< $@
|
||||
endif
|
||||
|
||||
%.o: %.cpp $(if $(findstring $(DEPEND_ON_MAKEFILE),yes),$(wildcard Makefile*),)
|
||||
$(CXX) $< $(CFLAGS) $(CXXFLAGS) $(CFLAGS_COMMON) $(CXXFLAGS_COMMON) $(CPPFLAGS) $(CPPFLAGS_COMMON) $(CPPFLAGS_EXTRA) $(TARGET_ARCH) -c -o $@
|
||||
|
||||
|
|
@ -347,6 +357,7 @@ install/q3map2.$(EXE): \
|
|||
libl_net.$(A) \
|
||||
libmathlib.$(A) \
|
||||
libpicomodel.$(A) \
|
||||
$(if $(findstring $(OS),Win32),icons/q3map2.o,) \
|
||||
|
||||
libmathlib.$(A): CPPFLAGS_EXTRA := -Ilibs
|
||||
libmathlib.$(A): \
|
||||
|
|
@ -441,6 +452,7 @@ install/q3data.$(EXE): \
|
|||
tools/quake3/q3data/video.o \
|
||||
libl_net.$(A) \
|
||||
libmathlib.$(A) \
|
||||
$(if $(findstring $(OS),Win32),icons/q3data.o,) \
|
||||
|
||||
install/radiant.$(EXE): LDFLAGS_EXTRA := $(MWINDOWS)
|
||||
install/radiant.$(EXE): LIBS_EXTRA := $(LIBS_GL) $(LIBS_DL) $(LIBS_XML) $(LIBS_GLIB) $(LIBS_GTK) $(LIBS_GTKGLEXT)
|
||||
|
|
@ -533,6 +545,7 @@ install/radiant.$(EXE): \
|
|||
libmathlib.$(A) \
|
||||
libprofile.$(A) \
|
||||
libxmllib.$(A) \
|
||||
$(if $(findstring $(OS),Win32),icons/radiant.o,) \
|
||||
|
||||
libcmdlib.$(A): CPPFLAGS_EXTRA := -Ilibs
|
||||
libcmdlib.$(A): \
|
||||
|
|
@ -773,6 +786,7 @@ install/qdata3.$(EXE): \
|
|||
tools/quake2/qdata/tables.o \
|
||||
tools/quake2/qdata/video.o \
|
||||
libl_net.$(A) \
|
||||
$(if $(findstring $(OS),Win32),icons/qdata3.o,) \
|
||||
|
||||
install/q2map.$(EXE): LIBS_EXTRA := $(LIBS_XML)
|
||||
install/q2map.$(EXE): CPPFLAGS_EXTRA := $(CPPFLAGS_XML) -Itools/quake2/common -Ilibs -Iinclude
|
||||
|
|
@ -810,6 +824,7 @@ install/q2map.$(EXE): \
|
|||
tools/quake2/q2map/tree.o \
|
||||
tools/quake2/q2map/writebsp.o \
|
||||
libl_net.$(A) \
|
||||
$(if $(findstring $(OS),Win32),icons/q2map.o,) \
|
||||
|
||||
install/plugins/ufoaiplug.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
|
||||
install/plugins/ufoaiplug.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
|
||||
|
|
@ -860,6 +875,7 @@ install/heretic2/h2data.$(EXE): \
|
|||
tools/quake2/qdata_heretic2/tmix.o \
|
||||
tools/quake2/qdata_heretic2/video.o \
|
||||
libl_net.$(A) \
|
||||
$(if $(findstring $(OS),Win32),icons/h2data.o,) \
|
||||
|
||||
.PHONY: install-data
|
||||
install-data: binaries
|
||||
|
|
|
|||
|
|
@ -25,3 +25,4 @@ CXX = $(MINGW_EXEC_PREFIX)g++
|
|||
LDD =
|
||||
RANLIB = $(MINGW_EXEC_PREFIX)ranlib
|
||||
AR = $(MINGW_EXEC_PREFIX)ar
|
||||
WINDRES = $(MINGW_EXEC_PREFIX)windres
|
||||
|
|
|
|||
BIN
icons/h2data.ico
Normal file
|
After Width: | Height: | Size: 766 B |
BIN
icons/q2map.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
icons/q3data.ico
Normal file
|
After Width: | Height: | Size: 766 B |
BIN
icons/q3map2.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
icons/qdata3.ico
Normal file
|
After Width: | Height: | Size: 766 B |
BIN
icons/radiant-src.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
icons/radiant.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
|
|
@ -54,6 +54,8 @@ void Sys_LogFile(bool enable)
|
|||
if (enable && !g_hLogFile)
|
||||
{
|
||||
// settings say we should be logging and we don't have a log file .. so create it
|
||||
if(!SettingsPath_get()[0])
|
||||
return; // cannot open a log file yet
|
||||
// open a file to log the console (if user prefs say so)
|
||||
// the file handle is g_hLogFile
|
||||
// the log file is erased
|
||||
|
|
|
|||
|
|
@ -162,7 +162,6 @@ void environment_init(int argc, char* argv[])
|
|||
if(!appdata || string_empty(appdata))
|
||||
{
|
||||
ERROR_MESSAGE("Application Data folder not available.\n"
|
||||
"Please install shfolder redistributable package.\n"
|
||||
"Radiant will use C:\\ for user preferences.\n");
|
||||
home << "C:";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ void paths_init()
|
|||
|
||||
{
|
||||
StringOutputStream path(256);
|
||||
path << home << RADIANT_VERSION << '/';
|
||||
path << home << "1." << RADIANT_MAJOR_VERSION "." << RADIANT_MINOR_VERSION << '/';
|
||||
g_strSettingsPath = path.c_str();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |