mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-24 10:22:53 +08:00
361663ee5f
Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com> Co-authored-by: bjsylvia <bjsylvia@163.com> Co-authored-by: YanXiaowei <yanxiaowei@xiaomi.com> Co-authored-by: Niklas Fiekas <niklas.fiekas@backscattering.de> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: lhdjply <1029652979@qq.com>
27 lines
810 B
CMake
27 lines
810 B
CMake
cmake_minimum_required(VERSION 3.12.4)
|
|
|
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
|
|
if(NOT ESP_PLATFORM)
|
|
project(lvgl HOMEPAGE_URL https://github.com/lvgl/lvgl)
|
|
endif()
|
|
|
|
set(LVGL_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
if(ESP_PLATFORM)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/esp.cmake)
|
|
elseif(ZEPHYR_BASE)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/zephyr.cmake)
|
|
elseif(MICROPY_DIR)
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/micropython.cmake)
|
|
else()
|
|
include(${CMAKE_CURRENT_LIST_DIR}/env_support/cmake/custom.cmake)
|
|
endif()
|
|
|
|
if (MSVC)
|
|
if (BUILD_SHARED_LIBS)
|
|
target_compile_definitions(lvgl PUBLIC LV_ATTRIBUTE_EXTERN_DATA=__declspec\(dllimport\))
|
|
else()
|
|
target_compile_definitions(lvgl PUBLIC LV_ATTRIBUTE_EXTERN_DATA=__declspec\(dllexport\))
|
|
endif()
|
|
endif() |