File: binding.gyp

package info (click to toggle)
node-srs 0.4.8%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 376 kB
  • sloc: cpp: 135; makefile: 48; sh: 30; python: 12
file content (85 lines) | stat: -rw-r--r-- 2,096 bytes parent folder | download | duplicates (2)
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
{
  'includes': [ 'common.gypi' ],
  'variables': {
    'runtime_link%':'shared',
    'shared_gdal%':'false',
  },
  'targets': [
    {
      'target_name': 'action_before_build',
      'hard_dependency': 1,
      'type': 'none',
      'actions': [
        {
          'action_name': 'generate_setting',
          'inputs': [
            'gen_settings.py'
          ],
          'outputs': [
            '<(SHARED_INTERMEDIATE_DIR)/srs_settings.js'
          ],
          'action': ['python', 'gen_settings.py', '<@(shared_gdal)', '<(SHARED_INTERMEDIATE_DIR)/srs_settings.js']
        }
      ],
      'copies': [
        {
          'files': [ '<(SHARED_INTERMEDIATE_DIR)/srs_settings.js' ],
          'destination': '<(module_path)'
        }
      ]
    },
    {
      'target_name': 'srs',
      'dependencies': [ 'action_before_build' ],
      'conditions': [
        ['shared_gdal == "false"',
          {
            'dependencies': [
              'deps/osr.gyp:osr'
            ]
          },
          {
            'conditions': [
              ['runtime_link == "static"',
                {
                  'libraries': ['<!@(gdal-config --dep-libs)']
                }
              ],
            ],
            'libraries' : ['<!@(gdal-config --libs)'],
            'cflags_cc' : ['<!@(gdal-config --cflags)'],
            'xcode_settings': {
              'OTHER_CPLUSPLUSFLAGS':[
                '<!@(gdal-config --cflags)'
              ]
            }
          }
        ]
      ],
      'cflags_cc!': ['-fno-exceptions'],
      'xcode_settings': {
        'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
        'OTHER_LDFLAGS':[
          '-Wl,-bind_at_load'
        ]
      },
      'sources': [
        'src/srs.cc'
      ],
      "include_dirs" : [
        "<!(node -e \"require('nan')\")"
      ]
    },
    {
      'target_name': 'action_after_build',
      'type': 'none',
      'dependencies': [ '<(module_name)' ],
      'copies': [
        {
          'files': [ '<(PRODUCT_DIR)/<(module_name).node' ],
          'destination': '<(module_path)'
        }
      ]
    }
  ]
}