Commit 09018b8
authored
[CDRIVER-5961] Renaming of binaries, packages, and install paths (#1965)
Resolves CDRIVER-5961 and CDRIVER-2086
* Add CTest cases to test pkg-config importing
These use the TestProject module to define test
cases that run a CMake build, but that CMake project
uses `pkg-config` to import the libraries rather than `find_package`.
This allows us to test `pkg-config` while relying on CMake to do the
heavy lifting around compiler detection and search path handling.
* Set CMAKE_PREFIX_PATH in TestProject
When building a TestProject, we want to set CMAKE_PREFIX_PATH to point
to the directory that received the parent project installation.
* Change the link line for pkg-config static libs
Previously, pkg-config generated a `-l` with a library stem, and it
would only coincidentally name a static library with a `.a` suffix.
Instead, for static libraries, specify the path to the actual static
library archive file. Only rely on `-l` searching for shared libraries.
* Rename pkg-config files
* Update file names and install paths
This change is BREAKING and changes the names of generated files for
libbson and libmongoc.
* Headers are installed in a directory qualified by the project version.
* The generated dynamic library has a property version suffix now (instead of 0.0.0).
* We set the SOVERSION property to generate a new SONAME for the emitted bson library.
* The bson-1.0 and mongoc-1.0 CMake packages are removed.
* The pkg-config files are now named `bson1` / `bson1-static` and `mongoc1` / `mongoc1-static`.
* Both the static and dynamic library file stems are now `libbson1` / `libmongoc1` (no
`-static` suffix).
* The project now imports the system libbson using the name "bson" instead
of `bson-1.0`
* Remove fragile installed-files tests, revise some for new filenames
* Give DLL implibs a different file extension on Windows
* Remove install code for Apple frameworks and modulemaps
* Remove libmongoc-ssl .pc files
* Add NEWS entries regarding package renames
* Qualify installation of docs and licenses
* Major-version qualify the `mongoc-stat` tool1 parent d33d253 commit 09018b8
File tree
39 files changed
+526
-903
lines changed- .evergreen/scripts
- build/cmake
- src
- libbson
- etc
- examples
- src
- bson/modules
- libmongoc
- etc
- examples
- src
- mongoc/modules
- tests
- pkg-config-import
39 files changed
+526
-903
lines changedThis file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 126 | + | |
| 127 | + | |
137 | 128 | | |
138 | 129 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 130 | + | |
146 | 131 | | |
147 | 132 | | |
148 | 133 | | |
| |||
157 | 142 | | |
158 | 143 | | |
159 | 144 | | |
160 | | - | |
161 | | - | |
| 145 | + | |
| 146 | + | |
162 | 147 | | |
163 | 148 | | |
164 | | - | |
| 149 | + | |
165 | 150 | | |
166 | 151 | | |
167 | 152 | | |
| |||
182 | 167 | | |
183 | 168 | | |
184 | 169 | | |
185 | | - | |
| 170 | + | |
186 | 171 | | |
187 | 172 | | |
188 | 173 | | |
189 | 174 | | |
190 | 175 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 176 | + | |
| 177 | + | |
199 | 178 | | |
200 | 179 | | |
201 | | - | |
| 180 | + | |
202 | 181 | | |
203 | 182 | | |
204 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | | - | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
61 | | - | |
62 | | - | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
| 107 | + | |
107 | 108 | | |
108 | | - | |
109 | | - | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | | - | |
115 | | - | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
133 | | - | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
158 | | - | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
165 | | - | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | | - | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments