Debian Codegraph @

contrib/depends/README.md

raw symbols SCIP
1 ### Usage
2
3 To build dependencies for the current arch+OS:
4
5 ```bash
6 make
7 ```
8
9 To build for another arch/OS:
10
11 ```bash
12 make HOST=host-platform-triplet
13 ```
14
15 For example:
16
17 ```bash
18 make HOST=x86_64-w64-mingw32 -j4
19 ```
20
21 A toolchain will be generated that's suitable for plugging into Monero's
22 cmake. In the above example, a dir named x86_64-w64-mingw32 will be
23 created. To use it for Monero:
24
25 ```bash
26 cmake -DCMAKE_TOOLCHAIN=`pwd`/contrib/depends/x86_64-w64-mingw32
27 ```
28
29 Common `host-platform-triplets` for cross compilation are:
30
31 - `i686-w64-mingw32` for Win32
32 - `x86_64-w64-mingw32` for Win64
33 - `x86_64-apple-darwin11` for MacOSX x86_64
34 - `arm-linux-gnueabihf` for Linux ARM 32 bit
35 - `aarch64-linux-gnu` for Linux ARM 64 bit
36 - `riscv64-linux-gnu` for Linux RISCV 64 bit
37
38 No other options are needed, the paths are automatically configured.
39
40 Dependency Options:
41 The following can be set when running make: make FOO=bar
42
43 ```
44 SOURCES_PATH: downloaded sources will be placed here
45 BASE_CACHE: built packages will be placed here
46 FALLBACK_DOWNLOAD_PATH: If a source file can't be fetched, try here before giving up
47 DEBUG: disable some optimizations and enable more runtime checking
48 HOST_ID_SALT: Optional salt to use when generating host package ids
49 BUILD_ID_SALT: Optional salt to use when generating build package ids
50 ```
51
52 Additional targets:
53
54 ```
55 download: run 'make download' to fetch all sources without building them
56 download-osx: run 'make download-osx' to fetch all sources needed for osx builds
57 download-win: run 'make download-win' to fetch all sources needed for win builds
58 download-linux: run 'make download-linux' to fetch all sources needed for linux builds
59 ```
60
61 #Mingw builds
62
63 Building for 32/64bit mingw requires switching alternatives to a posix mode
64
65 ```bash
66 update-alternatives --set x86_64-w64-mingw32-g++ x86_64-w64-mingw32-g++-posix
67 update-alternatives --set x86_64-w64-mingw32-gcc x86_64-w64-mingw32-gcc-posix
68 ```
69
70 ### Other documentation
71
72 - [description.md](description.md): General description of the depends system
73 - [packages.md](packages.md): Steps for adding packages
74