Merge lp:~ralsina/u1db/cmake into lp:u1db
| Status: | Merged |
|---|---|
| Approved by: | Roberto Alsina on 2012-06-22 |
| Approved revision: | 340 |
| Merged at revision: | 333 |
| Proposed branch: | lp:~ralsina/u1db/cmake |
| Merge into: | lp:u1db |
| Diff against target: |
216 lines (+149/-16) 6 files modified
Makefile (+6/-5) cmake/Modules/FindJSON.cmake (+32/-0) cmake/Modules/FindOAUTH.cmake (+32/-0) cmake/Modules/FindSqlite3.cmake (+31/-0) setup.py (+3/-11) src/CMakeLists.txt (+45/-0) |
| To merge this branch: | bzr merge lp:~ralsina/u1db/cmake |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| dobey (community) | 2012-06-19 | Approve on 2012-06-22 | |
| Eric Casteleijn (community) | Approve on 2012-06-19 | ||
|
Review via email:
|
|||
Commit Message
Builds a real libu1db and then links the cythn extension to use it.
Description of the Change
Builds a real libu1db and then links the cythn extension to use it.
To test, just run make
- 335. By Roberto Alsina on 2012-06-19
-
fix generated file path
- 336. By Roberto Alsina on 2012-06-19
-
make sqlite3 required
- 337. By Roberto Alsina on 2012-06-19
-
use -fPIC
- 338. By Roberto Alsina on 2012-06-19
-
use pkg-config
- 339. By Roberto Alsina on 2012-06-19
-
build static and shared libraries, add soname to shared one
| Eric Casteleijn (thisfred) wrote : | # |
Looks good to me and builds here. Would like Rodney's approval though since I am not well versed in the ways of make/cmake.
| John A Meinel (jameinel) wrote : | # |
Make sure it builds in a clean directory. It looks like you removed
building u1db_schema in the Makefile, but I dont see the step in the
CMakefiles. I could have just missed it.
John
=:->
On Jun 19, 2012 10:56 PM, "Eric Casteleijn" <email address hidden>
wrote:
> Review: Approve
>
> Looks good to me and builds here. Would like Rodney's approval though
> since I am not well versed in the ways of make/cmake.
> --
> https:/
> Your team Ubuntu One hackers is subscribed to branch lp:u1db.
>
| John A Meinel (jameinel) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 6/20/2012 9:07 AM, John A Meinel wrote:
> Make sure it builds in a clean directory. It looks like you
> removed building u1db_schema in the Makefile, but I dont see the
> step in the CMakefiles. I could have just missed it.
(I did just miss it, on second review I see it.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk/
jC0An3tpAnCpH6t
=0ycz
-----END PGP SIGNATURE-----
| dobey (dobey) wrote : | # |
I get this in a clean checkout:
gcc -pthread -fno-strict-
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-
/usr/bin/ld: cannot find -lu1db
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
make: *** [build-inplace] Error 1
This appears to be a result of having the library names be libu1db_shared.so and libu1db_static.a, because CMake is apparently unable to build both with the same lib name, in the same tree (http://
| Roberto Alsina (ralsina) wrote : | # |
Oops, my bad, didn't test on a clean checkout. It's an easy fix, will have it early tomorrow.
- 340. By Roberto Alsina on 2012-06-21
-
make shared/dynamic libraries an option
| dobey (dobey) wrote : | # |
I'm not really sure if I should vote Approve here or not. The build works and tests pass now, but there is no obvious way to get a clean tree back, and cmake doesn't seem to deal well when certain things change. There's also no way to actually install (or uninstall) the lib yet. But I don't want to hold it back either, if we're going to have to use cmake regardless.

Looks like it's not using pkg-config. Also there seems to be some case differences, using OAuth_FOO in one places and OAUTH_FOO in another.
Also, is there a reasonable way to have a versioned shared library? Like libu1db- 1.0.so. 1.0.0 on Linux, and I suppose u1db-1.0.dll on Windows?