File: icu_nacl.gyp

package info (click to toggle)
qtwebengine-opensource-src 5.7.1+dfsg-6.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,028,096 kB
  • ctags: 1,436,736
  • sloc: cpp: 5,960,176; ansic: 3,477,727; asm: 395,492; python: 320,633; sh: 96,504; perl: 69,449; xml: 42,977; makefile: 28,408; objc: 9,962; yacc: 9,847; tcl: 5,430; lex: 2,259; ruby: 1,053; lisp: 522; awk: 497; pascal: 310; cs: 249; sed: 53
file content (110 lines) | stat: -rw-r--r-- 2,814 bytes parent folder | download | duplicates (4)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'includes': [
    'icu.gypi',
    '../../native_client/build/untrusted.gypi',
  ],
  'target_defaults': {
    'direct_dependent_settings': {
      'defines': [
        # Tell ICU to not insert |using namespace icu;| into its headers,
        # so that chrome's source explicitly has to use |icu::|.
        'U_USING_ICU_NAMESPACE=0',
        # We don't use ICU plugins and dyload is only necessary for them.
        # NaCl-related builds also fail looking for dlfcn.h when it's enabled.
        'U_ENABLE_DYLOAD=0',
      ],
    },
    'defines': [
      'U_USING_ICU_NAMESPACE=0',
      'U_STATIC_IMPLEMENTATION',
    ],
    'include_dirs': [
      'source/common',
      'source/i18n',
    ],
    'pnacl_compile_flags': [
      '-Wno-char-subscripts',
      '-Wno-deprecated-declarations',
      '-Wno-header-hygiene',
      '-Wno-logical-op-parentheses',
      '-Wno-return-type-c-linkage',
      '-Wno-switch',
      '-Wno-tautological-compare',
      '-Wno-unused-variable'
    ],
  },
  'targets': [
    {
      'target_name': 'icudata_nacl',
      'type': 'none',
      'variables': {
        'nlib_target': 'libicudata_nacl.a',
        'build_glibc': 0,
        'build_newlib': 0,
        'build_pnacl_newlib': 1,
      },
      'sources': [
        'source/stubdata/stubdata.c',
        # Temporary work around for an incremental build NOT rebuilding 
        # icudata_nacl after an ICU version change.
        # TODO(jungshik): Remove it once a fix for bug 384752 is in.
        'source/common/unicode/uvernum.h',
      ],
    },
    {
      'target_name': 'icui18n_nacl',
      'type': 'none',
      'variables': {
        'nlib_target': 'libicui18n_nacl.a',
        'build_glibc': 0,
        'build_newlib': 0,
        'build_pnacl_newlib': 1,
      },
      'sources': [
        '<@(icui18n_sources)',
      ],
      'defines': [
        'U_I18N_IMPLEMENTATION',
      ],
      'dependencies': [
        'icuuc_nacl',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          'source/i18n',
        ],
      },
    },
    {
      'target_name': 'icuuc_nacl',
      'type': 'none',
      'variables': {
        'nlib_target': 'libicuuc_nacl.a',
        'build_glibc': 0,
        'build_newlib': 0,
        'build_pnacl_newlib': 1,
      },
      'sources': [
        '<@(icuuc_sources)',
      ],
      'defines': [
        'U_COMMON_IMPLEMENTATION',
      ],
      'dependencies': [
        'icudata_nacl',
      ],
      'direct_dependent_settings': {
        'include_dirs': [
          'source/common',
        ],
        'defines': [
          'U_STATIC_IMPLEMENTATION',
        ],
      },
    },
  ],
}