Skip to content

Commit

Permalink
Style: Reformatted meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
mrunix00 committed May 7, 2024
1 parent 729ab25 commit 06ceb68
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,24 @@ LEXER_C = custom_target(

SRCS = library('SRCS', 'src/ast.c', 'src/token.c', 'src/utils.c')
LEX = CC.find_library('l', required : true)
PHCC = executable('PHCC', 'src/main.c', link_with : SRCS, dependencies : LEX, install : true)
PHCC = executable(
'PHCC',
'src/main.c',
link_with : SRCS,
dependencies : LEX,
install : true
)

unity_subproject = subproject('unity')
unity_dependency = unity_subproject.get_variable('unity_dep')
unity_gen_runner = unity_subproject.get_variable('gen_test_runner')

lexer_tests = executable('lexer_tests',
sources : [files(['test' / 'lexer_tests.c'])],
link_with : SRCS,
include_directories : [include_directories('include')],
dependencies : [unity_dependency, LEX],
lexer_tests = executable(
'lexer_tests',
sources : [files(['test' / 'lexer_tests.c'])],
link_with : SRCS,
include_directories : [include_directories('include')],
dependencies : [unity_dependency, LEX],
)

test('lexer_tests', lexer_tests)

0 comments on commit 06ceb68

Please sign in to comment.