Skip to content
This repository has been archived by the owner on Jun 20, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'remotes/git-svn'
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeykt committed Nov 7, 2018
2 parents 94e2d59 + e6ccefa commit 5e6b962
Show file tree
Hide file tree
Showing 34 changed files with 583 additions and 374 deletions.
6 changes: 4 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ engine_objs := \
rev.cpp \
baselayer.cpp \
cache1d.cpp \
klzw.cpp \
common.cpp \
compat.cpp \
crc32.cpp \
Expand Down Expand Up @@ -211,6 +212,7 @@ engine_tools_objs := \
pragmas.cpp \
kplib.cpp \
cache1d.cpp \
klzw.cpp \
crc32.cpp \
colmatch.cpp \
lz4.cpp \
Expand Down Expand Up @@ -998,9 +1000,9 @@ $(ebacktrace_dll): platform/Windows/src/backtrace.c
$(COMPILE_STATUS)
$(RECIPE_IF) $(CC) $(CONLYFLAGS) -O2 -ggdb -shared -Wall -Wextra -static-libgcc -I$(engine_inc) -o $@ $^ -lbfd -liberty -limagehlp $(RECIPE_RESULT_COMPILE)

libcache1d$(DLLSUFFIX): $(engine_src)/cache1d.cpp
libklzw$(DLLSUFFIX): $(engine_src)/klzw.cpp
$(COMPILE_STATUS)
$(RECIPE_IF) $(COMPILER_C) -DCACHE1D_COMPRESS_ONLY -shared -fPIC $< -o $@ $(RECIPE_RESULT_COMPILE)
$(RECIPE_IF) $(COMPILER_C) -shared -fPIC $< -o $@ $(RECIPE_RESULT_COMPILE)

# to debug the tools link phase, make a copy of this rule explicitly replacing % with the name of a tool, such as kextract
%$(EXESUFFIX): $(tools_obj)/%.$o $(foreach i,tools $(tools_deps),$(call expandobjs,$i))
Expand Down
2 changes: 2 additions & 0 deletions platform/Windows/build.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@
<ClCompile Include="..\..\source\build\src\hash.cpp" />
<ClCompile Include="..\..\source\build\src\hightile.cpp" />
<ClCompile Include="..\..\source\build\src\jwzgles.c" />
<ClCompile Include="..\..\source\build\src\klzw.cpp" />
<ClCompile Include="..\..\source\build\src\kplib.cpp" />
<ClCompile Include="..\..\source\build\src\lunatic.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
Expand Down Expand Up @@ -334,6 +335,7 @@
<ClInclude Include="..\..\source\build\include\hightile.h" />
<ClInclude Include="..\..\source\build\include\jwzgles.h" />
<ClInclude Include="..\..\source\build\include\jwzglesI.h" />
<ClInclude Include="..\..\source\build\include\klzw.h" />
<ClInclude Include="..\..\source\build\include\kplib.h" />
<ClInclude Include="..\..\source\build\include\libdivide.h" />
<ClInclude Include="..\..\source\build\include\lz4.h" />
Expand Down
6 changes: 6 additions & 0 deletions platform/Windows/build.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<ClCompile Include="..\..\source\build\src\jwzgles.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\build\src\klzw.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\source\build\src\kplib.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down Expand Up @@ -274,6 +277,9 @@
<ClInclude Include="..\..\source\build\include\jwzglesI.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\source\build\include\klzw.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\source\build\include\kplib.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down
1 change: 1 addition & 0 deletions platform/Windows/msvc.mak
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ ENGINE_OBJS= \
$(ENGINE_OBJ)\animvpx.$o \
$(ENGINE_OBJ)\baselayer.$o \
$(ENGINE_OBJ)\cache1d.$o \
$(ENGINE_OBJ)\klzw.$o \
$(ENGINE_OBJ)\common.$o \
$(ENGINE_OBJ)\compat.$o \
$(ENGINE_OBJ)\crc32.$o \
Expand Down
1 change: 1 addition & 0 deletions source/build/include/build.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#pragma once

Expand Down
8 changes: 7 additions & 1 deletion source/build/include/cache1d.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// cache1d.h
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#ifndef cache1d_h_
#define cache1d_h_
Expand Down
8 changes: 8 additions & 0 deletions source/build/include/clip.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#pragma once

#ifndef clip_h_
Expand Down
4 changes: 4 additions & 0 deletions source/build/include/editor.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#ifndef editor_h_
#define editor_h_
Expand Down
30 changes: 30 additions & 0 deletions source/build/include/klzw.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#ifndef klzw_h_
#define klzw_h_

#include "compat.h"

#ifdef __cplusplus
extern "C" {
#endif

// These two follow the argument order of the C functions "read" and "write":
// handle, buffer, length.
typedef int32_t (*klzw_readfunc)(intptr_t, void *, int32_t);
typedef void (*klzw_writefunc)(intptr_t, void const *, int32_t);

int32_t klzw_read_compressed(void *buffer, bsize_t dasizeof, bsize_t count, intptr_t f, klzw_readfunc readfunc);
void klzw_write_compressed(const void *buffer, bsize_t dasizeof, bsize_t count, intptr_t f, klzw_writefunc writefunc);

#ifdef __cplusplus
}
#endif

#endif // klzw_h_
8 changes: 7 additions & 1 deletion source/build/include/mmulti.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// mmulti.h
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#ifndef mmulti_h_
#define mmulti_h_
Expand Down
8 changes: 8 additions & 0 deletions source/build/include/palette.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#pragma once

#ifndef palette_h_
Expand Down
6 changes: 5 additions & 1 deletion source/build/include/pragmas.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)

// by the EDuke32 team (development@voidpoint.com)

#ifndef pragmas_h_
#define pragmas_h_
Expand Down
8 changes: 8 additions & 0 deletions source/build/src/2d.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#include "build.h"
#include "editor.h"

Expand Down
4 changes: 4 additions & 0 deletions source/build/src/a-c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
// Ken Silverman's official web site: "http://www.advsys.net/ken"
// See the included license file "BUILDLIC.TXT" for license info.
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#include "a.h"
#include "pragmas.h"
Expand Down
4 changes: 4 additions & 0 deletions source/build/src/a.masm
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
; "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
; Ken Silverman's official web site: "http://www.advsys.net/ken"
; See the included license file "BUILDLIC.TXT" for license info.
;
; This file has been modified from Ken Silverman's original release
; by Jonathon Fowler (jf@jonof.id.au)
; by the EDuke32 team (development@voidpoint.com)

.586P
;.8087
Expand Down
1 change: 1 addition & 0 deletions source/build/src/a.nasm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
;
; This file has been modified from Ken Silverman's original release
; by Jonathon Fowler (jf@jonof.id.au)
; by the EDuke32 team (development@voidpoint.com)

%ifidn __OUTPUT_FORMAT__, x64
%define ASM_x86_64
Expand Down
1 change: 1 addition & 0 deletions source/build/src/build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//
// This file has been modified from Ken Silverman's original release
// by Jonathon Fowler (jf@jonof.id.au)
// by the EDuke32 team (development@voidpoint.com)

#include "build.h"
#include "compat.h"
Expand Down
Loading

0 comments on commit 5e6b962

Please sign in to comment.