1
- import { dirname } from "path" ;
1
+ import { dirname , join } from "path" ;
2
2
import { fileURLToPath } from "url" ;
3
3
4
4
import {
@@ -53,7 +53,7 @@ export class CompileAction extends CommandLineAction {
53
53
const v = this . _options . verbose ;
54
54
$ . verbose = true ;
55
55
56
- const repo = dirname ( fileURLToPath ( import . meta. url ) ) ;
56
+ const repo = join ( dirname ( fileURLToPath ( import . meta. url ) ) , "../.." ) ;
57
57
58
58
const buildType = ( this . _buildType . value || "Dev" ) as BuildType ;
59
59
const debug = this . _debug . value || false ;
@@ -88,10 +88,6 @@ export class CompileAction extends CommandLineAction {
88
88
if ( v ) console . log ( `"${ CMakeCacheFile } " does not exist` ) ;
89
89
}
90
90
91
- // set qgis-js internal environment variables
92
- process . env . QGIS_JS_VCPKG = `${ repo } /build/vcpkg` ;
93
- process . env . QGIS_JS_EMSDK = `${ repo } /build/emsdk` ;
94
-
95
91
// set environment variables for CMake
96
92
process . env . VCPKG_BINARY_SOURCES = "clear" ;
97
93
if ( debug ) {
@@ -109,9 +105,7 @@ export class CompileAction extends CommandLineAction {
109
105
-S . \
110
106
-B build/wasm \
111
107
-G Ninja \
112
- -DCMAKE_TOOLCHAIN_FILE=${
113
- process . env . QGIS_JS_VCPKG
114
- } /scripts/buildsystems/vcpkg.cmake \
108
+ -DCMAKE_TOOLCHAIN_FILE=${ repo } /build/vcpkg/scripts/buildsystems/vcpkg.cmake \
115
109
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${ repo } /build/vcpkg-toolchains/qgis-js.cmake \
116
110
-DVCPKG_OVERLAY_TRIPLETS=./build/vcpkg-triplets \
117
111
-DVCPKG_OVERLAY_PORTS=./build/vcpkg-ports \
0 commit comments