Skip to content

Commit 158767a

Browse files
committed
Firebase hosting and web support
1 parent 8993a08 commit 158767a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2931
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
favicon.png,1620222686804,bc61d7b6fb147376de227725039076a3b96af9b4ab6445e645dc61fad99d22d9
2+
index.html,1620222686804,177a92aa023730fb4fcd171945890159a2b559c8fe62ecf8f62f7c1054161563
3+
manifest.json,1620222686804,a9165e004f5eeaf42d14c518625d93711de59a30f3b1d2c6372099b92bc1c70d
4+
version.json,1620222686536,05dc2e80c9af76e4ad15d8ecd2e0ef34db27e18e669acbd2f55cc5fa5db4e52b
5+
assets/AssetManifest.json,1620222686796,91ed587bad623d733999fe3d13e1a5161b27ecd42874e8bc15b29730aa7634c6
6+
assets/FontManifest.json,1620222686796,eaa6c048be6249385e4a4310b72bcc579e683b9f5c61e0493d8c0988894f307d
7+
assets/assets/icons/Documents.svg,1620222686780,9bb2bea7fa6ba77b3ff8fd52a1d111b4d27f3075e67d19533360a292eb00cb9c
8+
assets/assets/icons/Figma_file.svg,1620222686780,0bb0f09de4f18e94b7e658e8aadf9ff47e40d4822a5c10108b5fe8b4225f158d
9+
assets/assets/icons/Search.svg,1620222686780,6eb3a0091759a985d0743047eedb0e6aae442866f4f47512848688fd2343b087
10+
assets/assets/icons/doc_file.svg,1620222686780,fd65a3c877982586f5c9c87a2a79ce100cea663a002d10ca4bb55301b2026390
11+
assets/assets/icons/drop_box.svg,1620222686780,52a55a2df82c259dfdceefcda2167abc1dabdea77550668cf14637337aa432dd
12+
assets/assets/icons/excle_file.svg,1620222686780,e6e127d487d54f52626c34607dead650dcf0642923c047b16ccef2b2334a6233
13+
assets/assets/icons/folder.svg,1620222686780,9af5f3f8bf1218318924aaa5ce3203bb3c9ddac7a8ddc5b97118298d73e416a0
14+
assets/assets/icons/google_drive.svg,1620222686780,9df56a802b94d1d1cc89dc69312cd49f47249e1c034eda32ce760d67060a4ede
15+
assets/assets/icons/media.svg,1620222686780,a26c30d6eb05a15e83ad84f26f7e6fb9b8d3ab3a2ee720448c838255fb875f43
16+
assets/assets/icons/media_file.svg,1620222686780,76ef5a8bb07b75c591082ec6d1a08d259ca4626299236febfb6228bfe830ab21
17+
assets/assets/icons/menu_dashbord.svg,1620222686780,848d5e64327fdef652e5ff9f74b61e418ba4f85bc6eefe4b77fa1926e469c78f
18+
assets/assets/icons/menu_doc.svg,1620222686780,f3bc8945825dce91895ea564ba4f76121cb5850537f6926ce162541c472de6e5
19+
assets/assets/icons/menu_notification.svg,1620222686780,232dad80bfddd3cf70d497ffa6a631ca4675b19d518aaee44e0d2081c6d80733
20+
assets/assets/icons/menu_profile.svg,1620222686780,0cf3e9c12235bcc399dc19082b11e59b9e03a5b89851ac7fe502b0e6494546e5
21+
assets/assets/icons/menu_setting.svg,1620222686780,6875f0d2ef1348ab19e11f956fc048dd51174433a1bcc580941234fb7891ec2f
22+
assets/assets/icons/menu_store.svg,1620222686780,6596e5adc28f18720e6e1b99f93e11f252a5e919cde299d0cc34356724bac274
23+
assets/assets/icons/menu_task.svg,1620222686780,1718613139ac07cbf69c202f9626f228bbc61911b6f664a08c5c2272f803339c
24+
assets/assets/icons/menu_tran.svg,1620222686780,df6d3d42becf16b21f2373477b1f1178bdf59f43b50704104a57e2b47c27a5df
25+
assets/assets/icons/one_drive.svg,1620222686780,9cca6d5ee72729583dad275ceb5b23f6fa753d9f607fe3dd389a1e0549dfe716
26+
assets/assets/icons/pdf_file.svg,1620222686780,d66b8fa35bfb7468d17409a4249673714fa5023134f516dc2c0d99efe7ae8f1b
27+
assets/assets/icons/sound_file.svg,1620222686784,176de9a7eb0659ce7e427663cdfc93f67d161e028e047bcc675ca940242f3356
28+
assets/assets/icons/unknown.svg,1620222686784,540abc5594ba674051143eb3be98e654cab76ac467ed33b4642010dd028a6897
29+
assets/assets/icons/xd_file.svg,1620222686780,e000443e73c7b2254b22c99d7153e10d422c79a015fa1caabc03b879938ff8c5
30+
assets/assets/images/logo.png,1620222686780,4d47b2520fc9dbfa5e356bc0419dddf03d9240f5c8427a92382d20bcc23f3c9d
31+
assets/assets/images/profile_pic.png,1620222686780,8e4562f7d01ffabaf9e11426ffe7a82537f674e51cb8e9f6121d688fbad87945
32+
icons/Icon-192.png,1620222686808,0966c457950641eb1185ae6829206e371c35e4e9c081f515fa055f65726139e4
33+
icons/Icon-512.png,1620222686804,15ba6f76fbf68941784b974bb22328be9f3a7121861307c4d0c83ade6da3cb8a
34+
flutter_service_worker.js,1620222687532,4d6b3af50163ff789980824c89a054b9d3c1de24d698f13d08f9912684a91290
35+
assets/assets/icons/logo.svg,1620222686784,61ce675ed49509913e6d1f698a4bf3b8d729010785c30c6f2b92cb5e81d7116c
36+
assets/packages/cupertino_icons/assets/CupertinoIcons.ttf,1620222686784,a77c8ca7f82c41df974e64528dfac4de5332a92a90dd861a44d5619a74b73b2e
37+
assets/NOTICES,1620222686796,3ce305ad91100fb5c5f8f3802e59762438331fd9c413674cc694e9c755cf2348
38+
assets/fonts/MaterialIcons-Regular.otf,1620222686792,6b2c70d678be7dfe9a6066a571c7ed64f2e73e396ea01e4ac8aeca7d37ce7967
39+
main.dart.js,1620222686524,964eb7bb37eadb9fc35722b819ef8df55d71c0fae7e918de4f7909a058fc8dd7

