build: fixed trial project
* fixed boost dependency * fixed TaskParseCXX of trial to initialize correctly
This commit is contained in:
+3
-1
@@ -110,6 +110,8 @@ target_include_directories(${LIB_PROJECT_NAME} SYSTEM
|
|||||||
"${CMAKE_SOURCE_DIR}/src/external"
|
"${CMAKE_SOURCE_DIR}/src/external"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${LIB_PROJECT_NAME} ${Boost_LIBRARIES})
|
||||||
|
|
||||||
# Lib Parser -------------------------------------------------------------------
|
# Lib Parser -------------------------------------------------------------------
|
||||||
|
|
||||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib_parser)
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/lib_parser)
|
||||||
@@ -138,7 +140,7 @@ target_include_directories(${LIB_PARSER_PROJECT_NAME} SYSTEM
|
|||||||
|
|
||||||
link_directories(${LLVM_LIBRARY_DIRS} ${CLANG_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS})
|
link_directories(${LLVM_LIBRARY_DIRS} ${CLANG_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS})
|
||||||
|
|
||||||
target_link_libraries(${LIB_PARSER_PROJECT_NAME} ${CLANG_LIBRARIES} ${LLVM_AVAILABLE_LIBS} ${Boost_LIBRARIES})
|
target_link_libraries(${LIB_PARSER_PROJECT_NAME} ${CLANG_LIBRARIES} ${LLVM_AVAILABLE_LIBS})
|
||||||
|
|
||||||
# Lib Gui ----------------------------------------------------------------------
|
# Lib Gui ----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
#include "data/parser/cxx/TaskParseCxx.h"
|
#include "data/parser/cxx/TaskParseCxx.h"
|
||||||
|
|
||||||
|
#include "data/parser/ParserClient.h"
|
||||||
|
#include "utility/messaging/type/MessageFinishedParsing.h"
|
||||||
|
|
||||||
TaskParseCxx::TaskParseCxx(
|
TaskParseCxx::TaskParseCxx(
|
||||||
ParserClient* client,
|
ParserClient* client,
|
||||||
const FileManager* fileManager,
|
const FileManager* fileManager,
|
||||||
const Parser::Arguments& arguments,
|
const Parser::Arguments& arguments,
|
||||||
const std::vector<FilePath>& files
|
const std::vector<FilePath>& files
|
||||||
)
|
)
|
||||||
: m_arguments(arguments)
|
: m_client(client)
|
||||||
|
, m_arguments(arguments)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void TaskParseCxx::enter()
|
void TaskParseCxx::enter()
|
||||||
{
|
{
|
||||||
|
m_client->startParsing();
|
||||||
}
|
}
|
||||||
|
|
||||||
Task::TaskState TaskParseCxx::update()
|
Task::TaskState TaskParseCxx::update()
|
||||||
@@ -21,6 +26,9 @@ Task::TaskState TaskParseCxx::update()
|
|||||||
|
|
||||||
void TaskParseCxx::exit()
|
void TaskParseCxx::exit()
|
||||||
{
|
{
|
||||||
|
m_client->finishParsing();
|
||||||
|
|
||||||
|
MessageFinishedParsing(0, 0, 0, 0).dispatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TaskParseCxx::interrupt()
|
void TaskParseCxx::interrupt()
|
||||||
|
|||||||
Reference in New Issue
Block a user