Commit Graph

1378 Commits

Author SHA1 Message Date
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
irungentoo
c1888fb30b Merge pull request #516 from jin-eld/remove-toxic
Remove toxic from core repository (moved to https://github.com/Tox/toxic)
2013-08-23 03:28:22 -07:00
jin-eld
c759967ad4 Remove toxic from core repository
New location is:
https://github.com/Tox/toxic
2013-08-23 11:31:38 +03:00
irungentoo
cabc5add79 New api proposal. 2013-08-22 18:40:29 -04:00
irungentoo
4711cdb6c4 Merge pull request #515 from manuel-arguelles/unicode_optional
Make wide character support optional
2013-08-22 14:10:09 -07:00
Manuel Argüelles
7ffa4017aa Make wide character support optional
Issue #514. FindCursesw modified to make it simpler. Wide character
can be disable by passing NO_WIDECHAR=ON.
2013-08-22 15:57:34 -05:00
irungentoo
7719a9ed58 init_cryptopacket is now called by new_DHT. 2013-08-22 13:19:38 -04:00
irungentoo
f249084772 Merge pull request #512 from manuel-arguelles/toxic_unicode
Add wide char support in toxic (issue #440)
2013-08-21 16:08:10 -07:00
irungentoo
eec11fcc58 Merge pull request #511 from sanketsparmar/fixed_quotes
Fixed segfault and added support for single quotes in toxic
2013-08-21 15:54:56 -07:00
Manuel Argüelles
d5e96fe670 Remove fix_name() function
With unicode support this function is not longer valid.
2013-08-21 16:24:33 -05:00
Manuel Argüelles
93789396b1 Add wide char support in toxic (issue #440)
Set current locale, use of get_wch instead of getch for reading, use
wctomb and friends to convert back from wchar_t, link with
cursesw. Unicode support is only added to chat windows.
2013-08-21 16:19:35 -05:00
Manuel Argüelles
d840e8a743 Add cmake module for ncursesw
Default Curses module fails to detect the wide char version of curses
when both are installed. Current module should do better.
2013-08-21 16:11:07 -05:00
Sanket Parmar
155823e7ce Fixed segfault and added support for single quotes in toxic 2013-08-21 23:27:34 +05:30
irungentoo
c9a88607c2 Merge branch 'master' of https://github.com/irungentoo/ProjectTox-Core 2013-08-21 09:03:44 -04:00
irungentoo
da6416a584 Added signer/checker using ed25519 and libsodium I wrote for fun. 2013-08-21 09:02:49 -04:00
irungentoo
6ffbfe7d17 Merge pull request #509 from rose-m/refactor
Refactor packet IDs
2013-08-21 05:08:23 -07:00
Michael Rose
734b611b30 more ID extraction 2013-08-21 10:08:03 +02:00
Michael Rose
3868a5326c refactoring packet IDs 2013-08-21 09:55:43 +02:00
irungentoo
55dc9486a7 Merge pull request #508 from nurupo/master
Fixed a cmake flie to work properly on Windows
2013-08-20 20:35:18 -07:00
irungentoo
e494785abd Fixed bug. 2013-08-20 23:32:29 -04:00
Maxim Biro
6a2569c432 Fixed DHTservers' path for Windows 2013-08-20 22:54:14 -04:00
irungentoo
c12853275c Merge pull request #506 from irungentoo/refactor
Refactored Everything.
2013-08-20 17:07:55 -07:00