@@ -27,7 +27,7 @@ the Mac App Store.
27
27
You can get other development tools via [ homebrew] ( https://brew.sh ) . Adjust as
28
28
needed for other package managers.
29
29
30
- ```
30
+ ``` bash
31
31
brew install cmake
32
32
brew install golang
33
33
brew install ccache # optional
@@ -44,7 +44,7 @@ need to be set up and no `pod install` is required for the CMake build.
44
44
If you're on a relatively recent Linux, the system-provided CMake may be
45
45
sufficient.
46
46
47
- ```
47
+ ``` bash
48
48
sudo apt-get install build-essential
49
49
sudo apt-get install cmake
50
50
sudo apt-get install ccache # optional
@@ -61,16 +61,21 @@ support for Visual Studio 2015.
61
61
62
62
An easy way to get development tools is via [ Chocolatey] ( https://chocolatey.org/ ) .
63
63
64
- Unfortunately, the ` cmake.install ` package is semi-broken, so use the portable
65
- version.
64
+ ``` cmd
65
+ choco install git
66
+ choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
67
+ choco install ninja
66
68
67
- ```
68
- choco install cmake.portable
69
- choco install ninja # optional
69
+ # Build scripts use bash and python
70
+ choco install msys2
70
71
72
+ # Required for building gRPC and its dependencies
71
73
choco install activeperl
72
74
choco install golang
73
75
choco install nasm
76
+
77
+ # Optional: can speed up builds
78
+ choco install openssl
74
79
```
75
80
76
81
## Building
@@ -92,7 +97,7 @@ The basic shape of the build is to:
92
97
93
98
On most systems that looks like this:
94
99
95
- ```
100
+ ``` bash
96
101
mkdir build
97
102
cd build
98
103
cmake ..
@@ -125,9 +130,17 @@ Firebase-specific goodies:
125
130
126
131
For example:
127
132
128
- ```
129
- mkdir build
133
+ On Mac or Linux:
134
+ ``` bash
135
+ cmake -H. -Bbuild -G Ninja -DFIREBASE_DOWNLOAD_DIR:PATH=$HOME /.downloads
130
136
cd build
131
- cmake -G Ninja -DFIREBASE_DOWNLOAD_DIR:PATH=.downloads ..
132
137
ninja && ninja test
133
138
```
139
+
140
+ On Windows:
141
+ ``` cmd
142
+ mkdir %USERPROFILE%\AppData\LocalLow\CMake
143
+ cmake -H. -Bbuild -G Ninja ^
144
+ -DFIREBASE_DOWNLOAD_DIR:PATH=%USERPROFILE%\AppData\LocalLow\CMake ^
145
+ -DOPENSSL_ROOT_DIR:Path="c:\Program Files\OpenSSL-Win64"
146
+ ```
0 commit comments