Skip to content

Commit

Permalink
libnixf: flatten libnixf/lib/meson.build, to a single library (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Jan 16, 2024
2 parents 09999bc + a5547b2 commit 9194fc4
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 108 deletions.
48 changes: 0 additions & 48 deletions libnixf/default.nix

This file was deleted.

21 changes: 0 additions & 21 deletions libnixf/lib/Basic/meson.build

This file was deleted.

34 changes: 0 additions & 34 deletions libnixf/lib/Parse/meson.build

This file was deleted.

2 changes: 0 additions & 2 deletions libnixf/lib/meson.build

This file was deleted.

40 changes: 37 additions & 3 deletions libnixf/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
nixf_inc = include_directories('include')
libnixf_deps = [ ]

subdir('lib')
libnixf_inc = include_directories('include')

install_subdir('include', install_dir : 'include')
libnixf = library(
'nixf',
'src/Basic/Diagnostic.cpp',
'src/Parse/Lexer.cpp',
'src/Parse/Parser.cpp',
include_directories: libnixf_inc,
dependencies: libnixf_deps,
install: true,
cpp_args: [ '-Werror=implicit-fallthrough' ]
)

pkgconfig.generate(
name: 'libnixf',
version: 'nightly',
description: 'libnixf',
libraries: libnixf
)

nixf = declare_dependency(
include_directories: libnixf_inc,
link_with: libnixf,
dependencies: libnixf_deps
)

test('unit/libnixf/Parse',
executable('unit-libnixf-parse',
'test/Parse/Lexer.cpp',
'test/Parse/Parser.cpp',
dependencies: [ nixf, gtest_main ],
include_directories: [ 'src/Parse' ] # Private headers
)
)


install_subdir('include/nixf', install_dir: 'include')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9194fc4

Please sign in to comment.