From 39843c2a0a6a8cc1643c756b39f6903a0d894907 Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Wed, 4 Aug 2021 10:11:32 +0900 Subject: [PATCH] Merge the latest app template from flutter-elinux (#19) --- packages/path_provider/example/elinux/.gitignore | 1 + packages/path_provider/example/elinux/CMakeLists.txt | 4 ++-- .../path_provider/example/elinux/flutter/CMakeLists.txt | 8 ++++---- .../path_provider/example/elinux/runner/CMakeLists.txt | 2 +- packages/shared_preferences/example/elinux/CMakeLists.txt | 4 ++-- .../example/elinux/flutter/CMakeLists.txt | 8 ++++---- .../example/elinux/runner/CMakeLists.txt | 2 +- packages/video_player/elinux/CMakeLists.txt | 2 +- packages/video_player/example/elinux/CMakeLists.txt | 4 ++-- .../video_player/example/elinux/flutter/CMakeLists.txt | 8 ++++---- .../video_player/example/elinux/runner/CMakeLists.txt | 2 +- 11 files changed, 23 insertions(+), 22 deletions(-) create mode 100644 packages/path_provider/example/elinux/.gitignore diff --git a/packages/path_provider/example/elinux/.gitignore b/packages/path_provider/example/elinux/.gitignore new file mode 100644 index 0000000..229c109 --- /dev/null +++ b/packages/path_provider/example/elinux/.gitignore @@ -0,0 +1 @@ +flutter/ephemeral/ diff --git a/packages/path_provider/example/elinux/CMakeLists.txt b/packages/path_provider/example/elinux/CMakeLists.txt index 847a90a..d469d91 100644 --- a/packages/path_provider/example/elinux/CMakeLists.txt +++ b/packages/path_provider/example/elinux/CMakeLists.txt @@ -1,9 +1,9 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) project(runner LANGUAGES CXX) set(BINARY_NAME "path_provider_elinux_example") -cmake_policy(SET CMP0079 NEW) +cmake_policy(SET CMP0063 NEW) set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") diff --git a/packages/path_provider/example/elinux/flutter/CMakeLists.txt b/packages/path_provider/example/elinux/flutter/CMakeLists.txt index 376be86..f141a3c 100644 --- a/packages/path_provider/example/elinux/flutter/CMakeLists.txt +++ b/packages/path_provider/example/elinux/flutter/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") @@ -59,16 +59,16 @@ list(APPEND CPP_WRAPPER_SOURCES_CORE "core_implementations.cc" "standard_codec.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_CORE "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_PLUGIN "plugin_registrar.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_PLUGIN "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_APP "flutter_engine.cc" "flutter_view_controller.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_APP "${WRAPPER_ROOT}/") # Wrapper sources needed for a plugin. add_library(flutter_wrapper_plugin STATIC diff --git a/packages/path_provider/example/elinux/runner/CMakeLists.txt b/packages/path_provider/example/elinux/runner/CMakeLists.txt index 8bb1779..d15d5ca 100644 --- a/packages/path_provider/example/elinux/runner/CMakeLists.txt +++ b/packages/path_provider/example/elinux/runner/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) project(runner LANGUAGES CXX) if(FLUTTER_TARGET_BACKEND_TYPE MATCHES "gbm") diff --git a/packages/shared_preferences/example/elinux/CMakeLists.txt b/packages/shared_preferences/example/elinux/CMakeLists.txt index c845cef..aa982d5 100644 --- a/packages/shared_preferences/example/elinux/CMakeLists.txt +++ b/packages/shared_preferences/example/elinux/CMakeLists.txt @@ -1,9 +1,9 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) project(runner LANGUAGES CXX) set(BINARY_NAME "shared_preferences_elinux_example") -cmake_policy(SET CMP0079 NEW) +cmake_policy(SET CMP0063 NEW) set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") diff --git a/packages/shared_preferences/example/elinux/flutter/CMakeLists.txt b/packages/shared_preferences/example/elinux/flutter/CMakeLists.txt index 376be86..f141a3c 100644 --- a/packages/shared_preferences/example/elinux/flutter/CMakeLists.txt +++ b/packages/shared_preferences/example/elinux/flutter/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") @@ -59,16 +59,16 @@ list(APPEND CPP_WRAPPER_SOURCES_CORE "core_implementations.cc" "standard_codec.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_CORE "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_PLUGIN "plugin_registrar.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_PLUGIN "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_APP "flutter_engine.cc" "flutter_view_controller.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_APP "${WRAPPER_ROOT}/") # Wrapper sources needed for a plugin. add_library(flutter_wrapper_plugin STATIC diff --git a/packages/shared_preferences/example/elinux/runner/CMakeLists.txt b/packages/shared_preferences/example/elinux/runner/CMakeLists.txt index 8bb1779..d15d5ca 100644 --- a/packages/shared_preferences/example/elinux/runner/CMakeLists.txt +++ b/packages/shared_preferences/example/elinux/runner/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) project(runner LANGUAGES CXX) if(FLUTTER_TARGET_BACKEND_TYPE MATCHES "gbm") diff --git a/packages/video_player/elinux/CMakeLists.txt b/packages/video_player/elinux/CMakeLists.txt index 4d388b7..4d46008 100644 --- a/packages/video_player/elinux/CMakeLists.txt +++ b/packages/video_player/elinux/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) set(PROJECT_NAME "video_player_elinux") project(${PROJECT_NAME} LANGUAGES CXX) diff --git a/packages/video_player/example/elinux/CMakeLists.txt b/packages/video_player/example/elinux/CMakeLists.txt index 853f863..d29b114 100644 --- a/packages/video_player/example/elinux/CMakeLists.txt +++ b/packages/video_player/example/elinux/CMakeLists.txt @@ -1,9 +1,9 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) project(runner LANGUAGES CXX) set(BINARY_NAME "video_player_elinux_example") -cmake_policy(SET CMP0079 NEW) +cmake_policy(SET CMP0063 NEW) set(CMAKE_INSTALL_RPATH "$ORIGIN/lib") diff --git a/packages/video_player/example/elinux/flutter/CMakeLists.txt b/packages/video_player/example/elinux/flutter/CMakeLists.txt index 376be86..f141a3c 100644 --- a/packages/video_player/example/elinux/flutter/CMakeLists.txt +++ b/packages/video_player/example/elinux/flutter/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") @@ -59,16 +59,16 @@ list(APPEND CPP_WRAPPER_SOURCES_CORE "core_implementations.cc" "standard_codec.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_CORE "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_PLUGIN "plugin_registrar.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_PLUGIN "${WRAPPER_ROOT}/") list(APPEND CPP_WRAPPER_SOURCES_APP "flutter_engine.cc" "flutter_view_controller.cc" ) -list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") +list_prepend(CPP_WRAPPER_SOURCES_APP "${WRAPPER_ROOT}/") # Wrapper sources needed for a plugin. add_library(flutter_wrapper_plugin STATIC diff --git a/packages/video_player/example/elinux/runner/CMakeLists.txt b/packages/video_player/example/elinux/runner/CMakeLists.txt index 8bb1779..d15d5ca 100644 --- a/packages/video_player/example/elinux/runner/CMakeLists.txt +++ b/packages/video_player/example/elinux/runner/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.15) project(runner LANGUAGES CXX) if(FLUTTER_TARGET_BACKEND_TYPE MATCHES "gbm")