summaryrefslogtreecommitdiffstats
path: root/build/linux/system.gyp
blob: dba1abf677b7fbf0fddfc41da2c30dbbf91ea51d (plain)
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# Copyright (c) 2009 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.

{
  'conditions': [
    ['sysroot!=""', {
      'variables': {
        'pkg-config': './pkg-config-wrapper "<(sysroot)"',
      },
    }, {
      'variables': {
        'pkg-config': 'pkg-config'
      },
    }],
  ],
  
  'targets': [
    {
      'target_name': 'gtk',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags gtk+-2.0 gthread-2.0)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-2.0 gthread-2.0)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)',
        ],
      },
    },
    {
      'target_name': 'gtkprint',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags gtk+-unix-print-2.0)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other gtk+-unix-print-2.0)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)',
        ],
      },
    },
    {
      'target_name': 'nss',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags nss)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l nss)',
        ],
      },
    },
    {
      'target_name': 'freetype2',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags freetype2)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other freetype2)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l freetype2)',
        ],
      },
    },
    {
      'target_name': 'fontconfig',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags fontconfig)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other fontconfig)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l fontconfig)',
        ],
      },
    },
    {
      'target_name': 'gdk',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags gdk-2.0)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other gdk-2.0)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
        ],
      },
    },
    {
      'target_name': 'gconf',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags gconf-2.0)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other gconf-2.0)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
        ],
      },
    },
    {
      'target_name': 'x11',
      'type': 'settings',
      'direct_dependent_settings': {
        'cflags': [
          '<!@(<(pkg-config) --cflags x11)',
        ],
      },
      'link_settings': {
        'ldflags': [
          '<!@(<(pkg-config) --libs-only-L --libs-only-other x11)',
        ],
        'libraries': [
          '<!@(<(pkg-config) --libs-only-l x11)',
        ],
      },
    },
    {
      'target_name': 'selinux',
      'type': 'settings',
      'link_settings': {
        'libraries': [
          '-lselinux',
        ],
      },
    },
# TODO(evanm): temporarily disabled while we figure out whether to depend
# on gnome-keyring etc.
# http://code.google.com/p/chromium/issues/detail?id=12351
#     {
#       'target_name': 'gnome-keyring',
#       'type': 'settings',
#       'direct_dependent_settings': {
#         'cflags': [
#           '<!@(<(pkg-config) --cflags gnome-keyring-1)',
#         ],
#       },
#       'link_settings': {
#         'ldflags': [
#           '<!@(<(pkg-config) --libs-only-L --libs-only-other gnome-keyring-1)',
#         ],
#         'libraries': [
#           '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
#         ],
#       },
#     },
#     {
#       'target_name': 'dbus-glib',
#       'type': 'settings',
#       'direct_dependent_settings': {
#         'cflags': [
#           '<!@(<(pkg-config) --cflags dbus-glib-1)',
#         ],
#       },
#       'link_settings': {
#         'ldflags': [
#           '<!@(<(pkg-config) --libs-only-L --libs-only-other dbus-glib-1)',
#         ],
#         'libraries': [
#           '<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
#         ],
#       },
#     },
  ],
}