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

Create build system functions for bison and flex support

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 0.4.0
    • Build System
    • 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

            AmineKhaldi AmineKhaldi
            AmineKhaldi AmineKhaldi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: