Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CMakeLists.txt « multiarc - github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e8860b739dd4f5cbe412a583a38ddac60ecb7072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198

project(multiarc)

set(SOURCES
    src/MultiArc.cpp
    src/ArcPlg.cpp
    src/arccfg.cpp
    src/arcget.cpp
    src/arcput.cpp
    src/ArcMix.cpp
    src/ArcProc.cpp
    src/global.cpp
    src/arcread.cpp
    src/arccmd.cpp
    src/formats/rar/rar.cpp
    src/formats/ha/ha.cpp
    src/formats/arj/arj.cpp
    src/formats/ace/ace.cpp
    src/formats/arc/arc.cpp
    src/formats/zip/zip.cpp
    src/formats/lzh/lzh.cpp
    src/formats/rar/unrar/scantree.cpp
    src/formats/rar/unrar/sha1.cpp
    src/formats/rar/unrar/threadpool.cpp
    src/formats/rar/unrar/crc.cpp
    src/formats/rar/unrar/hash.cpp
    src/formats/rar/unrar/strlist.cpp
    src/formats/rar/unrar/rs16.cpp
    src/formats/rar/unrar/resource.cpp
    src/formats/rar/unrar/consio.cpp
    src/formats/rar/unrar/secpassword.cpp
    src/formats/rar/unrar/qopen.cpp
    src/formats/rar/unrar/recvol.cpp
    src/formats/rar/unrar/rijndael.cpp
    src/formats/rar/unrar/timefn.cpp
    src/formats/rar/unrar/encname.cpp
    src/formats/rar/unrar/rawread.cpp
    src/formats/rar/unrar/file.cpp
    src/formats/rar/unrar/strfn.cpp
    src/formats/rar/unrar/sha256.cpp
    src/formats/rar/unrar/filefn.cpp
    src/formats/rar/unrar/filcreat.cpp
    src/formats/rar/unrar/headers.cpp
    src/formats/rar/unrar/blake2s.cpp
    src/formats/rar/unrar/options.cpp
    src/formats/rar/unrar/volume.cpp
    src/formats/rar/unrar/system.cpp
    src/formats/rar/unrar/crypt.cpp
    src/formats/rar/unrar/rar.cpp
    src/formats/rar/unrar/cmddata.cpp
    src/formats/rar/unrar/extinfo.cpp
    src/formats/rar/unrar/filestr.cpp
    src/formats/rar/unrar/ui.cpp
    src/formats/rar/unrar/list.cpp
    src/formats/rar/unrar/find.cpp
    src/formats/rar/unrar/smallfn.cpp
    src/formats/rar/unrar/unicode.cpp
    src/formats/rar/unrar/pathfn.cpp
    src/formats/rar/unrar/global.cpp
    src/formats/rar/unrar/rarvm.cpp
    src/formats/rar/unrar/getbits.cpp
    src/formats/rar/unrar/rs.cpp
    src/formats/rar/unrar/errhnd.cpp
    src/formats/rar/unrar/archive.cpp
    src/formats/rar/unrar/dll.cpp
    src/formats/rar/unrar/extract.cpp
    src/formats/rar/unrar/match.cpp
    src/formats/rar/unrar/unpack.cpp
    src/formats/rar/unrar/arcread.cpp
    src/formats/rar/unrar/rdwrfn.cpp
    src/formats/rar/unrar/rarpch.cpp



        src/formats/7z/7z.cpp
        src/formats/7z/7zMain.c
        src/formats/7z/C/Lzma86Dec.c
        src/formats/7z/C/7zDec.c
        src/formats/7z/C/Ppmd7Dec.c
        src/formats/7z/C/Sha1.c
        src/formats/7z/C/BraIA64.c
        src/formats/7z/C/Xz.c
        src/formats/7z/C/Lzma2Dec.c
        src/formats/7z/C/AesOpt.c
        src/formats/7z/C/BwtSort.c
        src/formats/7z/C/Bra86.c
        src/formats/7z/C/7zCrcOpt.c
        src/formats/7z/C/7zAlloc.c
        src/formats/7z/C/LzmaLib.c
        src/formats/7z/C/HuffEnc.c
        src/formats/7z/C/7zBuf.c
        src/formats/7z/C/XzDec.c
        src/formats/7z/C/7zBuf2.c
        src/formats/7z/C/Lzma86Enc.c
        src/formats/7z/C/Alloc.c
        src/formats/7z/C/XzCrc64.c
        src/formats/7z/C/XzEnc.c
        src/formats/7z/C/Ppmd8.c
        src/formats/7z/C/Aes.c
        src/formats/7z/C/7zCrc.c
        src/formats/7z/C/Bcj2.c
        src/formats/7z/C/Delta.c
        src/formats/7z/C/7zFile.c
        src/formats/7z/C/Bcj2Enc.c
        src/formats/7z/C/Ppmd8Enc.c
        src/formats/7z/C/LzmaEnc.c
        src/formats/7z/C/Ppmd7Enc.c
        src/formats/7z/C/7zStream.c
        src/formats/7z/C/Ppmd8Dec.c
        src/formats/7z/C/XzCrc64Opt.c
        src/formats/7z/C/LzmaDec.c
        src/formats/7z/C/XzIn.c
        src/formats/7z/C/CpuArch.c
        src/formats/7z/C/LzFind.c
        src/formats/7z/C/Ppmd7.c
        src/formats/7z/C/Lzma2Enc.c
        src/formats/7z/C/Sha256.c
        src/formats/7z/C/Sort.c
        src/formats/7z/C/7zArcIn.c
        src/formats/7z/C/Bra.c
        src/formats/7z/C/Blake2s.c
        src/formats/7z/C/LzFindOpt.c
        src/formats/7z/C/Ppmd7aDec.c
        src/formats/7z/C/Sha1Opt.c
        src/formats/7z/C/Sha256Opt.c

        src/formats/ha/ha/acoder.c
        src/formats/ha/ha/archive.c
        src/formats/ha/ha/asc.c
        src/formats/ha/ha/cpy.c
        src/formats/ha/ha/error.c
        src/formats/ha/ha/ha.c
        src/formats/ha/ha/haio.c
        src/formats/ha/ha/hsc.c
        src/formats/ha/ha/info.c
        src/formats/ha/ha/machine.c
        src/formats/ha/ha/misc.c
        src/formats/ha/ha/swdict.c
)

