Fix some includes and spelling.
GitOrigin-RevId: 489a75315987be488d8caf63a9d3c4f0948ab810
This commit is contained in:
parent
a47d5d5511
commit
62bb714421
@ -5,7 +5,7 @@ For Javadoc documentation generation PHP is needed.
|
|||||||
|
|
||||||
TDLib should be prebuilt for using with Java and installed to local subdirectory `td/`:
|
TDLib should be prebuilt for using with Java and installed to local subdirectory `td/`:
|
||||||
```
|
```
|
||||||
cd <path to tdlib sources>
|
cd <path to TDLib sources>
|
||||||
mkdir jnibuild
|
mkdir jnibuild
|
||||||
cd jnibuild
|
cd jnibuild
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td ..
|
||||||
@ -15,10 +15,10 @@ If you want to compile TDLib for 64-bit Java on Windows, you will also need to a
|
|||||||
|
|
||||||
Then you can build this example:
|
Then you can build this example:
|
||||||
```
|
```
|
||||||
cd <path to tdlib sources>/example/java
|
cd <path to TDLib sources>/example/java
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DTd_DIR=<full path to tdlib sources>/example/java/td/lib/cmake/Td -DCMAKE_INSTALL_PREFIX:PATH=.. ..
|
cmake -DCMAKE_BUILD_TYPE=Release -DTd_DIR=<full path to TDLib sources>/example/java/td/lib/cmake/Td -DCMAKE_INSTALL_PREFIX:PATH=.. ..
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ Compiled TDLib shared library and Java example after that will be placed in bin/
|
|||||||
|
|
||||||
Now you can run Java example:
|
Now you can run Java example:
|
||||||
```
|
```
|
||||||
cd <path to tdlib sources>/example/java/bin
|
cd <path to TDLib sources>/example/java/bin
|
||||||
java -Djava.library.path=. org/drinkless/tdlib/example/Example
|
java -Djava.library.path=. org/drinkless/tdlib/example/Example
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
//
|
//
|
||||||
#include <td/telegram/Client.h>
|
#include <td/telegram/Client.h>
|
||||||
#include <td/telegram/Log.h>
|
#include <td/telegram/Log.h>
|
||||||
|
#include <td/telegram/td_api.h>
|
||||||
|
|
||||||
#include <td/tl/tl_jni_object.h>
|
#include <td/tl/tl_jni_object.h>
|
||||||
|
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
#include "td/tl/tl_config.h"
|
#include "td/tl/tl_config.h"
|
||||||
#include "td/tl/tl_generate.h"
|
#include "td/tl/tl_generate.h"
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include "td/utils/format.h"
|
#include "td/utils/format.h"
|
||||||
#include "td/utils/JsonBuilder.h"
|
#include "td/utils/JsonBuilder.h"
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
#include "td/utils/tl_helpers.h"
|
#include "td/utils/tl_helpers.h"
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
#include "td/utils/FileLog.h"
|
#include "td/utils/FileLog.h"
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
|
#include "td/utils/Slice.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "td/utils/base64.h"
|
#include "td/utils/base64.h"
|
||||||
|
|
||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#include "collection.h"
|
#include "collection.h"
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user