Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Commit 1d67bfc

Browse files
authored
Merge pull request #14 from tsengia/facelift
Facelift
2 parents dd8a414 + e6a0bf5 commit 1d67bfc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+226
-23557
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@
3939
# Documentaion
4040
docs/*
4141
doc/*
42+
43+
build/

Diff for: .vscode/settings.json

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"C_Cpp.default.cppStandard": "c++11",
3+
"C_Cpp.default.includePath": [
4+
"${workspaceFolder}/include"
5+
],
6+
"files.associations": {
7+
"iostream": "cpp",
8+
"string": "cpp",
9+
"array": "cpp",
10+
"atomic": "cpp",
11+
"bit": "cpp",
12+
"*.tcc": "cpp",
13+
"bitset": "cpp",
14+
"cctype": "cpp",
15+
"chrono": "cpp",
16+
"clocale": "cpp",
17+
"cmath": "cpp",
18+
"condition_variable": "cpp",
19+
"cstdarg": "cpp",
20+
"cstddef": "cpp",
21+
"cstdint": "cpp",
22+
"cstdio": "cpp",
23+
"cstdlib": "cpp",
24+
"cstring": "cpp",
25+
"ctime": "cpp",
26+
"cwchar": "cpp",
27+
"cwctype": "cpp",
28+
"deque": "cpp",
29+
"map": "cpp",
30+
"unordered_map": "cpp",
31+
"vector": "cpp",
32+
"exception": "cpp",
33+
"algorithm": "cpp",
34+
"functional": "cpp",
35+
"iterator": "cpp",
36+
"memory": "cpp",
37+
"memory_resource": "cpp",
38+
"numeric": "cpp",
39+
"optional": "cpp",
40+
"random": "cpp",
41+
"ratio": "cpp",
42+
"regex": "cpp",
43+
"string_view": "cpp",
44+
"system_error": "cpp",
45+
"tuple": "cpp",
46+
"type_traits": "cpp",
47+
"utility": "cpp",
48+
"fstream": "cpp",
49+
"initializer_list": "cpp",
50+
"iosfwd": "cpp",
51+
"istream": "cpp",
52+
"limits": "cpp",
53+
"new": "cpp",
54+
"ostream": "cpp",
55+
"shared_mutex": "cpp",
56+
"sstream": "cpp",
57+
"stdexcept": "cpp",
58+
"streambuf": "cpp",
59+
"typeinfo": "cpp"
60+
}
61+
}

Diff for: CMakeLists.txt

+30-23
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,47 @@
11
cmake_minimum_required(VERSION 3.0)
22

33
project(jsgfkitxx
4-
VERSION 1.0
5-
LANGUAGES CXX)
4+
VERSION 1.1
5+
LANGUAGES CXX
6+
)
7+
8+
set(JSGF_KIT_XX_SOURCES
9+
src/Grammar.cpp
10+
src/Expansion.cpp
11+
src/Rule.cpp
12+
src/MatchInfo.cpp
13+
src/MatchResult.cpp
14+
src/Tag.cpp
15+
src/UnparsedSection.cpp
16+
src/KleeneStar.cpp
17+
src/PlusOperator.cpp
18+
src/OptionalGrouping.cpp
19+
src/RequiredGrouping.cpp
20+
src/Sequence.cpp
21+
src/AlternativeSet.cpp
22+
src/Token.cpp
23+
src/RuleReference.cpp
24+
)
25+
26+
add_library(jsgfkitxx STATIC ${JSGF_KIT_XX_SOURCES})
27+
target_include_directories(jsgfkitxx PUBLIC ${PROJECT_SOURCE_DIR}/include)
628

729
include(GNUInstallDirs)
830

9-
option(ENABLE_DEBUG "Enables debugging messages" OFF)
10-
11-
set(KIT_SOURCES src/grammar.cpp src/expansion.cpp src/rule.cpp src/matchinfo.cpp src/matchresult.cpp src/matchtracker.cpp src/tag.cpp
12-
src/unparsedsection.cpp src/kleenestar.cpp src/plusoperator.cpp
13-
src/optionalgrouping.cpp src/requiredgrouping.cpp src/sequence.cpp
14-
src/alternativeset.cpp src/token.cpp src/rulereference.cpp)
15-
16-
set(KIT_HEADERS include/rule.h include/expansion.h include/grammar.h
17-
include/unparsedsection.h include/kleenestar.h
18-
include/alternativeset.h include/token.h include/tag.h include/matchinfo.h include/matchtracker.h
19-
include/matchresult.h include/sequence.h include/plusoperator.h include/requiredgrouping.h
20-
include/optionalgrouping.h include/rulereference.h)
21-
22-
add_library(jsgfkit STATIC ${KIT_SOURCES})
23-
target_include_directories(jsgfkit PUBLIC ${PROJECT_BINARY_DIR}/include)
24-
2531
#Set variables for the .pc file
2632
set(prefix "${CMAKE_INSTALL_PREFIX}")
2733
set(exec_prefix "${CMAKE_INSTALL_PREFIX}")
2834
set(libdir "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
2935
set(includedir "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}")
30-
configure_file(jsgfkit.pc.in jsgfkit.pc @ONLY)
36+
configure_file(jsgfkitxx.pc.in jsgfkitxx.pc @ONLY)
3137

32-
install(TARGETS jsgfkit
33-
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
38+
install(TARGETS jsgfkitxx
39+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
40+
)
3441

35-
install(FILES ${KIT_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/jsgfkit)
42+
install(FILES ${KIT_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/jsgfkitxx)
3643

37-
install(FILES jsgfkit.pc DESTINATION ${CMAKE_INSTALL_DATAROOT_DIR}/pkgconfig)
44+
install(FILES jsgfkitxx.pc DESTINATION ${CMAKE_INSTALL_DATAROOT_DIR}/pkgconfig)
3845

3946
# Build Tests
4047
enable_testing ()

0 commit comments

Comments
 (0)