diff --git a/meson.build b/meson.build index c239f3ae..469ead11 100644 --- a/meson.build +++ b/meson.build @@ -12,6 +12,10 @@ cxx = meson.get_compiler('cpp') #Used by pugi to enable compact mode. I might want to disable execptions too. add_global_arguments(['-DPUGIXML_COMPACT'], language: ['cpp', 'c']) +meson.add_devenv({'VS_COMMONS_DIR': join_paths(meson.project_source_root(), 'build', 'commons')}) +meson.add_devenv({'VS_LOG_LEVEL': 'debug'}) +#TODO: Add a custom profile to devenv to avoid "polluting" or making user's one invalid. + cmake = import('cmake') opt_fltk = cmake.subproject_options() @@ -296,4 +300,4 @@ pconf.generate( vs_fltk, description: 'VS fltk library (C interface only)', url: 'https://github.com/KaruroChori/vs-fltk/', -) \ No newline at end of file +) diff --git a/package.json b/package.json index e2825914..bc7dfebd 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "codegen": "bun ./scripts/codegen/index.ts", "codegen.quick": "bun ./scripts/codegen/index.ts quick", + "meson-devenv": "meson devenv -C build", "meson-setup.release": "meson setup --reconfigure build/ --buildtype=release", "meson-setup.clang-release": "meson setup --reconfigure build/ --buildtype=release --native-file toolchains/clang.ini", "meson-setup.clang-debug": "meson setup --reconfigure build/ --buildtype=debug --native-file toolchains/clang.ini",