Browse Source

[camera] Update dependency

camera
Vitaliy Zarubin 1 year ago
parent
commit
264a219740
  1. 7
      packages/camera/camera_aurora/README.md
  2. 2
      packages/camera/camera_aurora/aurora/CMakeLists.txt
  3. 3
      packages/camera/camera_aurora/aurora/include/camera_aurora/camera_aurora_plugin.h

7
packages/camera/camera_aurora/README.md

@ -9,12 +9,7 @@ Therefore, you have to include `camera_aurora` alongside `camera` as dependencie
***.desktop**
```desktop
Permissions=Sensors
```
***.spec**
```spec
BuildRequires: pkgconfig(streamcamera)
Permissions=Camera
```
**pubspec.yaml**

2
packages/camera/camera_aurora/aurora/CMakeLists.txt

@ -16,7 +16,6 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3")
find_package(PkgConfig REQUIRED)
find_package(Qt5 COMPONENTS Core Multimedia REQUIRED)
pkg_check_modules(StreamCamera REQUIRED IMPORTED_TARGET streamcamera)
pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder)
add_library(${PLUGIN_NAME} SHARED
@ -26,7 +25,6 @@ add_library(${PLUGIN_NAME} SHARED
set_target_properties(${PLUGIN_NAME} PROPERTIES CXX_VISIBILITY_PRESET hidden AUTOMOC ON)
target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::FlutterEmbedder)
target_link_libraries(${PLUGIN_NAME} PUBLIC PkgConfig::StreamCamera)
target_link_libraries(${PLUGIN_NAME} PUBLIC Qt5::Core Qt5::Multimedia)
target_include_directories(${PLUGIN_NAME} PRIVATE ${FLUTTER_DIR})

3
packages/camera/camera_aurora/aurora/include/camera_aurora/camera_aurora_plugin.h

@ -8,9 +8,6 @@
#include <flutter/plugin-interface.h>
#include <camera_aurora/globals.h>
#include <streamcamera/streamcamera.h>
#include <streamcamera/streamcamera-codec.h>
#include <QtCore>
#include <QCamera>
#include <QCameraInfo>

Loading…
Cancel
Save