Build now has lel-guecs in it so I can do a UI.

master
Zed A. Shaw 13 hours ago
parent 37a22f9966
commit 5dc45a75a6
  1. 4
      Makefile
  2. 25
      meson.build
  3. 6
      src/meson.build
  4. 9
      wraps/lel-guecs.wrap
  5. 9
      wraps/utf8cpp.wrap

@ -15,13 +15,13 @@ debug_build:
meson compile -j 4 -C builddir
run: build
./builddir/b8rk.exe 1 1 ./roms/tetris.ch8
./builddir/b8rk.exe 1 120 ./roms/tetris.ch8
debug: build
gdb --nx -x .gdbinit --ex run --args builddir/runtests.exe
debug_run: build
gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/b8rk.exe 1 1 ./roms/tetris.ch8
gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/b8rk.exe 1 120 ./roms/tetris.ch8
clean:
meson compile --clean -C builddir

@ -71,23 +71,34 @@ sfml_graphics = subproject('sfml').get_variable('sfml_graphics_dep')
sfml_network = subproject('sfml').get_variable('sfml_network_dep')
sfml_system = subproject('sfml').get_variable('sfml_system_dep')
sfml_window = subproject('sfml').get_variable('sfml_window_dep')
lel_guecs = subproject('lel-guecs').get_variable('lel_guecs_dep')
dependencies += [
fmt, freetype2,
flac, ogg, vorbis, vorbisfile, vorbisenc,
sfml_audio, sfml_graphics,
sfml_network, sfml_system,
sfml_window
sfml_window, lel_guecs
]
sources = [
'src/dbc.cpp',
'src/chip8.cpp',
'src/stats.cpp',
]
inc_dirs = include_directories('src')
subdir('src') # creates a sources var
b8rk_lib = static_library('b8rk',
sources,
cpp_args: cpp_args,
include_directories: inc_dirs,
override_options: exe_defaults,
dependencies: dependencies)
b8rk_dep = declare_dependency(
link_with: b8rk_lib,
include_directories: inc_dirs)
dependencies += [b8rk_dep]
executable('b8rk',
sources + [ 'src/main.cpp' ],
[ 'src/main.cpp' ],
cpp_args: cpp_args,
link_args: link_args,
override_options: exe_defaults,

@ -0,0 +1,6 @@
sources = files(
'dbc.cpp',
'chip8.cpp',
'stats.cpp',
)

@ -0,0 +1,9 @@
[wrap-git]
directory=lel-guecs-0.7.3
url=https://git.zedshaw.games/games/lel-guecs.git
revision=HEAD
depth=1
method=meson
[provide]
lel_guecs = lel_guecs_dep

@ -0,0 +1,9 @@
[wrap-git]
directory=utf8cpp-4.0.9
url=https://github.com/nemtrif/utfcpp.git
revision=v4.0.9
depth=1
method=cmake
[provide]
utf8cpp = utf8cpp_dep
Loading…
Cancel
Save