~oxide-developers/oxide/1.2

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Copyright (C) 2013 Canonical Ltd.

# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.

# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

{
  'variables': {
    'clang': 0,
    'host_clang': 0,
    'print_ld_stats%': 0,
    'disable_nacl': 1,
    'linux_use_gold_binary': 0,
    'linux_use_gold_flags': 0,
    'use_allocator': 'none',
    'sysroot': '',
    'use_aura': 1,
    'use_gconf': 0,
    'use_gnome_keyring': 0,
    'use_mojo': 0,
    'use_ozone': 1,
    'toolkit_views': 0,
    'toolkit_uses_gtk': 0,
    'ozone_platform': 'oxide',
    'ozone_auto_platforms': 0,
    'remoting': 0,
    'external_ozone_platforms': [
      'oxide',
    ],
    'enable_printing': 0,
    'variables': {
      'conditions': [
        ['target_arch=="arm"', {
          'arm_neon': 0,
          # Only really works correctly on Android, eg WebRtc_GetCPUFeaturesARM
          # is missing on non-Android Linux
          'arm_neon_optional': 0,
        }],
      ],
    },
    'conditions': [
      ['arm_version==7', {
        # Ubuntu-specific?
        'arm_float_abi': 'hard',
      }],
      ['host_arch=="arm"', {
        # This is desparate - we're trying to avoid linker OOM on native ARM
        # builds. This is unnecessary on ARM cross builds, hence the test for
        # "host_arch".
        'remove_webcore_debug_symbols': 1,
      }],
    ],
  },
  'target_defaults': {
    'cflags!': [
      # Should remove this
      '-Werror',
    ],
    'ldflags': [
      '-B<(PRODUCT_DIR)/../../../gold',
    ],
    'ldflags!': [
      # Currently get a bunch of "warning: hidden symbol" warnings from harfbuzz with gold
      '-Wl,--fatal-warnings',
      # Applicable only for BFD linker
      '-Wl,--reduce-memory-overheads',
    ],
    'conditions': [
      ['print_ld_stats==1', {
        'ldflags': [
          '-Wl,--stats',
        ],
      }],
      ['host_arch=="arm"', {
        'ldflags': [
          # Try to work around linker OOM - we only want these on native
          # ARM builds though, hence the test for "host_arch"
          '-Wl,--no-map-whole-files',
          '-Wl,--no-keep-memory',
          '-Wl,--no-keep-files-mapped',
        ],
      }],
    ],
  }
}