Skip to content

Commit

Permalink
final md file
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavrax committed Sep 22, 2023
1 parent b0c4c73 commit 5fd2bde
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions unreal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Just change `option`, `architecture` and `implementation` with the same values y
> Note that this step is temporary until we enchant our build system that is quite obsolete and need maintenance. We are aware of it.
for example:
```cs
```csharp
static string Option = "openssl";
static string Architecture = "posix";
static string Implementation = "sync";
Expand All @@ -39,7 +39,7 @@ static string Implementation = "sync";
In the end you have to import module into your project as follow:

- `<UnrealProject>.Target.cs` and `<UnrealProject>Editor.Target.cs`
```cs
```csharp
public class <UnrealProject>[Editor]Target : TargetRules
{
public <UnrealProject>[Editor]Target (TargetInfo Target) : base(Target)
Expand Down Expand Up @@ -70,6 +70,18 @@ Now generate the project files using your IDE and you're ready to go!

## How to use it

Make it discoverable in module that you want to use it in `<Module>.Build.cs` file:
```csharp
public class <Module> : ModuleRules
{
public <Module>(ReadOnlyTargetRules Target) : base(Target)
{
//...
PrivateDependencyModuleNames.Add("PubNubModule");
}
}
```

Now you can import `PubNub.h` header into your files as follow:
```cpp
#include "PubNub.h"
Expand Down

0 comments on commit 5fd2bde

Please sign in to comment.