Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ mainIncludeDir = 'include/'
mainIncludeDir_inc = include_directories(mainIncludeDir)
all_parser_libs = []
all_parser_deps = []
all_parser_header_targets = []

foreach parserTuple : ANTLR_PARSERS
name = parserTuple[0]
folder_name = parserTuple[1]
Expand Down Expand Up @@ -147,7 +149,11 @@ foreach parserTuple : ANTLR_PARSERS
endif
endforeach
genIncludeDir = join_paths('include', 'hdlConvertor', folder_name, f'@name@Parser')
subdir(genIncludeDir)
subdir(genIncludeDir)

# Add the header copy target to our list of dependencies
all_parser_header_targets += antrl_parser_headers

parser_cpp_src = run_command(python_prog, 'utils/rec_glob.py', join_paths('src', folder_name), '*.cpp', check:true)\
.stdout().strip().split('\n')

Expand Down
6 changes: 3 additions & 3 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ hdlConvertor_core_src += run_command(py3, '../utils/rec_glob.py', './baseHdlPars
.stdout().strip().split('\n')

hdlConvertor_core_static_lib = static_library('hdlConvertor_core_static',
hdlConvertor_core_src,
hdlConvertor_core_src + all_parser_header_targets,
cpp_args: EXTRA_CXX_FLAGS,
dependencies: [antlr4_cpp_dep, all_parser_deps],
include_directories: [mainIncludeDir_inc],
Expand All @@ -32,7 +32,7 @@ if get_option('python_package')
# [note] hdlConvertor_core_static and hdlConvertor_cpp_static has to be separated
# otherwise it is not possible to link this library
hdlConvertor_cpp_static = static_library('hdlConvertor_cpp_static',
hdlConvertor_cpp_src,
hdlConvertor_cpp_src + all_parser_header_targets,
cpp_args: EXTRA_CXX_FLAGS,
dependencies: [antlr4_cpp_dep, all_parser_deps],
include_directories: [mainIncludeDir_inc],
Expand All @@ -42,7 +42,7 @@ if get_option('python_package')
else
# add dummy file to make cmake happy
hdlConvertor_cpp_shared = shared_library('hdlConvertor_cpp_shared',
hdlConvertor_cpp_src,
hdlConvertor_cpp_src + all_parser_header_targets,
cpp_args: EXTRA_CXX_FLAGS,
dependencies: [antlr4_cpp_dep, ] + all_parser_deps,
include_directories: [mainIncludeDir_inc],
Expand Down