🎉 start c++ project.
parent
c27a560312
commit
a688963903
|
@ -0,0 +1,4 @@
|
|||
*~*
|
||||
*\#*
|
||||
build
|
||||
.cache
|
|
@ -0,0 +1,11 @@
|
|||
.PHONY: build tests
|
||||
|
||||
build:
|
||||
meson setup build
|
||||
meson compile -C build
|
||||
|
||||
tests: build
|
||||
build/pwq-tests
|
||||
|
||||
install: tests
|
||||
meson install -C build
|
22
README.md
22
README.md
|
@ -1,3 +1,21 @@
|
|||
# pywiq
|
||||
# Pywiq Terminal Code Editor
|
||||
Pywiq is a text editor specialized in programming and running
|
||||
exclusively on the terminal.
|
||||
|
||||
Pywiq Terminal Code Editor
|
||||
|
||||
## How to install
|
||||
Installing Pywiq is as easy as using a Makefile.
|
||||
Behind it, the project uses meson build system.
|
||||
|
||||
```bash
|
||||
$ sudo make install
|
||||
```
|
||||
|
||||
It will build, test and install pywiq. Once installed, you can run
|
||||
pywiq using the command ``pwq``.
|
||||
|
||||
## How to contribute ?
|
||||
Don't.
|
||||
|
||||
## License
|
||||
Pywiq is released under the GPLv3 license.
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
project('pywiq',
|
||||
'cpp',
|
||||
version: '0.0.0',
|
||||
default_options: [
|
||||
'prefix=/usr',
|
||||
'warning_level=3',
|
||||
'cpp_std=c++17',
|
||||
])
|
||||
|
||||
pwq_lib = static_library('pywiq',
|
||||
sources: [
|
||||
],
|
||||
dependencies: [
|
||||
])
|
||||
|
||||
pwq_dep = declare_dependency(
|
||||
link_with: pwq_lib,
|
||||
include_directories: ['src']
|
||||
)
|
||||
|
||||
executable('pwq',
|
||||
sources: [
|
||||
'src/main.cpp',
|
||||
],
|
||||
dependencies: [
|
||||
pwq_dep
|
||||
],
|
||||
install: true)
|
||||
|
||||
executable('pwq-tests',
|
||||
sources: [
|
||||
'tests/main.cpp',
|
||||
],
|
||||
dependencies: [
|
||||
pwq_dep,
|
||||
dependency('catch2')
|
||||
])
|
|
@ -0,0 +1,6 @@
|
|||
#include <iostream>
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch2/catch.hpp>
|
Loading…
Reference in New Issue