• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2013 The Flutter Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5assert(is_linux)
6
7import("$flutter_root/shell/platform/glfw/config.gni")
8
9group("linux") {
10  if (build_glfw_shell) {
11    deps = [
12      ":flutter_linux",
13      ":flutter_linux_glfw",
14      "$flutter_root/shell/platform/glfw:publish_headers_glfw",
15      "$flutter_root/shell/platform/glfw/client_wrapper:publish_wrapper_glfw",
16      "$flutter_root/shell/platform/glfw/client_wrapper:publish_wrapper_unprefixed",
17    ]
18  }
19}
20
21# Temporary workraround for the issue describe in
22# https://github.com/flutter/flutter/issues/14509 and
23# https://github.com/flutter/flutter/issues/14438
24# Remove once the build infrastructure moves to Ubuntu 18.04 or newer, where
25# the underlying issue is fixed.
26config("disable_fatal_link_warnings") {
27  visibility = [ ":*" ]
28  ldflags = [ "-Wl,--no-fatal-warnings" ]
29}
30
31if (build_glfw_shell) {
32  # TODO: Remove this target once the _glfw copy is being uploaded instead. See
33  # https://github.com/flutter/flutter/issues/38589
34  shared_library("flutter_linux") {
35    deps = [ "$flutter_root/shell/platform/glfw:flutter_glfw" ]
36
37    configs += [ ":disable_fatal_link_warnings" ]
38
39    public_configs = [ "$flutter_root:config" ]
40  }
41
42  shared_library("flutter_linux_glfw") {
43    deps = [ "$flutter_root/shell/platform/glfw:flutter_glfw" ]
44
45    configs += [ ":disable_fatal_link_warnings" ]
46
47    public_configs = [ "$flutter_root:config" ]
48  }
49}
50