@@ -229,7 +229,12 @@ enum FlutterELinuxBackendType {
229
229
}
230
230
}
231
231
232
+ packageDependencies += [
233
+ . package ( url: " https://github.com/xtremekforever/swift-systemd " , branch: " main " ) ,
234
+ ]
235
+
232
236
let FlutterELinuxBackend = FlutterELinuxBackendType . defaultBackend
237
+ let FlutterELinuxVulkanEnabled = true
233
238
234
239
platformSwiftSettings += [
235
240
. define( " DISPLAY_BACKEND_TYPE_ \( FlutterELinuxBackend . displayBackendType) " ) ,
@@ -257,11 +262,6 @@ targets += [
257
262
switch FlutterELinuxBackend {
258
263
case . drmGbm:
259
264
targets += [
260
- . systemLibrary(
261
- name: " CLibUV " ,
262
- pkgConfig: " libuv " ,
263
- providers: [ . apt( [ " libuv1-dev " ] ) ]
264
- ) ,
265
265
. systemLibrary(
266
266
name: " CLibInput " ,
267
267
pkgConfig: " libinput " ,
@@ -322,7 +322,7 @@ let BackendDependencies: [Target.Dependency]
322
322
323
323
switch FlutterELinuxBackend {
324
324
case . drmGbm:
325
- BackendDependencies = [ " CLibUV " , " CLibInput " , " CLibDRM " , " CLibUDev " , " CGBM " ]
325
+ BackendDependencies = [ " CLibInput " , " CLibDRM " , " CLibUDev " , " CGBM " ]
326
326
ExcludedSources = WaylandSources + DRMEGLSources
327
327
case . drmEglStream:
328
328
BackendDependencies = [ ] // TODO:
@@ -368,7 +368,11 @@ Exclusions += ExcludedSources
368
368
targets += [
369
369
. target(
370
370
name: " CxxFlutterSwift " ,
371
- dependencies: [ " CEGL " , " CXKBCommon " ] + BackendDependencies,
371
+ dependencies: [
372
+ " CEGL " ,
373
+ " CXKBCommon " ,
374
+ . product( name: " Systemd " , package : " swift-systemd " , condition: . when( platforms: [ . linux] ) ) ,
375
+ ] + BackendDependencies,
372
376
exclude: Exclusions,
373
377
cSettings: [ ] ,
374
378
cxxSettings: [
@@ -380,6 +384,7 @@ targets += [
380
384
. define( " ENABLE_EGL_ALPHA_COMPONENT_OF_COLOR_BUFFER " ) ,
381
385
// ENABLE_VSYNC OFF
382
386
// .define("ENABLE_VSYNC"),
387
+ . define( " USE_LIBSYSTEMD " ) ,
383
388
// ENABLE_ELINUX_EMBEDDER_LOG ON
384
389
. define( " ENABLE_ELINUX_EMBEDDER_LOG " ) ,
385
390
// .define("FLUTTER_RELEASE") // FIXME: for release
0 commit comments