Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-10055

Create build system functions for bison and flex support

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.0
    • Component/s: Build System
    • Labels:
      None

      Description

      These functions should allow us to conveniently work on modules that use bison and flex source files.

      Using widl as example:

      Index: CMakeLists.txt
      ===================================================================
      --- CMakeLists.txt	(revision 68837)
      +++ CMakeLists.txt	(working copy)
      @@ -12,6 +12,9 @@
           list(APPEND SOURCE getopt.c)
       endif()
       
      +add_bison_files(parser.y)
      +add_flex_files(parser.l)
      +
       list(APPEND SOURCE
           client.c
           expr.c
      @@ -26,8 +29,8 @@
           utils.c
           widl.c
           write_msft.c
      -    parser.yy.c
      -    parser.tab.c
      +    ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.c
      +    ${CMAKE_CURRENT_BINARY_DIR}/parser.yy.c
           port/mkstemps.c)
       

        Attachments

          Activity

            People

            • Assignee:
              AmineKhaldi AmineKhaldi
              Reporter:
              AmineKhaldi AmineKhaldi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: