]> git.pld-linux.org Git - packages/chromium-browser.git/blob - system-libxnvctrl.patch
enable tcmalloc
[packages/chromium-browser.git] / system-libxnvctrl.patch
1 --- chromium-browser-24.0.1312.45/src/third_party/libXNVCtrl/libXNVCtrl.gyp~    2013-01-04 00:45:32.000000000 +0200
2 +++ chromium-browser-24.0.1312.45/src/third_party/libXNVCtrl/libXNVCtrl.gyp     2013-01-04 00:45:35.620067292 +0200
3 @@ -3,16 +3,54 @@
4  # found in the LICENSE file.
5  
6  {
7 -  'targets': [
8 -    {
9 -      'target_name': 'libXNVCtrl',
10 -      'type': 'static_library',
11 -      'sources': [
12 -        'NVCtrl.c',
13 -        'NVCtrl.h',
14 -        'NVCtrlLib.h',
15 -        'nv_control.h',
16 +  'variables': {
17 +    'use_system_libxnvctrl%': 0,
18 +  },
19 +  'conditions': [
20 +    ['use_system_libxnvctrl==0', {
21 +      'targets': [
22 +        {
23 +          'target_name': 'libXNVCtrl',
24 +          'type': 'static_library',
25 +          'sources': [
26 +            'NVCtrl.c',
27 +            'NVCtrl.h',
28 +            'NVCtrlLib.h',
29 +            'nv_control.h',
30 +          ],
31 +        },
32        ],
33 -    },
34 -  ],
35 +    }, { # use_system_libxnvctrl==1
36 +      'conditions': [
37 +        ['sysroot!=""', {
38 +          'variables': {
39 +            'pkg-config': '../../build/linux/pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
40 +          },
41 +        }, {
42 +          'variables': {
43 +            'pkg-config': 'pkg-config'
44 +          },
45 +        }],
46 +      ],
47 +      'targets': [
48 +        {
49 +          'target_name': 'libXNVCtrl',
50 +          'type': 'none',
51 +          'direct_dependent_settings': {
52 +            'cflags': [
53 +                '<!@(<(pkg-config) --cflags libXNVCtrl)',
54 +            ],
55 +          },
56 +          'link_settings': {
57 +            'ldflags': [
58 +              '<!@(<(pkg-config) --libs-only-L --libs-only-other libXNVCtrl)',
59 +            ],
60 +            'libraries': [
61 +              '<!@(<(pkg-config) --libs-only-l libXNVCtrl)',
62 +            ],
63 +          },
64 +        }
65 +      ],
66 +    }],
67 +  ]
68  }
This page took 0.025584 seconds and 3 git commands to generate.