initial commit

This commit is contained in:
2026-06-24 14:09:24 +03:00
commit a367e1e367
6 changed files with 76 additions and 0 deletions

4
.gitignore vendored Executable file
View File

@@ -0,0 +1,4 @@
build
.cache
subprojects/*
!subprojects/catch2.wrap

3
README.md Executable file
View File

@@ -0,0 +1,3 @@
**матрица** - это система...
Это с++ реализация нейронки по определеницю циферек по картинкам

6
bin/main.cpp Normal file
View File

@@ -0,0 +1,6 @@
#include <hack/logger/logger.hpp>
auto main(int argc, char *argv[]) -> int
{
hack::log()("ok");
}

7
bin/meson.build Executable file
View File

@@ -0,0 +1,7 @@
executable(
meson.project_name(),
'main.cpp',
dependencies : deps,
cpp_args: args,
include_directories : inc
)

48
meson.build Executable file
View File

@@ -0,0 +1,48 @@
project(
meson.current_source_dir().split('/').get(-1),
'cpp',
version : run_command('git', 'rev-parse', '--short', 'HEAD', check: false).stdout().strip(),
default_options : [
'warning_level=1',
'optimization=3',
'cpp_std=c++20'
])
cc = meson.get_compiler('cpp')
if cc.get_id() == 'gcc'
add_project_arguments(
'-Wpedantic',
'-Wno-shadow',
'-Wno-maybe-uninitialized',
'-Wno-volatile',
'-Wno-unused-header',
language: 'cpp'
)
endif
# Общие флаги для GCC и Clang
add_project_arguments(
'-Wno-unused-but-set-variable',
'-Wno-comment',
'-Wno-unused-parameter',
'-Wno-unused-value',
'-Wno-missing-field-initializers',
'-Wno-narrowing',
'-Wno-deprecated-enum-enum-conversion',
'-Wno-format-security',
'-Wno-switch',
'-Wno-ignored-attributes',
'-Wno-unused-variable',
'-Wno-unused-function',
'-Wno-unknown-pragmas',
language: 'cpp'
)
args = []
inc = []
deps = [
subproject('hack').get_variable('hack_dep')
]
subdir('src')
subdir('bin')

8
src/meson.build Executable file
View File

@@ -0,0 +1,8 @@
inc += include_directories('.')
headers = []
hack_dep = declare_dependency(
include_directories: inc,
dependencies: deps
)