1
0
mirror of https://github.com/flutter/samples.git synced 2026-06-06 06:19:19 +00:00

Re-generate Linux, macOS and Windows runners (#588)

* Re-generate Linux, macOS and Windows runners

* Update MSIX
This commit is contained in:
Brett Morgan
2020-11-12 09:56:27 +11:00
committed by GitHub
parent 25bfc7846d
commit dcbbc31119
15 changed files with 228 additions and 117 deletions

View File

@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.10)
project(runner LANGUAGES CXX)
set(BINARY_NAME "desktop_photo_search")
set(APPLICATION_ID "com.example.desktop_photo_search")
cmake_policy(SET CMP0063 NEW)
@@ -32,17 +33,26 @@ add_subdirectory(${FLUTTER_MANAGED_DIR})
find_package(PkgConfig REQUIRED)
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
# Application build
add_executable(${BINARY_NAME}
"main.cc"
"my_application.cc"
"window_configuration.cc"
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
)
apply_standard_settings(${BINARY_NAME})
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
add_dependencies(${BINARY_NAME} flutter_assemble)
# Only the install-generated bundle's copy of the executable will launch
# correctly, since the resources must in the right relative locations. To avoid
# people trying to run the unbundled copy, put it in a subdirectory instead of
# the default top-level location.
set_target_properties(${BINARY_NAME}
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
)
# Generated plugin build rules, which manage building the plugins and adding
# them to the application.