Skip to content

Commit 68c0b35

Browse files
committed
version 0.0.1
1 parent 57a63cd commit 68c0b35

23 files changed

+2919
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
wsjcpp-storages
2+
tmp/*
3+
14
# Prerequisites
25
*.d
36

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
language: cpp
2+
3+
branches:
4+
only:
5+
- master
6+
7+
dist: bionic
8+
9+
addons:
10+
apt:
11+
packages:
12+
- cmake
13+
- make
14+
- g++
15+
- pkg-config
16+
17+
# Build steps
18+
script:
19+
- ./build_simple.sh
20+
- cd unit-tests.wsjcpp
21+
- ./build_simple.sh
22+
- ./unit-tests

CMakeLists.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
3+
project(wsjcpp-storages)
4+
5+
include(${CMAKE_CURRENT_SOURCE_DIR}/src.wsjcpp/CMakeLists.txt)
6+
7+
set(CMAKE_CXX_STANDARD 11)
8+
set(EXECUTABLE_OUTPUT_PATH ${wsjcpp-storages_SOURCE_DIR})
9+
10+
# Sources
11+
12+
# include header dirs
13+
list (APPEND WSJCPP_INCLUDE_DIRS "src")
14+
15+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_storages.cpp")
16+
list (APPEND WSJCPP_SOURCES "src/wsjcpp_storages.h")
17+
18+
list (APPEND WSJCPP_SOURCES "src/main.cpp")
19+
20+
include_directories(${WSJCPP_INCLUDE_DIRS})
21+
22+
add_executable (wsjcpp-storages ${WSJCPP_SOURCES})
23+
24+
target_link_libraries(wsjcpp-storages ${WSJCPP_LIBRARIES} )
25+
26+
install(
27+
TARGETS
28+
wsjcpp-storages
29+
RUNTIME DESTINATION
30+
/usr/bin
31+
)

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# wsjcpp-storages
2-
Abstract classes for work with different databases
2+
3+
[![Build Status](https://api.travis-ci.org/wsjcpp/wsjcpp-storages.svg?branch=master)](https://travis-ci.org/wsjcpp/wsjcpp-storages) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-storages.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-storages) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-storages.svg)](https://github.com/wsjcpp/wsjcpp-storages) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-storages.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-storages/network/members)
4+
5+
Abstraction Model for work with different databases
6+
7+
TODO more description
8+
9+

build_simple.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ ! -d tmp ]; then
4+
mkdir -p tmp
5+
fi
6+
7+
cd tmp
8+
cmake ..
9+
make

src.wsjcpp/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src.wsjcpp/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Automaticly generated by [email protected]
2+
cmake_minimum_required(VERSION 3.0)
3+
4+
add_definitions(-DWSJCPP_VERSION="v0.0.1")
5+
add_definitions(-DWSJCPP_NAME="wsjcpp-levenshtein")
6+
7+
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
8+
set(MACOSX TRUE)
9+
endif()
10+
11+
set(CMAKE_CXX_STANDARD 11)
12+
13+
set (WSJCPP_LIBRARIES "")
14+
set (WSJCPP_INCLUDE_DIRS "")
15+
set (WSJCPP_SOURCES "")
16+
17+
# wsjcpp/wsjcpp-core:v0.0.2
18+
list (APPEND WSJCPP_INCLUDE_DIRS "./src.wsjcpp/wsjcpp_wsjcpp_core/")
19+
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_wsjcpp_core/wsjcpp_core.cpp")
20+
list (APPEND WSJCPP_SOURCES "./src.wsjcpp/wsjcpp_wsjcpp_core/wsjcpp_core.h")
21+
22+
# required-libraries
23+
list (APPEND WSJCPP_LIBRARIES "-lpthread")
24+
25+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
wsjcpp_version: v0.0.1
2+
cmake_cxx_standard: 11
3+
cmake_minimum_required: 3.0
4+
5+
name: wsjcpp/wsjcpp-core
6+
version: v0.0.3
7+
description: Basic Utils for wsjcpp
8+
issues: https://github.com/wsjcpp/wsjcpp-core/issues
9+
repositories:
10+
- type: main
11+
url: "https://github.com/wsjcpp/wsjcpp-core"
12+
keywords:
13+
- c++
14+
- wsjcpp
15+
16+
authors:
17+
- name: Evgenii Sopov
18+
19+
20+
required-libraries:
21+
- pthread
22+
23+
distribution:
24+
- source-file: src/wsjcpp_core.cpp
25+
target-file: wsjcpp_core.cpp
26+
sha1: "04a9e3c6db3c7190c6589514a4b5957dbb4c366d"
27+
type: "source-code"
28+
- source-file: src/wsjcpp_core.h
29+
target-file: wsjcpp_core.h
30+
sha1: "1d76447c6880f43f9afeca89111ec64d3574ccb7"
31+
type: "source-code"
32+
33+
unit-tests:
34+
folder: unit-tests # default
35+
files:
36+
- unit-tests/src/main.cpp
37+
- unit-tests/src/unit_tests.h
38+
- unit-tests/src/unit_tests.cpp

0 commit comments

Comments
 (0)