.firebase/hosting.Zg.cache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
404.html,1620222851343,b7bab6b83fa074653ff28c8d2a64135d3434575f70a12ab3d3ba8080461b9537
2+
index.html,1620222851451,e93b1acf33e42934a91d646a95c33241c46b4eb5c9e148f533777255e604064d

.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "workshop-eb216"
4+
}
5+
}

f/404.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Page Not Found</title>
7+
8+
<style media="screen">
9+
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
10+
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px 16px; border-radius: 3px; }
11+
#message h3 { color: #888; font-weight: normal; font-size: 16px; margin: 16px 0 12px; }
12+
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
13+
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
14+
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
15+
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
16+
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
17+
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
18+
@media (max-width: 600px) {
19+
body, #message { margin-top: 0; background: white; box-shadow: none; }
20+
body { border-top: 16px solid #ffa100; }
21+
}
22+
</style>
23+
</head>
24+
<body>
25+
<div id="message">
26+
<h2>404</h2>
27+
<h1>Page Not Found</h1>
28+
<p>The specified file was not found on this website. Please check the URL for mistakes and try again.</p>
29+
<h3>Why am I seeing this?</h3>
30+
<p>This page was generated by the Firebase Command-Line Interface. To modify it, edit the <code>404.html</code> file in your project's configured <code>public</code> directory.</p>
31+
</div>
32+
</body>
33+
</html>

f/index.html

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<title>Welcome to Firebase Hosting</title>
7+
8+
<!-- update the version number as needed -->
9+
<script defer src="/__/firebase/8.4.3/firebase-app.js"></script>
10+
<!-- include only the Firebase features as you need -->
11+
<script defer src="/__/firebase/8.4.3/firebase-auth.js"></script>
12+
<script defer src="/__/firebase/8.4.3/firebase-database.js"></script>
13+
<script defer src="/__/firebase/8.4.3/firebase-firestore.js"></script>
14+
<script defer src="/__/firebase/8.4.3/firebase-functions.js"></script>
15+
<script defer src="/__/firebase/8.4.3/firebase-messaging.js"></script>
16+
<script defer src="/__/firebase/8.4.3/firebase-storage.js"></script>
17+
<script defer src="/__/firebase/8.4.3/firebase-analytics.js"></script>
18+
<script defer src="/__/firebase/8.4.3/firebase-remote-config.js"></script>
19+
<script defer src="/__/firebase/8.4.3/firebase-performance.js"></script>
20+
<!--
21+
initialize the SDK after all desired features are loaded, set useEmulator to false
22+
to avoid connecting the SDK to running emulators.
23+
-->
24+
<script defer src="/__/firebase/init.js?useEmulator=true"></script>
25+
26+
<style media="screen">
27+
body { background: #ECEFF1; color: rgba(0,0,0,0.87); font-family: Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; }
28+
#message { background: white; max-width: 360px; margin: 100px auto 16px; padding: 32px 24px; border-radius: 3px; }
29+
#message h2 { color: #ffa100; font-weight: bold; font-size: 16px; margin: 0 0 8px; }
30+
#message h1 { font-size: 22px; font-weight: 300; color: rgba(0,0,0,0.6); margin: 0 0 16px;}
31+
#message p { line-height: 140%; margin: 16px 0 24px; font-size: 14px; }
32+
#message a { display: block; text-align: center; background: #039be5; text-transform: uppercase; text-decoration: none; color: white; padding: 16px; border-radius: 4px; }
33+
#message, #message a { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
34+
#load { color: rgba(0,0,0,0.4); text-align: center; font-size: 13px; }
35+
@media (max-width: 600px) {
36+
body, #message { margin-top: 0; background: white; box-shadow: none; }
37+
body { border-top: 16px solid #ffa100; }
38+
}
39+
</style>
40+
</head>
41+
<body>
42+
<div id="message">
43+
<h2>Welcome</h2>
44+
<h1>Firebase Hosting Setup Complete</h1>
45+
<p>You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!</p>
46+
<a target="_blank" href="https://firebase.google.com/docs/hosting/">Open Hosting Documentation</a>
47+
</div>
48+
<p id="load">Firebase SDK Loading&hellip;</p>
49+
50+
<script>
51+
document.addEventListener('DOMContentLoaded', function() {
52+
const loadEl = document.querySelector('#load');
53+
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
54+
// // The Firebase SDK is initialized and available here!
55+
//
56+
// firebase.auth().onAuthStateChanged(user => { });
57+
// firebase.database().ref('/path/to/ref').on('value', snapshot => { });
58+
// firebase.firestore().doc('/foo/bar').get().then(() => { });
59+
// firebase.functions().httpsCallable('yourFunction')().then(() => { });
60+
// firebase.messaging().requestPermission().then(() => { });
61+
// firebase.storage().ref('/path/to/ref').getDownloadURL().then(() => { });
62+
// firebase.analytics(); // call to activate
63+
// firebase.analytics().logEvent('tutorial_completed');
64+
// firebase.performance(); // call to activate
65+
//
66+
// // 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
67+
68+
try {
69+
let app = firebase.app();
70+
let features = [
71+
'auth',
72+
'database',
73+
'firestore',
74+
'functions',
75+
'messaging',
76+
'storage',
77+
'analytics',
78+
'remoteConfig',
79+
'performance',
80+
].filter(feature => typeof app[feature] === 'function');
81+
loadEl.textContent = `Firebase SDK loaded with ${features.join(', ')}`;
82+
} catch (e) {
83+
console.error(e);
84+
loadEl.textContent = 'Error loading the Firebase SDK, check the console.';
85+
}
86+
});
87+
</script>
88+
</body>
89+
</html>

firebase.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"hosting": {
3+
"public": "build/web",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
]
9+
}
10+
}

linux/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flutter/ephemeral

linux/CMakeLists.txt

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
project(runner LANGUAGES CXX)
3+
4+
set(BINARY_NAME "adminpanel")
5+
set(APPLICATION_ID "com.example.adminpanel")
6+
7+
cmake_policy(SET CMP0063 NEW)
8+
9+
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
10+
11+
# Configure build options.
12+
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
13+
set(CMAKE_BUILD_TYPE "Debug" CACHE
14+
STRING "Flutter build mode" FORCE)
15+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
16+
"Debug" "Profile" "Release")
17+
endif()
18+
19+
# Compilation settings that should be applied to most targets.
20+
function(APPLY_STANDARD_SETTINGS TARGET)
21+
target_compile_features(${TARGET} PUBLIC cxx_std_14)
22+
target_compile_options(${TARGET} PRIVATE -Wall -Werror)
23+
target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
24+
target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
25+
endfunction()
26+
27+
set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
28+
29+
# Flutter library and tool build rules.
30+
add_subdirectory(${FLUTTER_MANAGED_DIR})
31+
32+
# System-level dependencies.
33+
find_package(PkgConfig REQUIRED)
34+
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
35+
36+
add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
37+
38+
# Application build
39+
add_executable(${BINARY_NAME}
40+
"main.cc"
41+
"my_application.cc"
42+
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
43+
)
44+
apply_standard_settings(${BINARY_NAME})
45+
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
46+
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
47+
add_dependencies(${BINARY_NAME} flutter_assemble)
48+
# Only the install-generated bundle's copy of the executable will launch
49+
# correctly, since the resources must in the right relative locations. To avoid
50+
# people trying to run the unbundled copy, put it in a subdirectory instead of
51+
# the default top-level location.
52+
set_target_properties(${BINARY_NAME}
53+
PROPERTIES
54+
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
55+
)
56+
57+
# Generated plugin build rules, which manage building the plugins and adding
58+
# them to the application.
59+
include(flutter/generated_plugins.cmake)
60+
61+
62+
# === Installation ===
63+
# By default, "installing" just makes a relocatable bundle in the build
64+
# directory.
65+
set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
66+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
67+
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
68+
endif()
69+
70+
# Start with a clean build bundle directory every time.
71+
install(CODE "
72+
file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
73+
" COMPONENT Runtime)
74+
75+
set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
76+
set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
77+
78+
install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
79+
COMPONENT Runtime)
80+
81+
install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
82+
COMPONENT Runtime)
83+
84+
install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
85+
COMPONENT Runtime)
86+
87+
if(PLUGIN_BUNDLED_LIBRARIES)
88+
install(FILES "${PLUGIN_BUNDLED_LIBRARIES}"
89+
DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
90+
COMPONENT Runtime)
91+
endif()
92+
93+
# Fully re-copy the assets directory on each build to avoid having stale files
94+
# from a previous install.
95+
set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
96+
install(CODE "
97+
file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
98+
" COMPONENT Runtime)
99+
install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
100+
DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
101+
102+
# Install the AOT library on non-Debug builds only.
103+
if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
104+
install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
105+
COMPONENT Runtime)
106+
endif()

