Skip to content

Commit a134e1d

Browse files
committed
add missing install steps
1 parent 0f96d5f commit a134e1d

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,31 @@ SerpApi supports Google, Google Maps, Google Shopping, Baidu, Yandex, Yahoo, eBa
1212

1313
C++ and meson are required.
1414

15-
### Meson
15+
### Installation from Release
16+
17+
Download the latest source package from the [GitHub Releases](https://github.com/serpapi/serpapi-C++/releases) page, then run:
18+
19+
```bash
20+
tar xf serpapi-0.2.0.tar.xz
21+
cd serpapi-0.2.0
22+
meson setup build
23+
meson compile -C build
24+
sudo meson install -C build
25+
```
26+
27+
### Meson Dependency
28+
29+
Add the dependency to your `meson.build`:
30+
31+
```meson
32+
serpapi_dep = dependency('serpapi')
33+
```
34+
35+
Or if you are using it as a subproject:
36+
1637
```meson
38+
serpapi_proj = subproject('serpapi')
39+
serpapi_dep = serpapi_proj.get_variable('libserpapi_dep')
1740
```
1841

1942
[C++](https://C++gems.org/gems/serpapi/)

README.md.erb

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,31 @@ SerpApi supports Google, Google Maps, Google Shopping, Baidu, Yandex, Yahoo, eBa
2727

2828
C++ and meson are required.
2929

30-
### Meson
30+
### Installation from Release
31+
32+
Download the latest source package from the [GitHub Releases](https://github.com/serpapi/serpapi-C++/releases) page, then run:
33+
34+
```bash
35+
tar xf serpapi-0.2.0.tar.xz
36+
cd serpapi-0.2.0
37+
meson setup build
38+
meson compile -C build
39+
sudo meson install -C build
40+
```
41+
42+
### Meson Dependency
43+
44+
Add the dependency to your `meson.build`:
45+
46+
```meson
47+
serpapi_dep = dependency('serpapi')
48+
```
49+
50+
Or if you are using it as a subproject:
51+
3152
```meson
53+
serpapi_proj = subproject('serpapi')
54+
serpapi_dep = serpapi_proj.get_variable('libserpapi_dep')
3255
```
3356

3457
[C++](https://C++gems.org/gems/serpapi/)

0 commit comments

Comments
 (0)