Commit Graph

443 Commits

Author SHA1 Message Date
irungentoo
a1099d7f95 Fixed possible bug. 2013-09-01 22:29:51 -04:00
jin-eld
7d29bd23b9 Forward compatibility with automake 1.14
This update makes sure that the build still works with automake prior to
1.12 and at the same time does not give any warnings or errors with
automake 1.14
2013-09-01 20:39:02 +03:00
irungentoo
9ef4bab51d Fixed bug. 2013-08-31 12:23:20 -04:00
irungentoo
a93980e144 Cleaned up pull request. 2013-08-30 21:13:40 -04:00
redwire
ecddafd383 Made clang happy by taking definitions for the macro out of functions and adding declarations 2013-08-30 22:08:15 -02:30
redwire
4247eec969 Wrote a quicksort macro and modified sort_list to use it 2013-08-30 18:10:00 -02:30
irungentoo
dcabd6421c Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core 2013-08-30 14:22:12 -04:00
irungentoo
52c47a0820 Fixed possible crash. 2013-08-30 14:11:12 -04:00
irungentoo
0bd4edc0db Compiler fix. 2013-08-30 12:59:17 -04:00
irungentoo
bbc6b09579 put free_connections() back 2013-08-30 12:54:35 -04:00
irungentoo
41d4e02ca4 Fixed possible compiling problems on some compilers. 2013-08-30 12:34:57 -04:00
stal
0834e4ba31 Fix build error on non-linux machines. 2013-08-30 09:25:22 -07:00
irungentoo
f124cfaf46 Return values checking for tox_array_push_ptr in Lossless UDP. 2013-08-30 09:12:22 -04:00
irungentoo
ba5bd35a12 Fixed possible bugs in tox_array. 2013-08-30 08:52:53 -04:00
irungentoo
8f0bef5f20 Fixed warnings and moved hex_string_to_bin to testing/ 2013-08-30 08:16:34 -04:00
irungentoo
7441a234b7 Merge branch 'udp_connections' of https://github.com/vx-k/ProjectTox-Core into vx-k-udp_connections 2013-08-30 07:53:51 -04:00
Kostya
25563ac070 Fixed build errors. 2013-08-30 03:28:50 -04:00
Kostya
790867d984 Changed naming for IP union. 2013-08-30 03:02:11 -04:00
Kostya
8d71f67a72 Changed handshake code to use union IP_Port. 2013-08-30 02:58:30 -04:00
Kostya
d2d1af2ce9 Made IP_Port a union. 2013-08-30 02:51:15 -04:00
jin-eld
93e2e1eaa0 Sync makefile with source list
packets.h is now gone
2013-08-30 02:19:00 +03:00
irungentoo
0ed6ce80a0 Removed now useless file. 2013-08-29 19:09:30 -04:00
irungentoo
df4b1c6ee5 Removed packet structs.
They were causing problems on certain compiler configurations.
2013-08-29 19:06:09 -04:00
Anony Moose
eb33796e58 Moved misc_tools from testing to toxcore. 2013-08-29 22:54:54 +00:00
irungentoo
ea994606fe Merge branch 'master' of https://github.com/JamoBox/ProjectTox-Core into JamoBox-master
Conflicts:
	toxcore/LAN_discovery.h
2013-08-29 17:55:58 -04:00
pete
82b8927af7 Correct a lot of the grammar and spelling. Also spent a few hours fixing the comments so they follow a standard. 2013-08-29 22:17:51 +01:00
irungentoo
85940f94b2 Fixed bug. 2013-08-29 08:03:03 -04:00
irungentoo
1033c2d80e Fixed possible bug. 2013-08-28 20:51:01 -04:00
irungentoo
00507fadfd Removed some no longer needed ifdefs. 2013-08-28 18:23:37 -04:00
Anony Moose
31354d80d4 Fixed another thing in loop; added initialization for tox_array in lossless UDP. 2013-08-28 22:04:34 +00:00
Anony Moose
82a3eb9763
Fixed for loop counter errors. 2013-08-26 22:27:48 +00:00
Anony Moose
abaaef051c
Fixed several embarrassing errors and potential problems in tox_array. 2013-08-26 22:04:41 +00:00
Anony Moose
4e9d09f217 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core into udp_connections 2013-08-26 21:02:34 +00:00
Anony Moose
fefa2bdea0 connection_id can be negative, so it shouldn't be uint32_t. 2013-08-26 20:36:32 +00:00
Anony Moose
79f759049b
Trying to fix memory leak. 2013-08-26 20:16:09 +00:00
jin-eld
ed1c130ebc Move extra libtool options into configure
This should allow to keep the libtool options all in one place and at
the same time define different options depending on the host.

Made sure that -no-undefined is set only on Win32. Although no side
effects on Linux and OSX have been observed so far, it's probably better
to play it safe; it does not seem to be needed/does not seem to matter on *nix,
only required for Win32.
2013-08-26 22:08:43 +03:00
jin-eld
634a67f627 Also generate a .dll in MinGW builds
Previously only static a static library was produced on MinGW builds,
this PR makes sure that we also build a proper .dll
2013-08-26 02:18:09 +03:00
Anony Moose
60bf9991b4 Made array stuff more readable. 2013-08-25 22:43:30 +00:00
Anony Moose
c23fbfa9f8
Removed commented code and fixed broken functions for Lossless_UDP tox_array. 2013-08-25 22:06:54 +00:00
Anony Moose
76761a605b Modified Lossless_UDP connections to work with tox_array. 2013-08-25 17:55:54 +00:00
jin-eld
1ec70337cf Remove cmake build system 2013-08-24 03:36:43 +03:00
jin-eld
50c8a820e5 Implemented autotools based build scripts
supported options:

--with-dependency-search=DIR    will tell configure to look for various
dependencies in DIR/include and DIR/lib

Alternatively you can also specify libsodium header and libs location
with --with-libsodium-headers and --with-libsodium-libs if it is
installed elsewhere.

Ncurses and libconfig are handled via the default pkg-config way, see
./configure --help=short for detailed information.

The tox library is compiled as libtoxcore in shared and static variants,
public headers are installed to ${prefix}/include/tox

A pkg-config libtoxcore.pc configuration file is provided.

Use ./configure --help for a full list of configure options or
./configure --help=short for the options that I added.

To generate the configure script after pulling from git use:
autoreconf -i

To generate a release tarball use:
make dist

Unit tests are handled by the libcheck library integration that is provided
by autotools, use:
make check

to compile and run the tests.

Unit tests are currently optional, i.e. - if the check library is not
found on the system, then tests will be disabled. Same goes for nTox and
DHT bootstrap daemon - they will be enabled or disabled depending on the
availability of ncurses (for nTox) or libconfig (for DHT bootstrap
daemon).

The above can be also tuned by:
--enable-tests / --disable-tests
--enable-ntox / --disable-ntox
--enable-dht-bootstrap-daemon / --disable-dht-bootstrap-daemon
2013-08-24 03:25:07 +03:00
jin-eld
e658892793 Rename core directory because of autoconf name clash
While doing the checks configure might generate "core" files and will
then try to remove them. Having a "core" directory generates an error
while runing the configure script.

There's no workaround but to rename the core directory.
2013-08-24 03:25:07 +03:00