@@ -15,7 +15,6 @@ endif()
15
15
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" "${CMAKE_MODULE_PATH} " )
16
16
17
17
OPTION (ENABLE_TESTING "Enable the unit tests" OFF )
18
- OPTION (FORCE_INTERNAL_ANTLR "Don't use the distribution's Antlr library even if there is one" OFF )
19
18
OPTION (FORCE_INTERNAL_QSCINTILLA "Don't use the distribution's QScintilla library even if there is one" OFF )
20
19
OPTION (FORCE_INTERNAL_QCUSTOMPLOT "Don't use distribution's QCustomPlot even if available" ON )
21
20
OPTION (FORCE_INTERNAL_QHEXEDIT "Don't use distribution's QHexEdit even if available" ON )
@@ -72,9 +71,6 @@ endif()
72
71
73
72
find_package (Qt5 REQUIRED COMPONENTS Concurrent Gui LinguistTools Network PrintSupport Test Widgets Xml)
74
73
75
- if (NOT FORCE_INTERNAL_ANTLR)
76
- find_package (Antlr2 QUIET )
77
- endif ()
78
74
if (NOT FORCE_INTERNAL_QSCINTILLA)
79
75
find_package (QScintilla 2.8.10 QUIET )
80
76
endif ()
@@ -90,10 +86,6 @@ else()
90
86
endif ()
91
87
set (JSON_DIR libs/json)
92
88
93
- if (NOT ANTLR2_FOUND)
94
- set (ANTLR_DIR libs/antlr-2.7.7)
95
- add_subdirectory (${ANTLR_DIR} )
96
- endif ()
97
89
if (NOT QSCINTILLA_FOUND)
98
90
set (QSCINTILLA_DIR libs/qscintilla/Qt4Qt5)
99
91
add_subdirectory (${QSCINTILLA_DIR} )
@@ -123,9 +115,6 @@ set(SQLB_HDR
123
115
src/sql/ObjectIdentifier.h
124
116
src/csvparser.h
125
117
src/sqlite.h
126
- src/grammar/sqlite3TokenTypes.hpp
127
- src/grammar/Sqlite3Lexer.hpp
128
- src/grammar/Sqlite3Parser.hpp
129
118
src/Data.h
130
119
src/IconCache.h
131
120
src/sql/parser/ParserDriver.h
@@ -208,8 +197,6 @@ set(SQLB_SRC
208
197
src/docktextedit.cpp
209
198
src/csvparser.cpp
210
199
src/DbStructureModel.cpp
211
- src/grammar/Sqlite3Lexer.cpp
212
- src/grammar/Sqlite3Parser.cpp
213
200
src/main.cpp
214
201
src/Application.cpp
215
202
src/CipherDialog.cpp
@@ -278,7 +265,8 @@ set(SQLB_RESOURCES
278
265
)
279
266
280
267
set (SQLB_MISC
281
- src/grammar/sqlite3.g
268
+ src/sql/parser/sqlite3_parser.yy
269
+ src/sql/parser/sqlite3_lexer.ll
282
270
)
283
271
284
272
# Translation files
@@ -407,11 +395,6 @@ if(QCUSTOMPLOT_FOUND)
407
395
else ()
408
396
include_directories (${QCUSTOMPLOT_DIR} )
409
397
endif ()
410
- if (ANTLR2_FOUND)
411
- include_directories (${ANTLR2_INCLUDE_DIRS} )
412
- else ()
413
- include_directories (${ANTLR_DIR} )
414
- endif ()
415
398
if (QSCINTILLA_FOUND)
416
399
include_directories (${QSCINTILLA_INCLUDE_DIR} )
417
400
else ()
@@ -442,9 +425,6 @@ endif()
442
425
if (NOT QCUSTOMPLOT_FOUND)
443
426
add_dependencies (${PROJECT_NAME} qcustomplot)
444
427
endif ()
445
- if (NOT ANTLR2_FOUND)
446
- add_dependencies (${PROJECT_NAME} antlr)
447
- endif ()
448
428
if (NOT QSCINTILLA_FOUND)
449
429
add_dependencies (${PROJECT_NAME} qscintilla2)
450
430
endif ()
@@ -455,9 +435,6 @@ endif()
455
435
if (NOT QCUSTOMPLOT_FOUND)
456
436
link_directories ("${CMAKE_CURRENT_BINARY_DIR} /${QCUSTOMPLOT_DIR} " )
457
437
endif ()
458
- if (NOT ANTLR2_FOUND)
459
- link_directories ("${CMAKE_CURRENT_BINARY_DIR} /${ANTLR_DIR} " )
460
- endif ()
461
438
if (NOT QSCINTILLA_FOUND)
462
439
link_directories ("${CMAKE_CURRENT_BINARY_DIR} /${QSCINTILLA_DIR} " )
463
440
endif ()
@@ -480,11 +457,6 @@ if(QCUSTOMPLOT_FOUND)
480
457
else ()
481
458
target_link_libraries (${PROJECT_NAME} qcustomplot)
482
459
endif ()
483
- if (ANTLR2_FOUND)
484
- target_link_libraries (${PROJECT_NAME} ${ANTLR2_LIBRARIES} )
485
- else ()
486
- target_link_libraries (${PROJECT_NAME} antlr)
487
- endif ()
488
460
if (QSCINTILLA_FOUND)
489
461
target_link_libraries (${PROJECT_NAME} ${QSCINTILLA_LIBRARIES} )
490
462
else ()
0 commit comments