lv_port_pc_vscode icon indicating copy to clipboard operation
lv_port_pc_vscode copied to clipboard

Feature: add custom project option.

Open halyssonJr opened this issue 1 month ago • 9 comments

Description

The PR aims to add a new option simulate an external LVGL projects from LVGL Editor, for example. It's important to include this part in CMakeLists.txt in the LVGL Editor Project.

    add_library(custom_ui_lib ALIAS lib-ui)

    target_include_directories(lib-ui PUBLIC 
        ${CMAKE_CURRENT_SOURCE_DIR}
    )

    target_link_libraries(lib-ui PUBLIC lvgl)

    target_compile_definitions(lib-ui PUBLIC USE_CUSTOM_PROJECT)

Summary by cubic

Added a CMake option to load and link an external custom LVGL project. This lets you simulate a UI project (e.g., from LVGL Editor) without changing this repo.

  • New Features

    • Added USE_CUSTOM_PROJECT (OFF by default).
    • Configure CUSTOM_PROJECT_PATH to a project with a CMakeLists.txt; included via add_subdirectory.
    • Links custom_ui_lib to main and prints status/warnings for invalid paths.
  • Migration

    • Enable with: -DUSE_CUSTOM_PROJECT=ON
    • Set path with: -DCUSTOM_PROJECT_PATH=/path/to/project

halyssonJr avatar Oct 11 '25 21:10 halyssonJr

@cubic-dev-ai review this

halyssonJr avatar Oct 18 '25 16:10 halyssonJr

@cubic-dev-ai

@halyssonJr 👋 Hi! I'm cubic, Here's how I can help with your PR:

Ask questions

  • @cubic-dev-ai why did you suggest this change?

Request reviews

  • @cubic-dev-ai review this - Run a code review

Give feedback

  • @cubic-dev-ai this suggestion doesn't work for our use case

Request fixes

  • @cubic-dev-ai fix this - Generate a fix for the code. cubic will create a PR that merges into your branch.

cubic-dev-ai[bot] avatar Oct 18 '25 16:10 cubic-dev-ai[bot]

@cubic-dev-ai, re-run the review.

@halyssonJr I've started the AI code review. It'll take a few minutes to complete.

cubic-dev-ai[bot] avatar Oct 18 '25 16:10 cubic-dev-ai[bot]

@cubic-dev-ai review this

@halyssonJr I've started the AI code review. It'll take a few minutes to complete.

cubic-dev-ai[bot] avatar Oct 18 '25 16:10 cubic-dev-ai[bot]

@cubic-dev-ai review this

halyssonJr avatar Oct 26 '25 21:10 halyssonJr

@cubic-dev-ai review this

@halyssonJr I've started the AI code review. It'll take a few minutes to complete.

cubic-dev-ai[bot] avatar Oct 26 '25 21:10 cubic-dev-ai[bot]

@cubic-dev-ai review this

halyssonJr avatar Oct 26 '25 21:10 halyssonJr

@cubic-dev-ai review this

@halyssonJr I've started the AI code review. It'll take a few minutes to complete.

cubic-dev-ai[bot] avatar Oct 26 '25 21:10 cubic-dev-ai[bot]

@kisvegabor, Could you please review this PR? The main goal here is to test and validate the project created in the LVGL Editor before installing it on your device, saving time and ensuring the screen flow is correct. If, for any reason, this contribution follows a different path than planned for the roadmap, we must close it.

halyssonJr avatar Oct 27 '25 11:10 halyssonJr