Skip to content

Commit

Permalink
Files added
Browse files Browse the repository at this point in the history
  • Loading branch information
rksdna committed Apr 8, 2017
1 parent 53f6078 commit af082f5
Show file tree
Hide file tree
Showing 7 changed files with 974 additions and 31 deletions.
30 changes: 2 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app
*.d
json
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Andrey Skrypka
Copyright (c) 2017 rksdna

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
64 changes: 64 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
#
# Json - JSON library for asynchronous applications
# Copyright (c) 2017 rksdna
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#

# Project files

TARGET = json
DESTDIR = /usr
BIN = $(TARGET)
SRC = $(wildcard *.cpp)
OBJ = $(SRC:.cpp=.o)
DEP = $(SRC:.cpp=.d)

# Tools and flags

CC = g++
CP = cp
RM = rm -f

CFLAGS = --std=c++11 -Wall -MD
LFLAGS =

# Targets

.PHONY: all clean install

all: $(BIN)

$(BIN): $(OBJ)
@echo "Linking $(BIN)..."
@$(CC) $(LFLAGS) -o $@ $^

%.o: %.cpp
@ echo "Compiling $@..."
$(CC) -c $(CFLAGS) -o $@ $<

install: $(BIN)
@echo "Installing $(BIN)..."
$(CP) $< $(DESTDIR)/bin

clean:
@echo "Cleaning..."
$(RM) $(OBJ) $(DEP) $(BIN)

-include $(DEP)
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# json
Streamed JSON reader and writer
# Json

is a streaming, efficient memory, callback-driven JSON library designed primarily for asynchronous applications.
See *main.cpp* to understand how to use the library.
Loading

0 comments on commit af082f5

Please sign in to comment.