From eb9295cfcdf89ade8b65f5fc9afc695ce30b7f68 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 1 Sep 2021 19:37:00 +0200 Subject: [PATCH] abacus: remove meson build system --- meson.build | 13 ------------ src/bignum/meson.build | 16 -------------- src/meson.build | 16 -------------- src/parse/meson.build | 48 ------------------------------------------ tests/meson.build | 1 - tests/unit/meson.build | 26 ----------------------- 6 files changed, 120 deletions(-) delete mode 100644 meson.build delete mode 100644 src/bignum/meson.build delete mode 100644 src/meson.build delete mode 100644 src/parse/meson.build delete mode 100644 tests/meson.build delete mode 100644 tests/unit/meson.build diff --git a/meson.build b/meson.build deleted file mode 100644 index 4910f6a..0000000 --- a/meson.build +++ /dev/null @@ -1,13 +0,0 @@ -project( - 'abacus', - 'cpp', - version: '0.0.0', - license: 'MIT', - default_options: [ - 'warning_level=3', - 'cpp_std=c++17', - ], -) - -subdir('src') -subdir('tests') diff --git a/src/bignum/meson.build b/src/bignum/meson.build deleted file mode 100644 index af1e4e5..0000000 --- a/src/bignum/meson.build +++ /dev/null @@ -1,16 +0,0 @@ -bignum_sources = files( - 'bignum.cc', - 'bignum.hh', -) - -bignum_inc = include_directories('.') - -bignum_lib = static_library( - 'bignum', - sources: bignum_sources, -) - -bignum = declare_dependency( - link_with: bignum_lib, - include_directories: bignum_inc, -) diff --git a/src/meson.build b/src/meson.build deleted file mode 100644 index a6c5cb2..0000000 --- a/src/meson.build +++ /dev/null @@ -1,16 +0,0 @@ -abacus_sources = files( - 'abacus.cc', -) - -subdir('bignum') -subdir('parse') - -abacus = executable( - 'abacus', - sources: abacus_sources, - dependencies: [ - bignum, - parse, - ], - install: true, -) diff --git a/src/parse/meson.build b/src/parse/meson.build deleted file mode 100644 index 1a3bdcb..0000000 --- a/src/parse/meson.build +++ /dev/null @@ -1,48 +0,0 @@ -flex_binary = find_program('flex', required: true) -lexer_sources = custom_target( - 'lexer_sources', - input: 'scanner.ll', - output: 'scanner.cc', - command: [ - flex_binary, - '-o', - '@OUTPUT@', - '@INPUT@', - ], -) - -bison_binary = find_program('bison', required: true) -parser_sources = custom_target( - 'parser_sources', - input: 'parser.yy', - output: [ - 'parser.cc', - 'parser.hh', - ], - command: [ - bison_binary, - '@INPUT@', - '--output=@OUTPUT0@', - '--defines=@OUTPUT1@', - '--graph', - # FIXME: html output in bison 3.7.90 - ], -) - -parse_inc = include_directories('.') - -parse_lib = static_library( - 'parser', - 'parser-driver.cc', - 'parser-driver.hh', - lexer_sources, - parser_sources, - dependencies: [ - bignum, - ], -) - -parse = declare_dependency( - link_with: parse_lib, - include_directories: parse_inc, -) diff --git a/tests/meson.build b/tests/meson.build deleted file mode 100644 index 082b746..0000000 --- a/tests/meson.build +++ /dev/null @@ -1 +0,0 @@ -subdir('unit') diff --git a/tests/unit/meson.build b/tests/unit/meson.build deleted file mode 100644 index db8eddd..0000000 --- a/tests/unit/meson.build +++ /dev/null @@ -1,26 +0,0 @@ -gtest = dependency( - 'gtest', - main: true, - required: false, -) - -if gtest.found() - unit_test_sources = files( - 'bignum.cc', - ) - - unit_tests = executable( - 'unit_tests', - sources: unit_test_sources, - dependencies: [ - bignum, - gtest, - ], - ) - - test( - 'unit tests', - unit_tests, - protocol: 'gtest', - ) -endif