Bring in a first start to a Tracy enabled build but I have to learn more about how to run it.

master
Zed A. Shaw 2 months ago
parent 6592e22075
commit e5b4fed4ee
  1. 6
      Makefile
  2. 5
      meson.build

@ -14,7 +14,11 @@ release_build:
meson compile -j 10 -C builddir
debug_build:
meson --wipe builddir --buildtype debug
meson setup --wipe builddir --buildtype debug
meson compile -j 10 -C builddir
tracy_build:
meson setup --wipe builddir --buildtype debugoptimized -Dtracy_enable=true
meson compile -j 10 -C builddir
test: build

@ -3,6 +3,7 @@ project('raycaster', 'cpp',
cc = meson.get_compiler('cpp')
tracy = dependency('tracy', static: true)
catch2 = dependency('catch2-with-main')
fmt = dependency('fmt')
freetype = dependency('freetype2')
@ -17,6 +18,10 @@ sfml_network = dependency('sfml_network')
sfml_system = dependency('sfml_system')
sfml_window = dependency('sfml_window')
if get_option('tracy_enable') and get_option('buildtype') != 'debugoptimized'
warning('Profiling builds should set --buildtype=debugoptimized')
endif
dependencies = [
fmt, json, opengl32, freetype,
winmm, gdi32, sfml_audio, sfml_graphics,

Loading…
Cancel
Save