• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# flex+bison settings
2find_package(BISON)
3find_package(FLEX)
4BISON_TARGET(PARSER ScriptParser.yy ${CMAKE_CURRENT_BINARY_DIR}/ScriptParser.cpp)
5FLEX_TARGET(LEXER ScriptScanner.ll ${CMAKE_CURRENT_BINARY_DIR}/ScriptScanner.cpp)
6ADD_FLEX_BISON_DEPENDENCY(LEXER PARSER)
7include_directories(${CMAKE_CURRENT_BINARY_DIR})
8
9add_llvm_library(MCLDScript
10  AssertCmd.cpp
11  Assignment.cpp
12  BinaryOp.cpp
13  EntryCmd.cpp
14  FileToken.cpp
15  GroupCmd.cpp
16  InputCmd.cpp
17  InputSectDesc.cpp
18  InputToken.cpp
19  NameSpec.cpp
20  NullaryOp.cpp
21  Operand.cpp
22  Operator.cpp
23  OutputArchCmd.cpp
24  OutputCmd.cpp
25  OutputFormatCmd.cpp
26  OutputSectDesc.cpp
27  RpnEvaluator.cpp
28  RpnExpr.cpp
29  ScriptCommand.cpp
30  ScriptFile.cpp
31  ScriptReader.cpp
32  SearchDirCmd.cpp
33  SectionsCmd.cpp
34  StrToken.cpp
35  StringList.cpp
36  TernaryOp.cpp
37  UnaryOp.cpp
38  WildcardPattern.cpp
39  ${BISON_PARSER_OUTPUTS}
40  ${FLEX_LEXER_OUTPUTS}
41  )
42