summaryrefslogtreecommitdiff
path: root/wscript
Commit message (Collapse)AuthorAgeFilesLines
* Move the external includes folder from `src` to `include`Vicent Marti2011-03-031-5/+5
| | | | Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Fix check for bad --sha1 option argumentantong2011-03-021-1/+1
|
* Add --without-sqlite option to waf configureOlivier Ramonat2011-02-211-1/+4
| | | | Disable sqlite support when ./waf configure is run with --without-sqlite
* Add proper version managementv0.3.0Vicent Marti2011-02-071-2/+19
| | | | | | | | | | We now have proper sonames in Mac OS X and Linux, proper versioning on the pkg-config file and proper DLL naming in Windows. The version of the library is defined exclusively in 'src/git2.h'; the build scripts read it from there automatically. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Add support for SQLite backendsVicent Marti2011-02-051-3/+8
| | | | | | | | | | | | Configure again the build system to look for SQLite3. If the library is found, the SQLite backend will be automatically compiled. Enjoy *very* fast reads and writes. MASTER PROTIP: Initialize the backend with ":memory" as the path to the SQLite database for fully-hosted in-memory repositories. Rejoice. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Rewrite the unit testing suiteVicent Marti2011-02-021-49/+26
| | | | | | | | | | | NIH Enterprises presents: a new testing system based on CuTesT, which is faster than our previous one and fortunately uses no preprocessing on the source files, which means we can run that from CMake. The test suites have been gathered together into bigger files (one file per suite, testing each of the different submodules of the library). Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Revised build configuration for MSVC.Alex Budovski2011-01-081-5/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Major changes and rationale: - /WX: absolutely vital when compiling in C-mode as the compiler is incredibly lenient on what is allowed to compile. It allows functions to be called without prototypes declared, treating them as functions returning int taking an unspecified (read: unrestricted) list of arguments, without any type checking! It will simply issue a warning, which is easily overlooked. A real example: it will allow you to call ceil(1.75) without first including <math.h> causing UB, returning bogus results like 1023 on the machine I tested on. - Release build separate from debug. Presently release builds don't exist. Consequently they are completely untested. Many bugs may only manifest themselves in release mode. The current configuration sets debug-only flags like /RTC1 which are incompatible with optimization (/O2). In addition, the Windows build of libgit2 has no optimized version. This change resolves this. - Added checksum generation in image headers. This is so debuggers don't complain about checksum mismatches and provides a small amount of consistency to binaries.
* Find proper path to 'ldconfig' on wscriptVicent Marti2011-01-041-2/+5
| | | | | | | Don't hardcode the '/sbin/ldconfig' path; also, don't run anything if ldconfig cannot be found (Mac OS X, for instance). Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Prevent test manifests from being runVicent Marti2010-12-231-1/+4
| | | | | | | The test runner was running the manifest and other crap files. Now it filters out to just the executables. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Merge branch 'call-ldconfig-on-unix' of https://github.com/marvil07/libgit2Vicent Marti2010-12-231-0/+7
|\
| * Run ldconfig on install at unix platforms.Marco Villegas2010-12-221-0/+7
| |
* | Merge branch 'waf-pkgconfig-typo' of https://github.com/marvil07/libgit2Vicent Marti2010-12-231-1/+1
|\ \
| * | minor: Let waf write the right values for prefix and libdir at pkg-config file.Marco Villegas2010-12-221-1/+1
| |/
* | Link tests with the raw objectsVicent Marti2010-12-231-27/+15
| | | | | | | | | | | | | | | | | | Fix the test building issues once for all; each test is linked with the raw objects of the library, not with any compiled version. That way we make sure the tests always run, and are always linked with the latest and most up-to-date version of the code. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* | Fix test builds in Win32Vicent Marti2010-12-221-1/+1
|/ | | | | | | Use forward slashes for the TEST_RESOURCES definition. libgit2 uses only forward slashes. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Link tests with shared library, not staticVicent Marti2010-12-181-5/+15
| | | | Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Tests now run with the resources folder as a hardcoded pathVicent Marti2010-12-101-158/+158
| | | | | | | Each tests expects a "TEST_RESOURCES" define with the full path to the resources folder. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Move documentation generation to the Waf systemVicent Marti2010-12-101-0/+13
| | | | | | The new command is './waf doxygen' Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Change the library include fileVicent Marti2010-12-061-2/+2
| | | | | | | | | | | | Libgit2 is now officially include as #include "<git2.h>" or indidividual files may be included as #include <git2/index.h> Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Change include structure for the projectVicent Marti2010-12-061-0/+1
| | | | | | | | | | | The maze with include dependencies has been fixed. There is now a global include: #include <git.h> The git_odb_backend API has been exposed. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Improve build system for MSVCVicent Marti2010-11-241-5/+19
| | | | | | | | Add options to select architecture and compiler version. Removed dependency on 'grep'. Fix debug mode flags being always empty. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Make the test suite depend on the static libraryVicent Marti2010-11-241-6/+10
| | | | Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Add --debug flag to toggle debuggingVicent Marti2010-11-241-5/+14
| | | | Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Use the proper Zlib version with MSVCVicent Marti2010-11-241-2/+2
| | | | Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Fix compilation in Win32Vicent Marti2010-11-241-68/+44
| | | | | | | Currently, libgit2 compiles and passes all tests under MinGW, and compiles but fails the test suite on MSVC 2010. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Add library dependencies to the buildVicent Marti2010-11-241-12/+69
| | | | | | | | | | | | | | The libgit2 shared library must be linked with all the dynamic libraries it depends (z, openssl). These libraries are now automatically detected during the configuration phase. Also, removed the linking dependency on libgit2 which Scott added: if you link libgit2 with itself, the universe could implode, and we don't want that to happen. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* add library includes, remove Makefile and readme update for wafScott Chacon2010-11-241-0/+1
|
* Add separate commands for all possible actionsVicent Marti2010-11-241-33/+66
| | | | | | The build script now supports all the required features Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Add more features to the build systemVicent Marti2010-11-241-15/+87
| | | | | | | | - Windows 32 compilation - Test system - Shared and static libraries Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Change to waf as the buildsystemVicent Marti2010-11-241-0/+70
Signed-off-by: Vicent Marti <tanoku@gmail.com>