Commit a81a593c authored by Bat's avatar Bat
Browse files

Merge branch 'issue-30' into 'develop'

Issue 30

Closes #30

See merge request !18
parents a32e6eb7 d66c3e12
Pipeline #12476 failed with stages
in 1 minute and 52 seconds
......@@ -55,6 +55,8 @@ namespace Poulp {
}
void setup_env () {
Environment.set_variable ("VALA_VERSION", get_vala_version ().to_string (), false);
Environment.set_variable ("VALA_API_VERSION", string.joinv (".", get_vala_version ().to_string ().split (".")[0:2]), false);
#if WIN32
Environment.set_variable ("POULP_DATA_DIR", "C:\\ProgramData\\poulp", false);
Environment.set_variable ("POULP_BIN_DIR", "C:\\ProgramFiles\\", false);
......
......@@ -63,6 +63,7 @@ namespace Poulp {
public SemVer.Version get_vala_version () {
string raw_ver = "0.0.0";
spawn ("valac --version", out raw_ver, null, null);
raw_ver = raw_ver.replace ("Vala ", "").replace ("\n", "");
return new SemVer.Version.parse (raw_ver);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment