chromium 11.0.969.72
[chromium.git] / patches / patch-app_app__base.gypi
1 $NetBSD$
2
3 --- app/app_base.gypi.orig      2011-04-13 08:01:07.000000000 +0000
4 +++ app/app_base.gypi
5 @@ -33,7 +33,7 @@
6              'app_switches.cc',
7          ],
8          'conditions': [
9 -          ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', {
10 +          ['OS!="linux" and OS!="dragonfly" and OS!="freebsd" and OS!="netbsd" and OS!="openbsd"', {
11              'sources!': [
12                '../ui/base/dragdrop/gtk_dnd_util.cc',
13                '../ui/base/dragdrop/gtk_dnd_util.h',
14 @@ -283,7 +283,7 @@
15          },
16        ],
17        'conditions': [
18 -        ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
19 +        ['OS=="linux" or OS=="dragonfly" or OS=="freebsd" or OS=="netbsd" or OS=="openbsd"', {
20            'dependencies': [
21              # font_gtk.cc uses fontconfig.
22              # TODO(evanm): I think this is wrong; it should just use GTK.
23 @@ -335,7 +335,22 @@
24              ['exclude', '^win/*'],
25            ],
26          }],
27 -        ['OS=="linux"', {
28 +        ['OS=="dragonfly" or OS=="freebsd" or OS=="netbsd" or OS=="openbsd"', {
29 +          'sources!': [
30 +            'surface/transport_dib_linux.cc',
31 +          ],
32 +        }],
33 +        ['OS=="freebsd" or OS=="dragonfly"', {
34 +          'sources': [
35 +            'surface/transport_dib_freebsd.cc',
36 +          ],
37 +        }],
38 +        ['OS=="openbsd" or OS=="netbsd"', {
39 +          'sources': [
40 +            'surface/transport_dib_openbsd.cc',
41 +          ],
42 +        }],
43 +        ['OS=="linux" or OS=="dragonfly" or OS=="freebsd" or OS=="netbsd" or OS=="openbsd"', {
44            'sources': [
45              'gfx/gl/gl_context_egl.cc',
46              'gfx/gl/gl_context_egl.h',
47 @@ -363,11 +378,17 @@
48              'link_settings': {
49                'libraries': [
50                  '-lX11',
51 -                '-ldl',
52                ],
53              },
54            },
55          }],
56 +        ['OS=="linux"', {
57 +          'link_settings': {
58 +            'libraries': [
59 +              '-ldl',
60 +            ],
61 +          },
62 +        }],
63          ['OS=="mac"', {
64            'link_settings': {
65              'libraries': [