aboutsummaryrefslogtreecommitdiff
path: root/C/Util/LzmaLib
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2021-12-27 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2022-03-18 15:35:13 +0500
commitf19f813537c7aea1c20749c914e756b54a9c3cf5 (patch)
tree816ba62ca7c0fa19f2eb46d9e9d6f7dd7c3a744d /C/Util/LzmaLib
parent98e06a519b63b81986abe76d28887f6984a7732b (diff)
download7zip-21.07.tar.gz
7zip-21.07.tar.bz2
7zip-21.07.zip
'21.07'21.07
Diffstat (limited to 'C/Util/LzmaLib')
-rw-r--r--C/Util/LzmaLib/LzmaLib.def4
-rw-r--r--C/Util/LzmaLib/LzmaLib.dsp182
-rw-r--r--C/Util/LzmaLib/LzmaLib.dsw29
-rw-r--r--C/Util/LzmaLib/LzmaLibExports.c14
-rw-r--r--C/Util/LzmaLib/makefile36
-rw-r--r--C/Util/LzmaLib/resource.rc3
6 files changed, 268 insertions, 0 deletions
diff --git a/C/Util/LzmaLib/LzmaLib.def b/C/Util/LzmaLib/LzmaLib.def
new file mode 100644
index 0000000..8bc6add
--- /dev/null
+++ b/C/Util/LzmaLib/LzmaLib.def
@@ -0,0 +1,4 @@
1EXPORTS
2 LzmaCompress
3 LzmaUncompress
4
diff --git a/C/Util/LzmaLib/LzmaLib.dsp b/C/Util/LzmaLib/LzmaLib.dsp
new file mode 100644
index 0000000..6ce91dc
--- /dev/null
+++ b/C/Util/LzmaLib/LzmaLib.dsp
@@ -0,0 +1,182 @@
1# Microsoft Developer Studio Project File - Name="LzmaLib" - Package Owner=<4>
2# Microsoft Developer Studio Generated Build File, Format Version 6.00
3# ** DO NOT EDIT **
4
5# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
6
7CFG=LzmaLib - Win32 Debug
8!MESSAGE This is not a valid makefile. To build this project using NMAKE,
9!MESSAGE use the Export Makefile command and run
10!MESSAGE
11!MESSAGE NMAKE /f "LzmaLib.mak".
12!MESSAGE
13!MESSAGE You can specify a configuration when running NMAKE
14!MESSAGE by defining the macro CFG on the command line. For example:
15!MESSAGE
16!MESSAGE NMAKE /f "LzmaLib.mak" CFG="LzmaLib - Win32 Debug"
17!MESSAGE
18!MESSAGE Possible choices for configuration are:
19!MESSAGE
20!MESSAGE "LzmaLib - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
21!MESSAGE "LzmaLib - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
22!MESSAGE
23
24# Begin Project
25# PROP AllowPerConfigDependencies 0
26# PROP Scc_ProjName ""
27# PROP Scc_LocalPath ""
28CPP=cl.exe
29MTL=midl.exe
30RSC=rc.exe
31
32!IF "$(CFG)" == "LzmaLib - Win32 Release"
33
34# PROP BASE Use_MFC 0
35# PROP BASE Use_Debug_Libraries 0
36# PROP BASE Output_Dir "Release"
37# PROP BASE Intermediate_Dir "Release"
38# PROP BASE Target_Dir ""
39# PROP Use_MFC 0
40# PROP Use_Debug_Libraries 0
41# PROP Output_Dir "Release"
42# PROP Intermediate_Dir "Release"
43# PROP Ignore_Export_Lib 0
44# PROP Target_Dir ""
45# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LZMALIB_EXPORTS" /YX /FD /c
46# ADD CPP /nologo /Gr /MT /W3 /O2 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LZMALIB_EXPORTS" /FD /c
47# SUBTRACT CPP /YX
48# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
49# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
50# ADD BASE RSC /l 0x419 /d "NDEBUG"
51# ADD RSC /l 0x419 /d "NDEBUG"
52BSC32=bscmake.exe
53# ADD BASE BSC32 /nologo
54# ADD BSC32 /nologo
55LINK32=link.exe
56# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
57# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"C:\Util\LZMA.dll" /opt:NOWIN98
58# SUBTRACT LINK32 /pdb:none
59
60!ELSEIF "$(CFG)" == "LzmaLib - Win32 Debug"
61
62# PROP BASE Use_MFC 0
63# PROP BASE Use_Debug_Libraries 1
64# PROP BASE Output_Dir "Debug"
65# PROP BASE Intermediate_Dir "Debug"
66# PROP BASE Target_Dir ""
67# PROP Use_MFC 0
68# PROP Use_Debug_Libraries 1
69# PROP Output_Dir "Debug"
70# PROP Intermediate_Dir "Debug"
71# PROP Ignore_Export_Lib 0
72# PROP Target_Dir ""
73# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LZMALIB_EXPORTS" /YX /FD /GZ /c
74# ADD CPP /nologo /MTd /W3 /Gm /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "LZMALIB_EXPORTS" /D "COMPRESS_MF_MT" /FD /GZ /c
75# SUBTRACT CPP /YX
76# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
77# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
78# ADD BASE RSC /l 0x419 /d "_DEBUG"
79# ADD RSC /l 0x419 /d "_DEBUG"
80BSC32=bscmake.exe
81# ADD BASE BSC32 /nologo
82# ADD BSC32 /nologo
83LINK32=link.exe
84# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
85# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"C:\Util\LZMA.dll" /pdbtype:sept
86
87!ENDIF
88
89# Begin Target
90
91# Name "LzmaLib - Win32 Release"
92# Name "LzmaLib - Win32 Debug"
93# Begin Group "Spec"
94
95# PROP Default_Filter ""
96# Begin Source File
97
98SOURCE=.\LzmaLib.def
99# End Source File
100# Begin Source File
101
102SOURCE=.\LzmaLibExports.c
103# End Source File
104# End Group
105# Begin Source File
106
107SOURCE=..\..\7zTypes.h
108# End Source File
109# Begin Source File
110
111SOURCE=..\..\Alloc.c
112# End Source File
113# Begin Source File
114
115SOURCE=..\..\Alloc.h
116# End Source File
117# Begin Source File
118
119SOURCE=..\..\IStream.h
120# End Source File
121# Begin Source File
122
123SOURCE=..\..\LzFind.c
124# End Source File
125# Begin Source File
126
127SOURCE=..\..\LzFind.h
128# End Source File
129# Begin Source File
130
131SOURCE=..\..\LzFindMt.c
132# End Source File
133# Begin Source File
134
135SOURCE=..\..\LzFindMt.h
136# End Source File
137# Begin Source File
138
139SOURCE=..\..\LzFindOpt.c
140# End Source File
141# Begin Source File
142
143SOURCE=..\..\LzHash.h
144# End Source File
145# Begin Source File
146
147SOURCE=..\..\LzmaDec.c
148# End Source File
149# Begin Source File
150
151SOURCE=..\..\LzmaDec.h
152# End Source File
153# Begin Source File
154
155SOURCE=..\..\LzmaEnc.c
156# End Source File
157# Begin Source File
158
159SOURCE=..\..\LzmaEnc.h
160# End Source File
161# Begin Source File
162
163SOURCE=..\..\LzmaLib.c
164# End Source File
165# Begin Source File
166
167SOURCE=..\..\LzmaLib.h
168# End Source File
169# Begin Source File
170
171SOURCE=.\resource.rc
172# End Source File
173# Begin Source File
174
175SOURCE=..\..\Threads.c
176# End Source File
177# Begin Source File
178
179SOURCE=..\..\Threads.h
180# End Source File
181# End Target
182# End Project
diff --git a/C/Util/LzmaLib/LzmaLib.dsw b/C/Util/LzmaLib/LzmaLib.dsw
new file mode 100644
index 0000000..6faf333
--- /dev/null
+++ b/C/Util/LzmaLib/LzmaLib.dsw
@@ -0,0 +1,29 @@
1Microsoft Developer Studio Workspace File, Format Version 6.00
2# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
3
4###############################################################################
5
6Project: "LzmaLib"=.\LzmaLib.dsp - Package Owner=<4>
7
8Package=<5>
9{{{
10}}}
11
12Package=<4>
13{{{
14}}}
15
16###############################################################################
17
18Global:
19
20Package=<5>
21{{{
22}}}
23
24Package=<3>
25{{{
26}}}
27
28###############################################################################
29
diff --git a/C/Util/LzmaLib/LzmaLibExports.c b/C/Util/LzmaLib/LzmaLibExports.c
new file mode 100644
index 0000000..4a28a9a
--- /dev/null
+++ b/C/Util/LzmaLib/LzmaLibExports.c
@@ -0,0 +1,14 @@
1/* LzmaLibExports.c -- LZMA library DLL Entry point
22015-11-08 : Igor Pavlov : Public domain */
3
4#include "../../Precomp.h"
5
6#include <windows.h>
7
8BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
9{
10 UNUSED_VAR(hInstance);
11 UNUSED_VAR(dwReason);
12 UNUSED_VAR(lpReserved);
13 return TRUE;
14}
diff --git a/C/Util/LzmaLib/makefile b/C/Util/LzmaLib/makefile
new file mode 100644
index 0000000..b36f1de
--- /dev/null
+++ b/C/Util/LzmaLib/makefile
@@ -0,0 +1,36 @@
1MY_STATIC_LINK=1
2SLIB = sLZMA.lib
3PROG = LZMA.dll
4SLIBPATH = $O\$(SLIB)
5
6DEF_FILE = LzmaLib.def
7CFLAGS = $(CFLAGS) \
8
9LIB_OBJS = \
10 $O\LzmaLibExports.obj \
11
12C_OBJS = \
13 $O\Alloc.obj \
14 $O\CpuArch.obj \
15 $O\LzFind.obj \
16 $O\LzFindMt.obj \
17 $O\LzFindOpt.obj \
18 $O\LzmaDec.obj \
19 $O\LzmaEnc.obj \
20 $O\LzmaLib.obj \
21 $O\Threads.obj \
22
23OBJS = \
24 $(LIB_OBJS) \
25 $(C_OBJS) \
26 $O\resource.res
27
28!include "../../../CPP/Build.mak"
29
30$(SLIBPATH): $O $(OBJS)
31 lib -out:$(SLIBPATH) $(OBJS) $(LIBS)
32
33$(LIB_OBJS): $(*B).c
34 $(COMPL_O2)
35$(C_OBJS): ../../$(*B).c
36 $(COMPL_O2)
diff --git a/C/Util/LzmaLib/resource.rc b/C/Util/LzmaLib/resource.rc
new file mode 100644
index 0000000..674832e
--- /dev/null
+++ b/C/Util/LzmaLib/resource.rc
@@ -0,0 +1,3 @@
1#include "../../7zVersion.rc"
2
3MY_VERSION_INFO_DLL("LZMA library", "LZMA")