diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index e6c51efe..86325deb 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -4,12 +4,12 @@ "name": "Win32", "includePath": [ "C:/emsdk/upstream/emscripten/cache/sysroot/include/emscripten", - "./packages/project-editor/flow/runtime/cpp/eez-framework/src", - "./packages/project-editor/flow/runtime/cpp/eez-runtime", - "./packages/project-editor/flow/runtime/cpp/eez-runtime/conf", - "./packages/project-editor/flow/runtime/cpp/eez-framework/src/eez/platform/simulator", - "./packages/project-editor/flow/runtime/cpp/eez-framework/src/eez/libs/agg", - "./packages/project-editor/flow/runtime/cpp/lvgl-runtime" + "./wasm/eez-framework/src", + "./wasm/eez-runtime", + "./wasm/eez-runtime/conf", + "./wasm/eez-framework/src/eez/platform/simulator", + "./wasm/eez-framework/src/eez/libs/agg", + "./wasm/lvgl-runtime" ], "defines": [ "DEBUG", @@ -27,4 +27,4 @@ } ], "version": 4 -} \ No newline at end of file +} diff --git a/gulpfile.js b/gulpfile.js index 417608f7..6ead4586 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,7 +10,6 @@ gulp.task("copy", function () { return gulp .src([ SRC + "/**/*.*", - "!" + SRC + "/project-editor/flow/runtime/cpp/**/*.*", "!" + SRC + "/**/*.ts", "!" + SRC + "/**/*.tsx", "!" + SRC + "/**/*.less", diff --git a/npm-module-publish.js b/npm-module-publish.js index 9aee176b..b6ec1160 100644 --- a/npm-module-publish.js +++ b/npm-module-publish.js @@ -8,9 +8,6 @@ for (const folder of FOLDERS) { fse.copySync(folder, `npm-module/${folder}`, { overwrite: true }); } -console.log(`Remove npm-module/packages/project-editor/flow/runtime/cpp ...`); -fse.removeSync(`npm-module/packages/project-editor/flow/runtime/cpp`); - /* console.log("Spawn npm publish ..."); const dir = spawn( diff --git a/tools/eez-framework-amalgamation/index.ts b/tools/eez-framework-amalgamation/index.ts index 1cb6bcb1..95a4b57d 100644 --- a/tools/eez-framework-amalgamation/index.ts +++ b/tools/eez-framework-amalgamation/index.ts @@ -16,9 +16,7 @@ const META_DIR = "./meta"; //////////////////////////////////////////////////////////////////////////////// -const EEZ_FRAMEWORK_PATH = path.resolve( - "../../../packages/project-editor/flow/runtime/cpp/eez-framework" -); +const EEZ_FRAMEWORK_PATH = path.resolve("../../../wasm//eez-framework"); const BASE_PATH = path.resolve(EEZ_FRAMEWORK_PATH + "/src/eez"); diff --git a/tools/lvgl-api/index.ts b/tools/lvgl-api/index.ts index 7f55e737..627dad29 100644 --- a/tools/lvgl-api/index.ts +++ b/tools/lvgl-api/index.ts @@ -128,7 +128,7 @@ function buildFunction(build: Build, func: Function) { (async function main() { const exportedFunctions = ( await fs.promises.readFile( - `../../packages/project-editor/flow/runtime/cpp/lvgl-runtime/v${VERSION}/exported-functions.txt`, + `../../wasm/lvgl-runtime/v${VERSION}/exported-functions.txt`, "utf-8" ) ) @@ -242,7 +242,7 @@ function buildFunction(build: Build, func: Function) { console.log("Processed", processed, "functions"); await fs.promises.writeFile( - `../../packages/project-editor/flow/runtime/cpp/lvgl-runtime/v${VERSION}/stub_api.c`, + `../../wasm/lvgl-runtime/v${VERSION}/stub_api.c`, build.result ); })(); diff --git a/tsconfig.dev.json b/tsconfig.dev.json index efede5d1..1cc5c15b 100644 --- a/tsconfig.dev.json +++ b/tsconfig.dev.json @@ -21,6 +21,5 @@ "strictPropertyInitialization": false, "useDefineForClassFields": true }, - "include": ["./packages"], - "exclude": ["./packages/project-editor/flow/runtime/cpp"] + "include": ["./packages"] } diff --git a/tsconfig.json b/tsconfig.json index f29b588a..28bf785a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,6 +21,5 @@ "strictPropertyInitialization": false, "useDefineForClassFields": true }, - "include": ["./packages"], - "exclude": ["./packages/project-editor/flow/runtime/cpp"] + "include": ["./packages"] } diff --git a/wasm/eez-runtime/README.md b/wasm/eez-runtime/README.md index 06d70e13..e8c39d66 100644 --- a/wasm/eez-runtime/README.md +++ b/wasm/eez-runtime/README.md @@ -4,8 +4,8 @@ How to build? source ~/emsdk/emsdk_env.sh export EMSCRIPTEN=/home/mvladic/emsdk/upstream/emscripten -mkdir -p packages/project-editor/flow/runtime/cpp/eez-runtime/build/emscripten -cd packages/project-editor/flow/runtime/cpp/eez-runtime/build/emscripten -cmake -DCMAKE_TOOLCHAIN_FILE=../../cmake/Emscripten.cmake -DCMAKE_BUILD_TYPE=Debug -G "Unix Makefiles" ../.. -make +mkdir -p wasm/eez-runtime/build +cd wasm/eez-runtime/build +emcmake cmake .. +make -j8 ``` diff --git a/wasm/lvgl-runtime/README.md b/wasm/lvgl-runtime/README.md index 494fc66e..84e2485f 100644 --- a/wasm/lvgl-runtime/README.md +++ b/wasm/lvgl-runtime/README.md @@ -4,13 +4,13 @@ How to build? source ~/emsdk/emsdk_env.sh export EMSCRIPTEN=/home/mvladic/emsdk/upstream/emscripten -mkdir -p packages/project-editor/flow/runtime/cpp/lvgl-runtime/v8.3/build -cd packages/project-editor/flow/runtime/cpp/lvgl-runtime/v8.3/build +mkdir -p wasm/lvgl-runtime/v8.3/build +cd wasm/lvgl-runtime/v8.3/build emcmake cmake .. emmake make -j4 -mkdir -p packages/project-editor/flow/runtime/cpp/lvgl-runtime/v9.0/build -cd packages/project-editor/flow/runtime/cpp/lvgl-runtime/v9.0/build +mkdir -p wasm/lvgl-runtime/v9.0/build +cd wasm/lvgl-runtime/v9.0/build emcmake cmake .. emmake make -j4 ```