summaryrefslogtreecommitdiffstats
path: root/BUILD.md
blob: 2b0f5da694ae7eca8b90e30f84aa05c59500473c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Biuld of aribrator

## 1. Overview

This document describes build of Rule Based Arbitrator

## 2. Directory structure and library

|Path|Contents|
|:---|:---|
| rba/include/ | header files  |
| rba/src/ | source code files |
| rba/lib/ | libraries |
| rba/lib/librba.a | Arbitrator staticl lib<br>(on Linux) |
| rba/lib/librba.so | Arbitrator shared lib<br>(on Linux) |
| rba/lib/rba.dll | Arbitrator DLL<br>(on Windows) |
| rba/unittest/ | for unit test |
| rba/doc/ | Documents |
| rba/script/ | include script file |
| rba/script/make_dll_x64.bat | for creation of DLL |


## 3. Build step

### 3-1. Linux 

#### 3-1-1. Environment

* OS
  - Ubuntu 16.04
  - Ubuntu 18.04
  - Windows Subsystem for Linux (Ubuntu 16.04.5 LTS)
* Development env.
  - g++ 5.4.0
  - make 4.1
  - CMake 3.5.1

#### 3-1-2. Build

```
$ cd rba
$ mkdir build
$ cd build
$ cmake ..
$ make
$ ls -F ../lib
librba.a    librba.so
```
If build will be succeed,you can get **librba.a** and **librba.so**.

### 3-2. Windows

#### 3-2-1. Environment

* OS
  - Microsoft Windows 7 Professional 64bit
  - Microsoft Windows 10 Pro 64bit
* Development Env
  - Visual Studio Professional 2017
    - Desktop for C++
      - include Visual C++ tool of CMake

#### 3-2-2. Build

Execute command prompt for VS 2017, then executer bat file like below.

```
> cd rba
> script¥make_dll_x64.bat
> dir lib /w
[.]       [..]      rba.dll   rba.exp   rba.lib
```

If build will be succeed,you can get ```rba.dll```.