8000 Enable freetype and rlottie only on Linux · phires/lv_binding_micropython@d3367e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3367e9

Browse files
committed
Enable freetype and rlottie only on Linux
1 parent 386c0e4 commit d3367e9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/unix_port.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ name: Build lv_micropython unix port
22

33
on:
44
push:
5-
branches: [ master ]
65
pull_request:
7-
branches: [ master ]
86

97
jobs:
108
build:

lv_conf.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
574574
#define LV_USE_QRCODE 1
575575

576576
/*FreeType library, if available*/
577-
#if defined __has_include
577+
#if defined(__linux__) && defined(__has_include)
578578
# if (__has_include (<ft2build.h>) || __has_include (<freetype2/ft2build.h>))
579579
# define LV_USE_FREETYPE 1
580580
# else
@@ -590,8 +590,8 @@ e.g. "stm32f769xx.h" or "stm32f429xx.h"*/
590590
#endif
591591

592592
/* Rlottie library, if available */
593-
#if defined __has_include
594-
# if __has_include (<rlottie_capi.h>)
593+
#if defined(__linux__) && defined(__has_include)
594+
# if (__has_include (<rlottie_capi.h>))
595595
# define LV_USE_RLOTTIE 1
596596
# else
597597
# define LV_USE_RLOTTIE 0

0 commit comments

Comments
 (0)
0