linux/flutter/CMakeLists.txt

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
4+
5+
# Configuration provided via flutter tool.
6+
include(${EPHEMERAL_DIR}/generated_config.cmake)
7+
8+
# TODO: Move the rest of this into files in ephemeral. See
9+
# https://github.com/flutter/flutter/issues/57146.
10+
11+
# Serves the same purpose as list(TRANSFORM ... PREPEND ...),
12+
# which isn't available in 3.10.
13+
function(list_prepend LIST_NAME PREFIX)
14+
set(NEW_LIST "")
15+
foreach(element ${${LIST_NAME}})
16+
list(APPEND NEW_LIST "${PREFIX}${element}")
17+
endforeach(element)
18+
set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
19+
endfunction()
20+
21+
# === Flutter Library ===
22+
# System-level dependencies.
23+
find_package(PkgConfig REQUIRED)
24+
pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
25+
pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
26+
pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
27+
pkg_check_modules(BLKID REQUIRED IMPORTED_TARGET blkid)
28+
pkg_check_modules(LZMA REQUIRED IMPORTED_TARGET liblzma)
29+
30+
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
31+
32+
# Published to parent scope for install step.
33+
set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
34+
set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
35+
set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
36+
set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
37+
38+
list(APPEND FLUTTER_LIBRARY_HEADERS
39+
"fl_basic_message_channel.h"
40+
"fl_binary_codec.h"
41+
"fl_binary_messenger.h"
42+
"fl_dart_project.h"
43+
"fl_engine.h"
44+
"fl_json_message_codec.h"
45+
"fl_json_method_codec.h"
46+
"fl_message_codec.h"
47+
"fl_method_call.h"
48+
"fl_method_channel.h"
49+
"fl_method_codec.h"
50+
"fl_method_response.h"
51+
"fl_plugin_registrar.h"
52+
"fl_plugin_registry.h"
53+
"fl_standard_message_codec.h"
54+
"fl_standard_method_codec.h"
55+
"fl_string_codec.h"
56+
"fl_value.h"
57+
"fl_view.h"
58+
"flutter_linux.h"
59+
)
60+
list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
61+
add_library(flutter INTERFACE)
62+
target_include_directories(flutter INTERFACE
63+
"${EPHEMERAL_DIR}"
64+
)
65+
target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
66+
target_link_libraries(flutter INTERFACE
67+
PkgConfig::GTK
68+
PkgConfig::GLIB
69+
PkgConfig::GIO
70+
PkgConfig::BLKID
71+
PkgConfig::LZMA
72+
)
73+
add_dependencies(flutter flutter_assemble)
74+
75+
# === Flutter tool backend ===
76+
# _phony_ is a non-existent file to force this command to run every time,
77+
# since currently there's no way to get a full input/output list from the
78+
# flutter tool.
79+
add_custom_command(
80+
OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
81+
${CMAKE_CURRENT_BINARY_DIR}/_phony_
82+
COMMAND ${CMAKE_COMMAND} -E env
83+
${FLUTTER_TOOL_ENVIRONMENT}
84+
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
85+
linux-x64 ${CMAKE_BUILD_TYPE}
86+
VERBATIM
87+
)
88+
add_custom_target(flutter_assemble DEPENDS
89+
"${FLUTTER_LIBRARY}"
90+
${FLUTTER_LIBRARY_HEADERS}
91+
)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//
2+
// Generated file. Do not edit.
3+
//
4+
5+
#include "generated_plugin_registrant.h"
6+
7+
8+
void fl_register_plugins(FlPluginRegistry* registry) {
9+
}

0 commit comments

Comments
 (0)