From e71cb706c9641f1a6ec336bcd5cb3d3710699fa7 Mon Sep 17 00:00:00 2001 From: nukashimika Date: Sat, 13 Aug 2022 02:29:23 -0600 Subject: [PATCH] init --- meson.build | 7 +++++++ shell.nix | 12 ++++++++++++ src/include/app.hpp | 11 +++++++++++ src/main.cpp | 14 ++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 meson.build create mode 100644 shell.nix create mode 100644 src/include/app.hpp create mode 100644 src/main.cpp diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..3e5bd30 --- /dev/null +++ b/meson.build @@ -0,0 +1,7 @@ +project('multiplex', 'cpp') + +qt = [dependency('qt5')] +src = [ + 'src/main.cpp' + ] +executable('multiplex', sources: src, dependencies: qt) diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..19f5aa3 --- /dev/null +++ b/shell.nix @@ -0,0 +1,12 @@ +{pkgs ? import {} }: + +pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + glfw + glew + gcc + zsh + exa + pkg-config + ]; +} diff --git a/src/include/app.hpp b/src/include/app.hpp new file mode 100644 index 0000000..da77ac8 --- /dev/null +++ b/src/include/app.hpp @@ -0,0 +1,11 @@ + + +class App +{ + public: + void run() + { + + } + private: +}; diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..e607d6e --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,14 @@ +#include +#include +#include "include/app.hpp" + +int main() +{ + App app; + + try { + app.run(); + } catch (std::exception ex) { + std::cout << "ERROR: " << ex.what() << std::endl; + } +}