Commit Graph

33 Commits

Author SHA1 Message Date
jfreegman
0a277b52ea
Merge the remainder of the new groupchats implementation
Commit history: https://github.com/jfreegman/toxcore/tree/ngc_jf
Spec: https://toktok.ltd/spec.html#dht-group-chats
2022-09-22 11:16:08 -04:00
iphydf
1859d0f44a
cleanup: Ensure we limit the system headers included in .h files.
Most system headers contain functions (e.g. `memcpy` in `string.h`)
which aren't needed in our own header files. For the most part, our own
headers should only include types needed to declare our own types and
functions. We now enforce this so we think twice about which headers we
really need in the .h files.
2022-02-04 20:54:37 +00:00
crypto-universe
74fc646d45
Add VScode folder to .gitignore 2019-11-17 13:59:12 +01:00
iphydf
f627a26a7b
Run Clang global static analysis on Travis.
This uses a single .cc file containing almost all the code in the
repository to perform whole program analysis.
2018-07-22 02:34:30 +00:00
Smoked Cheese
402664f58d
update rpm spec and use variables in cmake instead of hardcoded paths (#624) 2018-01-15 14:23:33 +03:00
David Zero
8ef1f35ca7 Revert "Revert "Portability fixes""
This reverts commit 59e2a844f0, and
defines _DARWIN_C_SOURCE in toxcore/network.c
2017-01-06 04:20:00 -08:00
endoffile78
59e2a844f0 Revert "Portability fixes"
This reverts commit f3469070fe.
2017-01-05 15:16:56 -06:00
David Zero
f3469070fe Portability fixes
- CFLAG gnu99 was changed to c99.
- CXXFLAG c++98 was changed to c++11.
- CFLAG -pedantic-errors was added so that non-ISO C now throws errors.
- _XOPEN_SOURCE feature test macro added and set to 600 to expose SUSv3
  and c99 definitions in modules that required them.
- Fixed tests (and bootstrap daemon logging) that were failing due to
  the altered build flags.
- Avoid string suffix misinterpretation; explicit narrowing conversion.
- Misc. additions to .gitignore to make sure build artifacts don't wind
  up in version control.
2017-01-04 13:44:39 -08:00
Diadlo
6b344c3041
Add CMakeLists.txt.user to gitignore 2017-01-04 00:00:05 +03:00
iphydf
b5cfd33340
Add and use CMake build script
Also, fix the hstox build that was taking half an hour. It now takes 5 minutes.
Also, perform distcheck on travis to ensure that make dist works. It's not
actually failing the build at the moment due to broken tests.
2016-08-12 01:13:11 +01:00
Jin^eLD
379522c93e Add spec file for rpm generation
The spec file gets processed by configure, the version will be filled
in automatically.

To generate an rpm make sure to install rpm-build, then "configure" as you
would usually do, run "make dist", then process the generated tarball
with rpmbuild:

rpmbuild -tb tox-0.0.0.tar.gz

Tested on Fedora 22.
2015-03-04 00:35:25 +01:00
Jon Poler
098373311d Added cscope.files to .gitignore 2014-12-19 11:59:20 -05:00
mannol
2ca2baf120 Updated gitignore to ignore kdevelop directory 2014-07-21 03:16:15 +02:00
mannol
1aeeef58b2 Improved protocol and cleaned code a bit 2014-07-21 01:10:57 +02:00
Jin^eLD
06613e3662 Remove libtoxav.pc from git
libtoxav.pc is automatically generated by configure from libtoxav.pc.in
and should not be commited.
2014-03-10 12:29:18 +01:00
Sergey Shatunov
e8b6e4a4d3 Main buildscripts for android 2014-02-26 17:24:30 +08:00
Bahkuh
f581e20233 This squash should work now. 2013-10-22 20:24:48 +02:00
Bahkuh
8352c7b721 Added more OS generated files to .gitignore 2013-10-18 10:47:02 +02:00
jin-eld
d9fc869d2f Add .dirstamp to gitignore
Seems like the subdir-objects automake option is generating .dirstamp
files which should be ignored by git.
2013-09-01 21:43:46 +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
Aseda Gyeke Aboagye
d0098efa95 core,nTox,toxic - Fix for Issue #453. Refactoring w/astyle.
This commit introduces a few things. Basically I didn't like the fact that
although we had a coding style document, no one was following it. See
https://github.com/irungentoo/ProjectTox-Core/issues/453 for more info regarding
that. This commit just marks the first of my efforts to refactor the code base
according to the posted coding style document by introducing an astylerc and a
optional git pre-commit hook.

I propose that users can add this functionality as a  pre-commit hook. More
info is in the README file.

However, this has only been tested on Linux and I imagine should work on OSX as
well. I don't think pre-commit hooks work on Windows, but I may be mistaken.

The future commits I plan are refactoring the source files for other offending
items such as using typedefs. See http://wiki.tox.im/index.php/Coding_Style.
2013-08-14 19:10:03 -07:00
Alexandre Viau
c2fbe6e80b Update .gitignore
Netbeans can't put his nbproject dir outside of source.
2013-08-08 14:55:52 -04:00
panosalbanis
4efd97a6e2 Added Vim swap files and ctags file 2013-08-08 10:52:39 +01:00
Kenan Yildirim
026b715dcd Add sodium/ to .gitignore
Because Windows devs.
2013-07-31 23:31:06 -04:00
Shivam Bansal
0fd49915f4 Update .gitignore 2013-07-30 12:02:16 -07:00
Konstantin Kowalski
b3fa1fc8f4 [fixed]created new files misc_tools.(c|h) and moved hex_string_to_bin() there. 2013-07-27 12:10:41 -04:00
Oliver Hunt
98c59506fa added data file to gitignore 2013-07-22 02:15:34 +01:00
Maxim Biro
ef0efd72b5 Improved build system 2013-07-17 18:18:27 -04:00
Jeffail
859f31c160 Just cleaning up as I read, no behaviour changes 2013-07-15 15:42:50 +01:00
irungentoo
79aa715514 First part of DHT hardening done.
Added crypto to the DHT communications.

This defeats completely the first attack mentioned in
docs/DHT_hardening.

Also updated the build system to build the latest test (it links it with
libsodium)
2013-07-12 16:27:19 -04:00
Ben B
458d7dc13e Update .gitignore 2013-07-09 17:05:06 -04:00
juryben-fedora
c310719f84 update gitingore 2013-07-09 17:02:07 -04:00
Anthony Super
dd8d34d460 Quick fix
Used two if statements, both of which just broke a loop. Just threw them together with ||. Should be slightly faster.
2013-07-08 11:05:20 -06:00