@@ -34,37 +34,54 @@ To get started with Pizza Test, ensure you have the following installed:
34
34
35
35
### Adding Pizza Test Dependency
36
36
37
- #### Adding Pizza Test Dependency With Meson
37
+ #### Adding via Meson Build System
38
38
39
39
1 . ** Install Meson Build System** :
40
40
Install Meson version ` 1.3 ` or newer:
41
- ``` sh
42
- python -m pip install meson # To install Meson
43
- python -m pip install --upgrade meson # To upgrade Meson
44
- ```
41
+ ``` bash
42
+ python -m pip install meson # To install Meson
43
+ python -m pip install --upgrade meson # To upgrade Meson
44
+ ```
45
45
46
46
2 . ** Create a ` .wrap ` File** :
47
47
Add a ` fossil-test.wrap ` file in your ` subprojects ` directory with the following content:
48
48
49
- ``` ini
50
- # ======================
51
- # Git Wrap package definition
52
- # ======================
53
- [wrap-git]
54
- url = https://github.com/fossillogic/fossil-test.git
55
- revision = v1.2.7
49
+ ``` ini
50
+ # ======================
51
+ # Git Wrap package definition
52
+ # ======================
53
+ [wrap-git]
54
+ url = https://github.com/fossillogic/fossil-test.git
55
+ revision = v1.2.7
56
56
57
- [provide]
58
- fossil-test = fossil_test_dep
59
- ```
57
+ [provide]
58
+ fossil-test = fossil_test_dep
59
+ ```
60
60
61
61
3 . ** Integrate the Dependency** :
62
62
In your ` meson.build ` file, integrate Fossil Test by adding the following line:
63
- ``` meson
64
- dep = dependency('fossil-test')
65
- ```
63
+ ``` meson
64
+ dep = dependency('fossil-test')
65
+ ```
66
66
67
- ---
67
+ #### Adding via Conan GitHub repository
68
+
69
+ Conan can install packages directly from a GitHub repository if it contains a valid conanfile.py.
70
+
71
+ ``` bash
72
+ # Install from GitHub (replace branch/tag if needed)
73
+ conan install git+https://github.com/fossillogic/fossil-test.git#v1.2.7 --name pizza_test --build=missing
74
+
75
+ # Build your project
76
+ # CMake example:
77
+ cmake -S . -B build
78
+ cmake --build build
79
+
80
+ # Meson example:
81
+ meson setup builddir
82
+ meson compile -C builddir
83
+ meson test -C builddir
84
+ ```
68
85
69
86
** Note** : For the best experience, always use the latest release of Pizza Test. Visit the [ Pizza Test Releases] ( https://github.com/pizzalogic/pizza-test/releases ) page for the latest versions.
70
87
0 commit comments