Skip to content

Commit

Permalink
WIP: Say hello to meson build system
Browse files Browse the repository at this point in the history
Closed: #7
  • Loading branch information
bog-dan-ro authored and stlintel committed Sep 4, 2023
1 parent fe53752 commit e928987
Show file tree
Hide file tree
Showing 20 changed files with 1,708 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bochs/bx_debug/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
flex = find_program('flex', required: false)
yacc = find_program('yacc', required: false)

sources = [
'dbg_breakpoints.cc',
'dbg_main.cc',
'linux.cc',
'symbols.cc'
]

if flex.found() and yacc.found()
lgen = generator(flex, output : '@[email protected]', arguments : ['-Pbx', '-o', '@OUTPUT@', '@INPUT@'])
ygen = generator(yacc, output : '@[email protected]', arguments : ['-p', 'bx', '-d', '-o', '@OUTPUT@', '@INPUT@'])
sources += [lgen.process('lexer.l'), ygen.process('parser.y')]
else
sources += ['parser.cc', 'lexer.c']
endif

bx_deps += static_library('debug', sources, include_directories: [top_include])
2 changes: 2 additions & 0 deletions bochs/bx_debug/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -1532,3 +1532,5 @@ expression:
;

%%

#endif /* if BX_DEBUGGER */
Loading

0 comments on commit e928987

Please sign in to comment.