Philip Kelley
19be3f9e65
Improve MSVC compiler, linker flags
2013-02-13 16:01:14 -05:00
Vicent Martí
fb60d268df
Merge pull request #1315 from nulltoken/development
...
cMakeList: Prevent MSVCR1x0.dll dependency
2013-02-05 06:18:23 -08:00
nulltoken
e8670d01e0
cMakeList: Prevent MSVCR1x0.dll dependency
...
Deploys the libgit2/libgit2@9041250 fix to RELWITHDEBINFO
and MINSIZEREL build flavors
Fix #255
2013-02-05 14:32:09 +01:00
Edward Thomson
c27e211219
update examples to work on windows
2013-01-23 17:38:00 -06:00
Sebastian Bauer
b41e24a65c
Add -fPIC only if BUILD_SHARED_LIBS is ON
2013-01-10 09:20:43 +01:00
Sebastian Bauer
707ede8633
Compile regexp dependency when AMIGA is defined.
...
Before it was compiled when CMake was actually run on AmigaOS.
2013-01-10 09:19:11 +01:00
Sebastian Bauer
c57c4af327
Disable SSL when compiling for AmigaOS for now.
2013-01-10 09:16:39 +01:00
Edward Thomson
8f09f46498
remove ppc sha1 asm
2013-01-08 16:55:16 -06:00
Edward Thomson
d335e73a6a
keep comments at < 80 chars
2013-01-08 16:37:19 -06:00
nulltoken
09556895b7
travis: Include the online suite when running against Travis
2013-01-06 14:40:32 +01:00
Vicent Marti
4236164a77
Prototypes warning goes away
2013-01-03 02:37:28 +01:00
Vicent Marti
2e6f06a8d4
...and add Clar raw
2013-01-03 02:34:45 +01:00
Vicent Marti
afb181167e
/deal with it
2013-01-03 01:04:18 +01:00
Vicent Marti
39444bea0a
...fine
2013-01-03 01:01:03 +01:00
Vicent Marti
ad27838bdc
Proper submodule dependency
2013-01-03 00:58:46 +01:00
Vicent Marti
6443eaf22f
Disable Network suite by default
2013-01-03 00:50:29 +01:00
Vicent Marti
39cd01779c
This is a better name
2013-01-02 22:38:10 +01:00
Vicent Marti
a44f2e9e7b
Try it like this...
2013-01-02 22:26:34 +01:00
Vicent Marti
e229c04825
Fuck you CMake
2013-01-02 21:27:00 +01:00
Vicent Marti
0df4167577
Submodule checkout
2013-01-02 21:22:19 +01:00
Vicent Marti
a368fd0f79
Checkout test
2013-01-02 20:08:49 +01:00
Vicent Marti
5c2d3f6d5d
Add build dependency for clar. Also, fuck you CMake. Fuck you.
2013-01-02 04:19:13 +01:00
Vicent Marti
b0a4582975
Bump the Clar submodule
2013-01-02 02:05:11 +01:00
Vicent Marti
156cfec096
Cleanup Clar to make it SIMPLER
2013-01-02 02:05:11 +01:00
Sascha Cunz
523a3ae5a3
MSVC: Don't list all source files in an endless list
...
Instead tell MSVC to group the source files by directory.
2012-12-19 04:57:15 +01:00
Sascha Cunz
94243295b2
DRY: Add function that adds os-specific libraries to our targets
2012-12-19 04:57:14 +01:00
Sascha Cunz
19a766a201
Collect configuration options at the top of the file
...
- Also document the -DSTDCALL even better.
2012-12-19 04:57:13 +01:00
Sascha Cunz
521479b170
DRY: Don't repeat globs for libgit2's own source files
2012-12-19 04:57:12 +01:00
Sascha Cunz
c5309eb2da
Remove special case source globs for Solaris
...
With the src/compat/*.c glob removed, there is no longer a difference to
the default globs we use for the IF( UNIX ) case.
2012-12-19 04:57:12 +01:00
Sascha Cunz
49b630086e
Remove src/compat/*.c from source globs
...
This directory doesn't exist.
2012-12-19 04:57:11 +01:00
Sascha Cunz
b53671ae85
Search for zlib unconditional
...
Up to now, on windows we don't even bother to look if the user has a zlib
available somwhere.
In almost all larger commercial projects i've participated in, it was not
at all uncommon to have such a dependency somewhere in the source tree and
use it whereever required.
Searching for it, even if it's unlikely to be present, allows for such a
scenario (i.e. by prefilling the CMake-Cache).
2012-12-19 04:57:11 +01:00
Sascha Cunz
3d007f4f9c
DRY: Scan for regex.c only in one place
2012-12-19 04:57:10 +01:00
Sascha Cunz
8d45789167
Only add deps/http-parser to include-dirs if required
2012-12-19 04:57:09 +01:00
Vicent Marti
cfbe4be3fb
More external API cleanup
...
Conflicts:
src/branch.c
tests-clar/refs/branches/create.c
2012-11-27 13:18:27 -08:00
Russell Belfer
a9069f6154
Merge pull request #1086 from scunz/vs_warning_level
...
VS-Build: Append C_FLAGS to the end of the already given ones.
2012-11-19 12:11:01 -08:00
Sascha Cunz
4a03913cfb
VS-Build: Disable /W4 parameter, as it is not picked up anyway
...
My other PR revealed, that the /W4 parameter, we give to MSVC is ignored
because cmake set CMAKE_C_FLAGS already to /W3 and we overwrite it.
The command line tools gave me a D9025 warning for this on every file and
looking into the project properties page on MSVC 2008 tells, that it has
the warning level set to /W3.
However, the warnings introduced by /W4 are far to useless for having
them enabled. So just disable them.
2012-11-19 21:07:13 +01:00
Sascha Cunz
26d9e317db
Don't use precompiled headers for command-line based VC builds.
...
The reason, why libgit2 currently cannot support compiling via the command-line
tools cl/nmake from WinSDK and/or Microsoft Visual Studio, seems to be a
missing dependency on the generated precompiled header file.
The Visual Studio IDE automatically inserts this dependency when it sees the
right combination of "/Y" parameters.
This patch allows to compile using command line tools by disabling precompiled
headers for NON-IDE builds.
2012-11-19 05:00:02 +01:00
Edward Thomson
d6fb092409
Win32 CryptoAPI and CNG support for SHA1
2012-11-13 10:23:05 -06:00
Russell Belfer
dbd6850d06
Hide deprecations on MacOS
...
Why Apple, why?
2012-11-01 10:57:14 -07:00
Paul Thompson
88149fae9f
Leave CMAKE_BUILD_TYPE absent on those generators which don't use it.
2012-10-28 10:21:28 +11:00
Paul Thompson
4a3be934de
Removed overwrite of CMAKE_C_FLAGS_DEBUG.
...
- No overwriting allows control from cmake cache or cmdline
- -g is already the CMake default
- -O0 is already gcc's default
2012-10-28 09:56:18 +11:00
Paul Thompson
54c56d3efd
Remove "-O2 -g" from default CMAKE_C_FLAGS.
...
- Those are the RelWithDebInfo flags.
- They should be controlled from CMAKE_BUILD_TYPE
2012-10-28 09:42:54 +11:00
Paul Thompson
2df7c94490
Remove duplicate CMAKE_C_FLAGS inside CMAKE_C_FLAGS_DEBUG.
...
- For Debug builds, CMake uses concatenated
CMAKE_C_FLAGS and CMAKE_C_FLAGS_DEBUG
- This reverts commit 291f712292
.
2012-10-28 09:30:08 +11:00
Edward Thomson
94155e2fa2
remove /ZM1000 from msvc builds
2012-10-25 14:51:08 -05:00
Vicent Martí
81e7b10a15
Merge pull request #1012 from carlosmn/libcrypto-sha
...
Use libcrypto's SHA-1 implementation when linking to it
2012-10-23 13:43:28 -07:00
Carlos Martín Nieto
7205a4d94c
Use libcrypto's SHA-1 implementation when linking to it
...
libcryto's SHA-1 implementation is measurably better than the one that
ships with the library. If we link to it for HTTPS support already,
use that implementation instead.
Testing on a ~600MB of the linux repository, this reduces indexing
time by 40% and removes the hashing from the top spot in the perf
output.
2012-10-23 20:30:16 +02:00
Veeti Paananen
88e0fc05d6
Remove backwards compatibility for INSTALL_LIB
2012-10-20 02:59:40 +03:00
Veeti Paananen
291f712292
Let environment CFLAGS override the debug flags
2012-10-20 02:57:02 +03:00
Veeti Paananen
9795a40f88
Use standard CMake variable names for installation paths
...
Rename INSTALL_INC and INSTALL_BIN to INCLUDE_INSTALL_DIR and
BIN_INSTALL_DIR, which are more commonly used. This is also
consistent with the variable for the library path which is
already LIB_INSTALL_DIR.
2012-10-20 02:56:35 +03:00
Carlos Martín Nieto
a75770febc
tests: add a test for tag autofollow behaviour
...
Also tell ctest and valgrind to run libgit2_clar with '-iall' so we
run the network tests in travis.
2012-10-11 00:19:54 +02:00