summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/README.md
blob: 26baa958370e308351f8840c4d5f52b233a410a1 (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
## How to recreate the qmake base buildsystem for the 3rd-party stuff

## openssl

### Linux

* `./config no-asm no-idea`
* `make`
* `cp crypto/buildinf.h libcrypto-include-unix`
* `cp include/openssl/opensslconf.h libcrypto-include-unix/openssl`

### Mac OS X

* `./Configure darwin64-x86_64-cc no-asm no-idea`
* `make depend`
* `make`
* `cp crypto/buildinf.h libcrypto-include-osx`
* `cp include/openssl/opensslconf.h libcrypto-include-osx/openssl`

### Windows
* `perl Configure VC-WIN32 no-asm no-idea`
* `ms\do_ms.bat`
* `nmake -f ms\nt.mak`
* `copy /Y crypto\buildinf.h libarchive-include-win32`
* `copy /Y inc32\openssl\*.h libarchive-include-win32\openssl`


## xz

### Linux
* ` ./configure --disable-shared --enable-threads=no --disable-assembler --disable-xz --disable-xzdec
                --disable-lzmadec --disable-lzmainfo --disable-lzma-links --disable-scripts --disable-doc`
* `cp config.h config-unix.h`
* `echo "#include PLATFORM_CONFIG_H" >config.h`

### Mac OS X
* ` ./configure --disable-shared --enable-threads=no --disable-assembler --disable-xz --disable-xzdec
                --disable-lzmadec --disable-lzmainfo --disable-lzma-links --disable-scripts --disable-doc`
* `cp config.h config-osx.h`
* `echo "#include PLATFORM_CONFIG_H" >config.h`

### Windows
* `copy /Y windows\config.h config-windows.h`
* `echo #include PLATFORM_CONFIG_H >config.h`


## libarchive

### Linux
* `./configure --disable-shared --disable-bsdtar --disable-bsdcpio --disable-xattr --disable-acl
               --without-bz2lib --without-lzmadec --without-lzo2 --without-nettle --without-openssl
               --without-xml2 --without-expat`
* `cp config.h config-unix.h`
* `rm -rf CMakeLists.txt Makefile.* aclocal.m4 config.h.in configure* build/ contrib doc examples cpio libarchive_fe/ tar test_utils libarchive/CMakeLists.txt libarchive/test libarchive/*.5 libarchive/*.3`

### Mac OS X
* `./configure --disable-shared --disable-bsdtar --disable-bsdcpio --disable-xattr --disable-acl
               --without-bz2lib --without-lzmadec --without-lzo2 --without-nettle --without-openssl
               --without-xml2 --without-expat`
* `cp config.h config-osx.h`

### Windows
Prerequisite: build zlib 1.2.8

* `mkdir cbuild`
* `cd cbuild`
* `cmake -DENABLE_TAR=OFF -DENABLE_CPIO=OFF -DENABLE_XATTR=OFF -DENABLE_ACL=OFF -DENABLE_TEST=OFF
         -DENABLE_OPENSSL=OFF -DZLIB_LIBRARY=..\..\zlib-1.2.8\release\z.lib -DZLIB_INCLUDE_DIR=..\..\zlib-1.2.8`
* `copy /Y config.h config-windows.h`

## libyaml

* `rm -rf CMakeLists.txt Makefile.* aclocal.m4 config* doc tests win32 yaml-0.1.pc.in include/Makefile.* src/Makefile.*`