Skip to content

Commit

Permalink
Inject VS_COMMONS_DIR via meson devenv (#26)
Browse files Browse the repository at this point in the history
* Inject VS_COMMONS_DIR via meson devenv

resolves #20

* Minor change to align the script name to the rest

* Added LOG_LEVEL

Later on a custom profile for this environment should be adopted. I left a TODO for that.

---------

Co-authored-by: KaruroChori <[email protected]>
  • Loading branch information
andy5995 and KaruroChori authored Nov 30, 2024
1 parent 17a6d76 commit f16cd27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -296,4 +300,4 @@ pconf.generate(
vs_fltk,
description: 'VS fltk library (C interface only)',
url: 'https://github.com/KaruroChori/vs-fltk/',
)
)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit f16cd27

Please sign in to comment.