diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2021-12-27 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2022-03-18 15:35:13 +0500 |
commit | f19f813537c7aea1c20749c914e756b54a9c3cf5 (patch) | |
tree | 816ba62ca7c0fa19f2eb46d9e9d6f7dd7c3a744d /C/Util/LzmaLib | |
parent | 98e06a519b63b81986abe76d28887f6984a7732b (diff) | |
download | 7zip-21.07.tar.gz 7zip-21.07.tar.bz2 7zip-21.07.zip |
'21.07'21.07
Diffstat (limited to '')
-rw-r--r-- | C/Util/LzmaLib/LzmaLib.def | 4 | ||||
-rw-r--r-- | C/Util/LzmaLib/LzmaLib.dsp | 182 | ||||
-rw-r--r-- | C/Util/LzmaLib/LzmaLib.dsw | 29 | ||||
-rw-r--r-- | C/Util/LzmaLib/LzmaLibExports.c | 14 | ||||
-rw-r--r-- | C/Util/LzmaLib/makefile | 36 | ||||
-rw-r--r-- | C/Util/LzmaLib/resource.rc | 3 |
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 @@ | |||
1 | EXPORTS | ||
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 | |||
7 | CFG=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 "" | ||
28 | CPP=cl.exe | ||
29 | MTL=midl.exe | ||
30 | RSC=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" | ||
52 | BSC32=bscmake.exe | ||
53 | # ADD BASE BSC32 /nologo | ||
54 | # ADD BSC32 /nologo | ||
55 | LINK32=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" | ||
80 | BSC32=bscmake.exe | ||
81 | # ADD BASE BSC32 /nologo | ||
82 | # ADD BSC32 /nologo | ||
83 | LINK32=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 | |||
98 | SOURCE=.\LzmaLib.def | ||
99 | # End Source File | ||
100 | # Begin Source File | ||
101 | |||
102 | SOURCE=.\LzmaLibExports.c | ||
103 | # End Source File | ||
104 | # End Group | ||
105 | # Begin Source File | ||
106 | |||
107 | SOURCE=..\..\7zTypes.h | ||
108 | # End Source File | ||
109 | # Begin Source File | ||
110 | |||
111 | SOURCE=..\..\Alloc.c | ||
112 | # End Source File | ||
113 | # Begin Source File | ||
114 | |||
115 | SOURCE=..\..\Alloc.h | ||
116 | # End Source File | ||
117 | # Begin Source File | ||
118 | |||
119 | SOURCE=..\..\IStream.h | ||
120 | # End Source File | ||
121 | # Begin Source File | ||
122 | |||
123 | SOURCE=..\..\LzFind.c | ||
124 | # End Source File | ||
125 | # Begin Source File | ||
126 | |||
127 | SOURCE=..\..\LzFind.h | ||
128 | # End Source File | ||
129 | # Begin Source File | ||
130 | |||
131 | SOURCE=..\..\LzFindMt.c | ||
132 | # End Source File | ||
133 | # Begin Source File | ||
134 | |||
135 | SOURCE=..\..\LzFindMt.h | ||
136 | # End Source File | ||
137 | # Begin Source File | ||
138 | |||
139 | SOURCE=..\..\LzFindOpt.c | ||
140 | # End Source File | ||
141 | # Begin Source File | ||
142 | |||
143 | SOURCE=..\..\LzHash.h | ||
144 | # End Source File | ||
145 | # Begin Source File | ||
146 | |||
147 | SOURCE=..\..\LzmaDec.c | ||
148 | # End Source File | ||
149 | # Begin Source File | ||
150 | |||
151 | SOURCE=..\..\LzmaDec.h | ||
152 | # End Source File | ||
153 | # Begin Source File | ||
154 | |||
155 | SOURCE=..\..\LzmaEnc.c | ||
156 | # End Source File | ||
157 | # Begin Source File | ||
158 | |||
159 | SOURCE=..\..\LzmaEnc.h | ||
160 | # End Source File | ||
161 | # Begin Source File | ||
162 | |||
163 | SOURCE=..\..\LzmaLib.c | ||
164 | # End Source File | ||
165 | # Begin Source File | ||
166 | |||
167 | SOURCE=..\..\LzmaLib.h | ||
168 | # End Source File | ||
169 | # Begin Source File | ||
170 | |||
171 | SOURCE=.\resource.rc | ||
172 | # End Source File | ||
173 | # Begin Source File | ||
174 | |||
175 | SOURCE=..\..\Threads.c | ||
176 | # End Source File | ||
177 | # Begin Source File | ||
178 | |||
179 | SOURCE=..\..\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 @@ | |||
1 | Microsoft Developer Studio Workspace File, Format Version 6.00 | ||
2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! | ||
3 | |||
4 | ############################################################################### | ||
5 | |||
6 | Project: "LzmaLib"=.\LzmaLib.dsp - Package Owner=<4> | ||
7 | |||
8 | Package=<5> | ||
9 | {{{ | ||
10 | }}} | ||
11 | |||
12 | Package=<4> | ||
13 | {{{ | ||
14 | }}} | ||
15 | |||
16 | ############################################################################### | ||
17 | |||
18 | Global: | ||
19 | |||
20 | Package=<5> | ||
21 | {{{ | ||
22 | }}} | ||
23 | |||
24 | Package=<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 | ||
2 | 2015-11-08 : Igor Pavlov : Public domain */ | ||
3 | |||
4 | #include "../../Precomp.h" | ||
5 | |||
6 | #include <windows.h> | ||
7 | |||
8 | BOOL 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 @@ | |||
1 | MY_STATIC_LINK=1 | ||
2 | SLIB = sLZMA.lib | ||
3 | PROG = LZMA.dll | ||
4 | SLIBPATH = $O\$(SLIB) | ||
5 | |||
6 | DEF_FILE = LzmaLib.def | ||
7 | CFLAGS = $(CFLAGS) \ | ||
8 | |||
9 | LIB_OBJS = \ | ||
10 | $O\LzmaLibExports.obj \ | ||
11 | |||
12 | C_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 | |||
23 | OBJS = \ | ||
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 | |||
3 | MY_VERSION_INFO_DLL("LZMA library", "LZMA") | ||