@@ -15,7 +15,6 @@ endif()
1515set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" "${CMAKE_MODULE_PATH} " )
1616
1717OPTION (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 )
1918OPTION (FORCE_INTERNAL_QSCINTILLA "Don't use the distribution's QScintilla library even if there is one" OFF )
2019OPTION (FORCE_INTERNAL_QCUSTOMPLOT "Don't use distribution's QCustomPlot even if available" ON )
2120OPTION (FORCE_INTERNAL_QHEXEDIT "Don't use distribution's QHexEdit even if available" ON )
@@ -72,9 +71,6 @@ endif()
7271
7372find_package (Qt5 REQUIRED COMPONENTS Concurrent Gui LinguistTools Network PrintSupport Test Widgets Xml )
7473
75- if (NOT FORCE_INTERNAL_ANTLR)
76- find_package (Antlr2 QUIET )
77- endif ()
7874if (NOT FORCE_INTERNAL_QSCINTILLA)
7975 find_package (QScintilla 2.8.10 QUIET )
8076endif ()
@@ -90,10 +86,6 @@ else()
9086endif ()
9187set (JSON_DIR libs/json)
9288
93- if (NOT ANTLR2_FOUND)
94- set (ANTLR_DIR libs/antlr-2.7.7)
95- add_subdirectory (${ANTLR_DIR} )
96- endif ()
9789if (NOT QSCINTILLA_FOUND)
9890 set (QSCINTILLA_DIR libs/qscintilla/Qt4Qt5)
9991 add_subdirectory (${QSCINTILLA_DIR} )
@@ -123,9 +115,6 @@ set(SQLB_HDR
123115 src/sql/ObjectIdentifier.h
124116 src/csvparser.h
125117 src/sqlite.h
126- src/grammar/sqlite3TokenTypes.hpp
127- src/grammar/Sqlite3Lexer.hpp
128- src/grammar/Sqlite3Parser.hpp
129118 src/Data.h
130119 src/IconCache.h
131120 src/sql/parser/ParserDriver.h
@@ -208,8 +197,6 @@ set(SQLB_SRC
208197 src/docktextedit.cpp
209198 src/csvparser.cpp
210199 src/DbStructureModel.cpp
211- src/grammar/Sqlite3Lexer.cpp
212- src/grammar/Sqlite3Parser.cpp
213200 src/main.cpp
214201 src/Application.cpp
215202 src/CipherDialog.cpp
@@ -278,7 +265,8 @@ set(SQLB_RESOURCES
278265)
279266
280267set (SQLB_MISC
281- src/grammar/sqlite3.g
268+ src/sql/parser/sqlite3_parser.yy
269+ src/sql/parser/sqlite3_lexer.ll
282270)
283271
284272# Translation files
@@ -407,11 +395,6 @@ if(QCUSTOMPLOT_FOUND)
407395else ()
408396 include_directories (${QCUSTOMPLOT_DIR} )
409397endif ()
410- if (ANTLR2_FOUND)
411- include_directories (${ANTLR2_INCLUDE_DIRS} )
412- else ()
413- include_directories (${ANTLR_DIR} )
414- endif ()
415398if (QSCINTILLA_FOUND)
416399 include_directories (${QSCINTILLA_INCLUDE_DIR} )
417400else ()
@@ -442,9 +425,6 @@ endif()
442425if (NOT QCUSTOMPLOT_FOUND)
443426 add_dependencies (${PROJECT_NAME} qcustomplot )
444427endif ()
445- if (NOT ANTLR2_FOUND)
446- add_dependencies (${PROJECT_NAME} antlr )
447- endif ()
448428if (NOT QSCINTILLA_FOUND)
449429 add_dependencies (${PROJECT_NAME} qscintilla2 )
450430endif ()
@@ -455,9 +435,6 @@ endif()
455435if (NOT QCUSTOMPLOT_FOUND)
456436 link_directories ("${CMAKE_CURRENT_BINARY_DIR} /${QCUSTOMPLOT_DIR} " )
457437endif ()
458- if (NOT ANTLR2_FOUND)
459- link_directories ("${CMAKE_CURRENT_BINARY_DIR} /${ANTLR_DIR} " )
460- endif ()
461438if (NOT QSCINTILLA_FOUND)
462439 link_directories ("${CMAKE_CURRENT_BINARY_DIR} /${QSCINTILLA_DIR} " )
463440endif ()
@@ -480,11 +457,6 @@ if(QCUSTOMPLOT_FOUND)
480457else ()
481458 target_link_libraries (${PROJECT_NAME} qcustomplot )
482459endif ()
483- if (ANTLR2_FOUND)
484- target_link_libraries (${PROJECT_NAME} ${ANTLR2_LIBRARIES} )
485- else ()
486- target_link_libraries (${PROJECT_NAME} antlr )
487- endif ()
488460if (QSCINTILLA_FOUND)
489461 target_link_libraries (${PROJECT_NAME} ${QSCINTILLA_LIBRARIES} )
490462else ()
0 commit comments