File: binding.gyp

package info (click to toggle)
node-stringprep 0.8.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 156 kB
  • ctags: 33
  • sloc: cpp: 271; makefile: 42
file content (45 lines) | stat: -rw-r--r-- 1,433 bytes parent folder | download | duplicates (3)
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
{
  'targets': [
    {
      'target_name': 'node_stringprep',
      'cflags_cc!': [ '-fno-exceptions', '-fmax-errors=0' ],
      'include_dirs': [
        '<!(nodejs -e "require(\'nan\')")'
      ],
      'conditions': [
        ['OS=="win"', {
          'conditions': [
            ['"<!@(cmd /C where /Q icu-config || echo n)"!="n"', {
              'sources': [ 'node-stringprep.cc' ],
              'cflags!': [ '-fno-exceptions', '`icu-config --cppflags`' ],
              'libraries': [ '`icu-config --ldflags`' ]
            }]
          ]
        }, { # OS != win
          'conditions': [
            ['"<!@(which icu-config > /dev/null || echo n)"!="n"', {
              'sources': [ 'node-stringprep.cc' ],
              'cflags!': [ '-fno-exceptions', '-fmax-errors=0', '`icu-config --cppflags`' ],
              'libraries': [ '`icu-config --ldflags`' ],
              'conditions': [
                ['OS=="freebsd" or OS=="openbsd"', {
                  'include_dirs': [
                      '/usr/local/include'
                  ],
                }],
                ['OS=="mac"', {
                  'include_dirs': [
                      '/opt/local/include', '/usr/local/include'
                  ],
                  'xcode_settings': {
                    'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
                  }
                }]
              ]
            }]
          ]
        }]
      ]
     }
  ]
}