Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Meson build system configuration #95

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
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: 6 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ jobs:
languages: cpp
queries: security-and-quality
source-root: src
- name: Install build tools
run: |
brew install meson ninja
- name: Build sources
run: |
cmake -S . -B build
cmake --build build
cd src
meson setup build
ninja -C build
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@3ab4101902695724f9365a384f86c1074d94e18c # v3.24.7
17 changes: 0 additions & 17 deletions CMakeLists.txt

This file was deleted.

15 changes: 0 additions & 15 deletions cmake/add_cmocka_test.cmake

This file was deleted.

9 changes: 0 additions & 9 deletions src/CMakeLists.txt

This file was deleted.

13 changes: 13 additions & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
project('flog', 'c',
version : '1.5.0',
default_options : ['warning_level=3'])

poptdep = dependency('popt', version : '>=1.19')

executable('flog',
'utils.c',
'flog.c',
'main.c',
'config.c',
dependencies : poptdep,
install : true)
7 changes: 0 additions & 7 deletions test/CMakeLists.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tool/codeql-create-database
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ cd "${parent_dir}/.."
[[ -d "${build_dir}" ]] && rm -rf "${build_dir}"
[[ -d "${codeql_db_dir}" ]] && rm -rf "${codeql_db_dir}"

codeql database create "${codeql_db_dir}" --source-root="./src" --language="cpp" --command="cmake -S .. -B ../${build_dir}" --command="cmake --build ../build"
codeql database create "${codeql_db_dir}" --source-root="./src" --language="cpp" --command="meson setup build" --command="ninja -C build"