Commit Graph

182 Commits

Author SHA1 Message Date
Chris Marsh
6a963456ed Thanks, Danny. 2017-11-17 09:13:22 -08:00
Michał Janiszewski
c5d3481c47 Add GNUInstallDirs include to top-level CMakeLists 2017-11-16 09:03:17 -08:00
Michał Janiszewski
2b248a6cef Don't use hardcoded paths for installation targets 2017-11-16 09:03:17 -08:00
Ted John
c9cf6b3f41 Move /MT directive to MSVC only 2017-11-16 09:03:17 -08:00
Ted John
704c56d13f Add option for building with /MT 2017-11-16 09:03:17 -08:00
Ted John
5085d23dd1 Improve cmakelists for vcpkg building
- Remove forced /MT directive.
- Allow building for debug.
- Add option to prevent building of example apps.
2017-11-16 09:03:17 -08:00
Michał Janiszewski
1675d5d2dc Provide link to info about BUILD_SHARED_LIBS 2017-11-15 11:35:55 -08:00
Hunter
bf6e0fddd5 Update appveyor.yml 2017-11-15 09:31:21 -08:00
judge2020
18f6d878e0 Fix appveyor build 2017-11-15 09:31:21 -08:00
Hunter
364606f7e9 Create Appveyor config for automated CI testing 2017-11-15 09:31:21 -08:00
Michał Janiszewski
b206dd44f0 Use -fPIC option when building shared libs 2017-11-15 09:22:07 -08:00
Michał Janiszewski
d121bbe709 Use cmake-standard flag BUILD_SHARED_LIBS
This removes custom `BUILD_DYNAMIC_LIB` option and replaces it with a
standard BUILD_SHARED_LIBS:
https://cmake.org/cmake/help/v3.7/variable/BUILD_SHARED_LIBS.html

Although not mentioned in the documentation there, this flag is
implicitly available.
2017-11-15 09:22:07 -08:00
Michał Janiszewski
cfd6470946 Add a comment explaining WINVER macros for MinGW 2017-11-15 08:20:48 -08:00
Michał Janiszewski
f22f299330 Fix mingw builds 2017-11-15 08:20:48 -08:00
Mason Sciotti
767b15184f
What's build.py for 2017-11-14 20:40:32 -08:00
Chris Marsh
6e744d228f Update to clang-format 6, specify all the options, turn off sort includes. 2017-11-13 10:50:37 -08:00
Michał Janiszewski
a1ab6c96f2 Fix unused result 2017-11-13 10:38:18 -08:00
Max Kamps
0ea7ddbd5a Fix CMake issue when ENABLE_IO_THREAD=OFF (#28)
This was probably just a typo.
2017-11-13 08:01:58 -08:00
Chris Marsh
2f54e62c23 fix include order 2017-11-10 13:14:00 -08:00
Ivan Molodetskikh
54abef2624 Fix unused parameter warning triggering 2017-11-10 09:59:51 -08:00
Ivan Molodetskikh
c5d70514ac Use steam://rungameid/ 2017-11-10 09:59:51 -08:00
Ivan Molodetskikh
57316cbaee clang-format I suppose 2017-11-10 09:59:51 -08:00
Kia
9d4d145e7f Add entry for include folder where you have to place discord-rpc.h 2017-11-10 08:13:01 -08:00
Chris Marsh
7dc663a170 Static link crt 2017-11-09 14:24:30 -08:00
Gus Caplan
f872b4e49c fix event names and add ACTIVITY_JOIN_REQUEST (#10)
* fix event names and add ACTIVITY_JOIN_REQUEST

* Update hard-mode.md

* fix typo
2017-11-09 13:32:17 -08:00
ArsenArsen
ca5d70a5f9 Add more -Wflags 2017-11-09 13:08:05 -08:00
ArsenArsen
ee9c504d1c Change -Weverything to -Wall for more compilers 2017-11-09 13:08:05 -08:00
Mason Sciotti
127eadcb89
Added VS2015 C++ redist dependency info 2017-11-07 09:59:04 -08:00
Chris Marsh
a7808a20ed Fix some sizes on join request strings. 2017-11-03 13:40:30 -07:00
Chris Marsh
3bdb88d918
Unity ajt fix 2017-11-02 11:59:45 -07:00
Chris Marsh
aa79c70bf9 Adding MIT license. 2017-11-01 15:25:14 -07:00
Chris Marsh
a089aab53e Update unity. 2017-10-17 13:34:03 -07:00
Mason Sciotti
dafd85c39f Rename avatarUrl -> avatar for API consistency 2017-10-17 13:34:03 -07:00
SK83RJOSH
b1d6a7c0fc Normalize white-space 2017-10-17 09:37:56 -07:00
SK83RJOSH
e4b3ef63b7 Added request to join functionality 2017-10-17 09:37:56 -07:00
Chris Marsh
86ca320cb9 These should have been extern C. 2017-10-13 10:02:12 -07:00
Chris Marsh
6cdc830544 Missed a couple wanrings. Build example dll 2017-10-12 16:14:16 -07:00
Chris Marsh
990c8d4be6 Enable warnings, clang edition. 2017-10-12 16:08:08 -07:00
Chris Marsh
6fa00223ad Enable all warnings, turn the noisy ones back off, fix the others. 2017-10-12 15:39:31 -07:00
Chris Marsh
39ff0bf3e4 Ask to join (#4)
This adds a new callback `joinRequest` and a new API function `Discord_Respond` to reply to it.
2017-10-12 13:06:55 -07:00
Josh Wood
25b6f1dcde Miscellaneous Unity Fixes (#3)
* Use simplified attribute names and ensure function calls are made with CallingConvention.Cdecl

* Remove unused imports
2017-09-28 08:15:15 -07:00
Chris Marsh
e7cdfaa64e I knew I shouldn't have checked in this dll 2017-09-21 14:04:46 -07:00
Chris Marsh
a5a56bcf68 Also do registering on OSX and Linux. 2017-09-14 08:59:32 -07:00
Chris Marsh
11e74bca5e update dll 2017-09-07 16:16:58 -07:00
Chris Marsh
fb87e7c193 ReadFile and WriteFile really want to report how many bytes were read/written. 2017-09-07 16:16:34 -07:00
Chris Marsh
19abe80449 Add a few more null checks. 2017-09-07 09:23:35 -07:00
Chris Marsh
fa39179be7 Fix up doing builds script, add packaging up results. 2017-09-07 09:05:41 -07:00
Chris Marsh
3566190a01 Mention unreal example in the readme 2017-09-06 14:28:49 -07:00
Chris Marsh
592f134d80 format 2017-09-06 14:27:52 -07:00
Chris Marsh
794bbccd51 Register upgrade (#2)
* Update init to take an optional Steam ID. Add register for steam game. Remove url from cmd line params to launched game.

* Start on a build script
2017-08-30 15:17:47 -07:00