if(PCRE_FOUND)
    set(SOURCES
        ${SOURCES}
        src/formats/custom/custom.cpp
    )
endif()

if(LibArchive_FOUND)
    set(SOURCES
        ${SOURCES}
        src/formats/libarch/libarch_utils.cpp
        src/formats/libarch/libarch_crutches.cpp
        src/formats/libarch/libarch_cmd_read.cpp
        src/formats/libarch/libarch_cmd_write.cpp
        src/formats/libarch/libarch.cpp
    )
else()
    set(SOURCES
        ${SOURCES}
        src/formats/targz/targz.cpp
        src/formats/cab/cab.cpp

    )
endif()

add_library (multiarc MODULE ${SOURCES})

target_compile_definitions(multiarc PRIVATE -DRARDLL -D_7ZIP_ST -D_7ZIP_PPMD_SUPPPORT)

target_link_libraries(multiarc utils far2l)

target_include_directories(multiarc PRIVATE src/formats/rar/unrar)
target_include_directories(multiarc PRIVATE src)
target_include_directories(multiarc PRIVATE src/libpcre)
target_include_directories(multiarc PRIVATE ../WinPort)
target_include_directories(multiarc PRIVATE ../far2l/far2sdk)

if(PCRE_FOUND)
    target_compile_definitions(multiarc PRIVATE -DHAVE_PCRE)
    target_link_libraries(multiarc ${PCRE_LIBRARIES})
    target_include_directories(multiarc PRIVATE ${PCRE_INCLUDE_DIRS})
endif()

if(LibArchive_FOUND)
    target_compile_definitions(multiarc PRIVATE -DHAVE_LIBARCHIVE)
    target_link_libraries(multiarc ${LibArchive_LIBRARIES})
    target_include_directories(multiarc PRIVATE ${LibArchive_INCLUDE_DIRS})
endif()

set_target_properties(multiarc
  PROPERTIES
    LIBRARY_OUTPUT_DIRECTORY "${INSTALL_DIR}/Plugins/multiarc/plug"
    PREFIX ""
    SUFFIX ".far-plug-mb")

add_custom_command(TARGET multiarc POST_BUILD
   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/configs
   COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/configs "${INSTALL_DIR}/Plugins/multiarc")