Skip to content

Commit

Permalink
fix header name to standard + rdm
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzh committed Nov 17, 2020
1 parent 0401b2d commit 654428c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
29 changes: 21 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,21 @@
3. cargo update
4. cargo build --release
5. macOS :
copy or create symlink of file ./TON-SDK/target/release/libton_client.dylib to /usr/local/lib/libton_client.dylib
copy or create symlink of file
**./TON-SDK/target/release/libton_client.dylib**
to
**/usr/local/lib/libton_client.dylib**

Linux :
copy or create symlink of file ./TON-SDK/target/release/libton_client.so to /usr/lib/libton_client.so
copy or create symlink of file
**./TON-SDK/target/release/libton_client.so**
to
**/usr/lib/libton_client.so**
6. Create pkgConfig file :

macOS :

**/usr/local/lib/pkgConfig/libton_client.pc**

```bash

prefix=/usr/local
Expand All @@ -32,7 +39,8 @@ Libs: -L${libdir} -lton_client

```
Linux:

**/usr/lib/pkgConfig/libton_client.pc**

```bash
prefix=/usr
exec_prefix=${prefix}
Expand All @@ -45,7 +53,13 @@ Version: 1.0.0
Cflags: -I${includedir}
Libs: -L${libdir} -lton_client
```

7. Copy or create symlink of file
**/TON-SDK/ton_client/client/tonclient.h**
to
MacOS:
**/usr/local/include/tonclient.h**
Linux:
**/usr/include/tonclient.h**

## Usage

Expand Down Expand Up @@ -90,9 +104,8 @@ You may change it with the xcode edit scheme menu.
Or inside file path_to_ton_sdk/.swiftpm/xcode/xcshareddata/xcschemes/TonClientSwift.xcscheme
set to tag "LaunchAction" absolute path to this library with options:

useCustomWorkingDirectory = "YES"

customWorkingDirectory = "/path_to_ton_sdk"
**useCustomWorkingDirectory = "YES"**
**customWorkingDirectory = "/path_to_ton_sdk"**


Tests
Expand Down
2 changes: 1 addition & 1 deletion Sources/CTonSDK/shim.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef shim_h
#define shim_h
#include <stdbool.h>
#include "ton_client.h"
#include "tonclient.h"
#endif

0 comments on commit 654428c

Please sign in to comment.