Skip to content

Commit 58c61d6

Browse files
committed
more changes regarding wasm C++ projects move
1 parent d792997 commit 58c61d6

File tree

9 files changed

+20
-28
lines changed

9 files changed

+20
-28
lines changed

.vscode/c_cpp_properties.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"name": "Win32",
55
"includePath": [
66
"C:/emsdk/upstream/emscripten/cache/sysroot/include/emscripten",
7-
"./packages/project-editor/flow/runtime/cpp/eez-framework/src",
8-
"./packages/project-editor/flow/runtime/cpp/eez-runtime",
9-
"./packages/project-editor/flow/runtime/cpp/eez-runtime/conf",
10-
"./packages/project-editor/flow/runtime/cpp/eez-framework/src/eez/platform/simulator",
11-
"./packages/project-editor/flow/runtime/cpp/eez-framework/src/eez/libs/agg",
12-
"./packages/project-editor/flow/runtime/cpp/lvgl-runtime"
7+
"./wasm/eez-framework/src",
8+
"./wasm/eez-runtime",
9+
"./wasm/eez-runtime/conf",
10+
"./wasm/eez-framework/src/eez/platform/simulator",
11+
"./wasm/eez-framework/src/eez/libs/agg",
12+
"./wasm/lvgl-runtime"
1313
],
1414
"defines": [
1515
"DEBUG",
@@ -27,4 +27,4 @@
2727
}
2828
],
2929
"version": 4
30-
}
30+
}

gulpfile.js

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ gulp.task("copy", function () {
1010
return gulp
1111
.src([
1212
SRC + "/**/*.*",
13-
"!" + SRC + "/project-editor/flow/runtime/cpp/**/*.*",
1413
"!" + SRC + "/**/*.ts",
1514
"!" + SRC + "/**/*.tsx",
1615
"!" + SRC + "/**/*.less",

npm-module-publish.js

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ for (const folder of FOLDERS) {
88
fse.copySync(folder, `npm-module/${folder}`, { overwrite: true });
99
}
1010

11-
console.log(`Remove npm-module/packages/project-editor/flow/runtime/cpp ...`);
12-
fse.removeSync(`npm-module/packages/project-editor/flow/runtime/cpp`);
13-
1411
/*
1512
console.log("Spawn npm publish ...");
1613
const dir = spawn(

tools/eez-framework-amalgamation/index.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ const META_DIR = "./meta";
1616

1717
////////////////////////////////////////////////////////////////////////////////
1818

19-
const EEZ_FRAMEWORK_PATH = path.resolve(
20-
"../../../packages/project-editor/flow/runtime/cpp/eez-framework"
21-
);
19+
const EEZ_FRAMEWORK_PATH = path.resolve("../../../wasm//eez-framework");
2220

2321
const BASE_PATH = path.resolve(EEZ_FRAMEWORK_PATH + "/src/eez");
2422

tools/lvgl-api/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function buildFunction(build: Build, func: Function) {
128128
(async function main() {
129129
const exportedFunctions = (
130130
await fs.promises.readFile(
131-
`../../packages/project-editor/flow/runtime/cpp/lvgl-runtime/v${VERSION}/exported-functions.txt`,
131+
`../../wasm/lvgl-runtime/v${VERSION}/exported-functions.txt`,
132132
"utf-8"
133133
)
134134
)
@@ -242,7 +242,7 @@ function buildFunction(build: Build, func: Function) {
242242
console.log("Processed", processed, "functions");
243243

244244
await fs.promises.writeFile(
245-
`../../packages/project-editor/flow/runtime/cpp/lvgl-runtime/v${VERSION}/stub_api.c`,
245+
`../../wasm/lvgl-runtime/v${VERSION}/stub_api.c`,
246246
build.result
247247
);
248248
})();

tsconfig.dev.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
"strictPropertyInitialization": false,
2222
"useDefineForClassFields": true
2323
},
24-
"include": ["./packages"],
25-
"exclude": ["./packages/project-editor/flow/runtime/cpp"]
24+
"include": ["./packages"]
2625
}

tsconfig.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@
2121
"strictPropertyInitialization": false,
2222
"useDefineForClassFields": true
2323
},
24-
"include": ["./packages"],
25-
"exclude": ["./packages/project-editor/flow/runtime/cpp"]
24+
"include": ["./packages"]
2625
}

wasm/eez-runtime/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ How to build?
44
source ~/emsdk/emsdk_env.sh
55
export EMSCRIPTEN=/home/mvladic/emsdk/upstream/emscripten
66
7-
mkdir -p packages/project-editor/flow/runtime/cpp/eez-runtime/build/emscripten
8-
cd packages/project-editor/flow/runtime/cpp/eez-runtime/build/emscripten
9-
cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../..
10-
make
7+
mkdir -p wasm/eez-runtime/build
8+
cd wasm/eez-runtime/build
9+
emcmake cmake ..
10+
make -j8
1111
```

wasm/lvgl-runtime/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ How to build?
44
source ~/emsdk/emsdk_env.sh
55
export EMSCRIPTEN=/home/mvladic/emsdk/upstream/emscripten
66
7-
mkdir -p packages/project-editor/flow/runtime/cpp/lvgl-runtime/v8.3/build
8-
cd packages/project-editor/flow/runtime/cpp/lvgl-runtime/v8.3/build
7+
mkdir -p wasm/lvgl-runtime/v8.3/build
8+
cd wasm/lvgl-runtime/v8.3/build
99
emcmake cmake ..
1010
emmake make -j4
1111
12-
mkdir -p packages/project-editor/flow/runtime/cpp/lvgl-runtime/v9.0/build
13-
cd packages/project-editor/flow/runtime/cpp/lvgl-runtime/v9.0/build
12+
mkdir -p wasm/lvgl-runtime/v9.0/build
13+
cd wasm/lvgl-runtime/v9.0/build
1414
emcmake cmake ..
1515
emmake make -j4
1616
```

0 commit comments

Comments
 (0)