Commit Graph

1249 Commits

Author SHA1 Message Date
jin-eld
14a8ee4e0d Make nTox work on MinGW/Win32 2013-08-27 14:25:09 +03: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
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
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
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
JamoBox
e44ebb184a fixed typos
fixed a couple of typos in the output messages
2013-08-24 22:59:58 +01: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
irungentoo
eb0bb66a20 Fixed some comments. 2013-08-23 11:02:01 -04:00
irungentoo
0f77a2d131 Added tox_ to 2 typedefs. 2013-08-23 10:34:10 -04:00
irungentoo
658bfab41e Forgot to commit a file in last commit. 2013-08-23 10:29:13 -04:00
irungentoo
9d3a8d94f2 New API done and tested.
Some stuff needs to be cleaned a bit though.
2013-08-23 10:26:52 -04:00
irungentoo
bcb87139a2 Merge branch 'master' into new-api 2013-08-23 06:50:42 -04:00
irungentoo
4d89d63c3f Removed useless and broken tests. 2013-08-23 06:40:30 -04:00
irungentoo
9eddeb0fd3 Merge pull request #517 from stqism/screw-nTox_win32
Removed nTox_win32
2013-08-23 03:35:06 -07:00
irungentoo
733066a57e Added TOX prefix to enum. 2013-08-23 06:31:19 -04:00
Sean Qureshi
97aef1442d Removed nTox_win32 2013-08-23 03:30:56 -07:00