Commit Graph

1358 Commits

Author SHA1 Message Date
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
irungentoo
9b249c5ca8 Merge pull request #534 from jin-eld/automake-compatibility
Tune automake options to avoid problems with newer versions
2013-08-26 13:40:37 -07:00
Anony Moose
fefa2bdea0 connection_id can be negative, so it shouldn't be uint32_t. 2013-08-26 20:36:32 +00:00
jin-eld
f792b1be1f Tune automake options to avoid problems with newer versions
Automake >1.14 complains if makefiles are used in subdirs but
the subdir-objects option is not set.
2013-08-26 23:29:47 +03:00
Anony Moose
79f759049b
Trying to fix memory leak. 2013-08-26 20:16:09 +00:00
irungentoo
947d62decd Merge pull request #533 from jin-eld/separate-lt-options
Move libtool options to configure script in order to allow per system settings
2013-08-26 13:00:44 -07: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
7ce599d180 Fix trailing whitespace 2013-08-26 22:08:33 +03:00
irungentoo
c30187fcf9 Merge pull request #532 from jin-eld/freebsd
Add /usr/local/* to search paths on FreeBSD
2013-08-26 06:00:53 -07:00
jin-eld
2fa0b69631 Add /usr/local/* to search paths on FreeBSD
Seems that on FreeBSD those directories are not in the default search
paths, so we'll have to add them manually.
2013-08-26 14:34:42 +03:00
irungentoo
bc734f974a Merge pull request #531 from jin-eld/dll
Also generate a .dll in MinGW builds
2013-08-25 16:28:51 -07: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
irungentoo
b4c358de29 Merge pull request #529 from Jman012/master
Fixed display issue with INSTALL.md
2013-08-25 05:33:28 -07:00
Jman012
4b6db8db7d Fixed display issue with INSTALL.md 2013-08-24 19:42:58 -07:00
irungentoo
81a47d5c0e Merge pull request #528 from vx-k/style_change
Style change
2013-08-24 18:04:07 -07:00
irungentoo
c27cf095a5 Merge pull request #527 from vx-k/master
Fixed semantics of tox_array so it will be more more memory efficient.
2013-08-24 18:00:22 -07:00
irungentoo
7a5f3ecbab Merge pull request #525 from stqism/docs
Updated INSTALL.md to list clients, improved options
2013-08-24 17:59:58 -07:00
irungentoo
05167a9294 Merge pull request #526 from JamoBox/patch-1
fixed typos
2013-08-24 15:44:03 -07:00
JamoBox
7fa17f9ab4 consistency check
fixed grammar to maintain consistency of output
2013-08-24 23:21:48 +01:00
pete
792709e4e0 Consistency check for grammar 2013-08-24 23:11:04 +01:00
JamoBox
e44ebb184a fixed typos
fixed a couple of typos in the output messages
2013-08-24 22:59:58 +01:00
Anony Moose
9a7f7b5ec4 Added array for loop. 2013-08-24 21:45:45 +00:00
Sean Qureshi
cb9a0a5ded Updated INSTALL.md to list clients, improved options 2013-08-24 14:07:03 -07:00
Anony Moose
ae3ab2efa4
Some more style changes 2013-08-24 20:54:03 +00:00
Anony Moose
39101b00a2
Fixed style in several macros. 2013-08-24 20:52:20 +00:00
Anony Moose
4326c4c8b5
Fixed semantics of tox_array (should also be more memory efficient). 2013-08-24 20:34:38 +00:00
irungentoo
e3da5d1077 Merge pull request #523 from jin-eld/fix-configure-help-typo
Fix typo in configure script help text
2013-08-24 10:11:49 -07:00
jin-eld
fe7e69ac4a Fix typo in configure script help text
It's "bootstrap", not "boostrap" :P
2013-08-24 16:50:11 +03:00
irungentoo
47476b375c Merge pull request #522 from jin-eld/fix-out-of-tree-builds
This fixes out of tree builds
2013-08-24 06:31:25 -07:00
jin-eld
9bec6f0183 This fixes out of tree builds
Should be references from top_builddir
2013-08-24 16:20:48 +03:00
irungentoo
dc0bc49960 Merge pull request #521 from stqism/docs
Updated the INSTALL.md to reflect the new build system
2013-08-24 04:56:22 -07:00
Sean Qureshi
e1259363ed Updated the INSTALL.md to reflect the new build system 2013-08-24 00:17:04 -07:00
irungentoo
f98e0f59aa Merge pull request #520 from jin-eld/tune-pkg-config
Let clients include <tox/tox.h>
2013-08-23 18:52:21 -07:00
jin-eld
af05473bd9 Let clients include <tox/tox.h>
...otherwise it's more difficult for them to find the header when
pkg-config is not available.
2013-08-24 04:41:35 +03:00
irungentoo
c2c4ad8e5b Merge pull request #484 from jin-eld/shared-lib-pr
autotools build scripts - improved PR version 2
2013-08-23 17:43:27 -07:00
jin-eld
1ec70337cf Remove cmake build system 2013-08-24 03:36:43 +03:00
jin-eld
974b8fb8bf Move travis build to autotools 2013-08-24 03:25:08 +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
irungentoo
e2aa8161ad Merge pull request #519 from manuel-arguelles/pcfile
Add pkg-config file
2013-08-23 14:28:40 -07:00
Manuel Argüelles
33ee73fffa Add pkg-config file
Generate and install a toxcore.pc file to be used with pkg-config.
2013-08-23 15:31:24 -05:00
irungentoo
f8f550e2f0 Merge branch 'new-api'
New, cleaner public API added. see: core/tox.h

This does not break anything because the old API is still there.

You are however encouraged to switch to the new API.
2013-08-23 15:45:34 -04:00
irungentoo
a71361d890 Replaced some defines with enums. 2013-08-23 15:33:38 -04:00
irungentoo
05f3ae1734 Merge pull request #518 from manuel-arguelles/make_install
Add entry to allow make install. Always build static and shared libraries
2013-08-23 12:29:30 -07:00
Manuel Argüelles
d746a01fbc Add entry to allow make install
Always compile static and shared library, SHARED_TOXCORE is
depreciated, "make install" places files on default prefix.
2013-08-23 14:10:17 -05:00