-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v9.1.0
- Loading branch information
Showing
2,540 changed files
with
273,887 additions
and
144,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
project (lv_emscripten) | ||
|
||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -s USE_SDL=2") | ||
|
||
include_directories(${PROJECT_SOURCE_DIR}) | ||
|
||
add_subdirectory(lvgl) | ||
file(GLOB MY_SOURCES "./*.c") | ||
set(SOURCES ${MY_SOURCES}) | ||
|
||
add_executable(index ${SOURCES} ${INCLUDES}) | ||
|
||
if(NOT LVGL_CHOSEN_DEMO) | ||
set(LVGL_CHOSEN_DEMO lv_demo_widgets) | ||
endif() | ||
set_source_files_properties(main.c PROPERTIES COMPILE_FLAGS -DCHOSEN_DEMO=${LVGL_CHOSEN_DEMO}) | ||
|
||
set(CMAKE_EXECUTABLE_SUFFIX ".html") | ||
target_link_libraries(index | ||
lvgl | ||
lvgl_examples | ||
lvgl_demos | ||
) | ||
set_target_properties(index PROPERTIES LINK_FLAGS "--shell-file ${PROJECT_SOURCE_DIR}/lvgl/.devcontainer/lvgl_shell.html -s SINGLE_FILE=1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cd build | ||
emcmake cmake .. | ||
emmake make -j$(nproc) | ||
code index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "Linux", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"/usr/local/emsdk/upstream/emscripten/cache/sysroot/include/" | ||
], | ||
"defines": [], | ||
"compilerPath": "/usr/bin/clang", | ||
"cStandard": "c17", | ||
"cppStandard": "c++14", | ||
"intelliSenseMode": "linux-clang-x64" | ||
} | ||
], | ||
"version": 4 | ||
} |
Oops, something went wrong.