Skip to content

remove gpiod and spidev native code #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ pkg_check_modules(LIBSYSTEMD REQUIRED libsystemd)
pkg_check_modules(LIBINPUT REQUIRED libinput)
pkg_check_modules(LIBXKBCOMMON REQUIRED xkbcommon)
pkg_check_modules(LIBUDEV libudev)
pkg_check_modules(GPIOD libgpiod)

set(FLUTTER_PI_SRC
src/flutter-pi.c
Expand All @@ -110,17 +109,9 @@ set(FLUTTER_PI_SRC
src/plugins/testplugin.c
src/plugins/text_input.c
src/plugins/raw_keyboard.c
src/plugins/spidev.c
src/plugins/omxplayer_video_player.c
)

if(GPIOD_FOUND)
list(APPEND FLUTTER_PI_SRC src/plugins/gpiod.c)
add_compile_options(-DBUILD_GPIOD_PLUGIN)
else()
message(STATUS "Could not find gpiod library and development headers. flutter-pi will be built without gpiod support. To install, execute 'sudo apt install libgpiod-dev'")
endif()

if (NOT LIBUDEV_FOUND)
message(STATUS "Could not find libudev.so and libudev development headers. flutter-pi will be built without udev (hotplugging) support. To install, execute 'sudo apt install libudev-dev'")
add_compile_options(-DBUILD_WITHOUT_UDEV_SUPPORT)
Expand All @@ -136,7 +127,6 @@ target_link_libraries(flutter-pi
${LIBSYSTEMD_LDFLAGS}
${LIBINPUT_LDFLAGS}
${LIBUDEV_LDFLAGS}
${GPIOD_LDFLAGS}
${LIBXKBCOMMON_LDFLAGS}
pthread dl rt m
)
Expand All @@ -152,7 +142,6 @@ target_include_directories(flutter-pi PRIVATE
${LIBSYSTEMD_INCLUDE_DIRS}
${LIBINPUT_INCLUDE_DIRS}
${LIBUDEV_INCLUDE_DIRS}
${GPIOD_INCLUDE_DIRS}
${LIBXKBCOMMON_INCLUDE_DIRS}
)

Expand All @@ -164,11 +153,9 @@ target_compile_options(flutter-pi PRIVATE
${LIBSYSTEMD_CFLAGS}
${LIBINPUT_CFLAGS}
${LIBUDEV_CFLAGS}
${GPIOD_CFLAGS}
${LIBXKBCOMMON_CFLAGS}
-ggdb
-DBUILD_TEXT_INPUT_PLUGIN
-DBUILD_SPIDEV_PLUGIN
-DBUILD_TEST_PLUGIN
-DBUILD_OMXPLAYER_VIDEO_PLAYER_PLUGIN
)
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ SOURCES = src/flutter-pi.c \
src/plugins/testplugin.c \
src/plugins/text_input.c \
src/plugins/raw_keyboard.c \
src/plugins/gpiod.c \
src/plugins/spidev.c \
src/plugins/omxplayer_video_player.c

OBJECTS = $(patsubst src/%.c,out/obj/%.o,$(SOURCES))
Expand Down
43 changes: 0 additions & 43 deletions include/plugins/gpiod_plugin.h

This file was deleted.

12 changes: 0 additions & 12 deletions include/plugins/spidev.h

This file was deleted.

8 changes: 0 additions & 8 deletions src/pluginregistry.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ struct flutterpi_plugin hardcoded_plugins[] = {
{.name = "testplugin", .init = testp_init, .deinit = testp_deinit},
#endif

#ifdef BUILD_GPIOD_PLUGIN
{.name = "flutter_gpiod", .init = gpiodp_init, .deinit = gpiodp_deinit},
#endif

#ifdef BUILD_SPIDEV_PLUGIN
{.name = "flutter_spidev", .init = spidevp_init, .deinit = spidevp_deinit},
#endif

#ifdef BUILD_OMXPLAYER_VIDEO_PLAYER_PLUGIN
{.name = "omxplayer_video_player", .init = omxpvidpp_init, .deinit = omxpvidpp_deinit},
#endif
Expand Down
Loading