summaryrefslogtreecommitdiff
path: root/binding.gyp
blob: 98e0f4e1c3d6bd427a6b51beb71a725209773f08 (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
{
  'includes': [
    'gyp/common.gypi',
  ],
  'targets': [
    { 'target_name': '<(module_name)',
      'dependencies': [
        'gyp/mbgl.gyp:core',
        'gyp/mbgl.gyp:platform-<(platform_lib)',
        'gyp/mbgl.gyp:headless-<(headless_lib)',
      ],

      'include_dirs': [
        '<(node_root_dir)/include/node',
        "<!(node -e \"require('nan')\")",
      ],

      'sources': [
        'platform/node/src/node_mapbox_gl_native.cpp',
        'platform/node/src/node_log.hpp',
        'platform/node/src/node_log.cpp',
        'platform/node/src/node_file_source.hpp',
        'platform/node/src/node_file_source.cpp',
        'platform/node/src/node_map.hpp',
        'platform/node/src/node_map.cpp',
        'platform/node/src/node_request.hpp',
        'platform/node/src/node_request.cpp',
        'platform/node/src/util/async_queue.hpp',
      ],
    },

    { 'target_name': 'action_after_build',
      'type': 'none',
      'dependencies': [ '<(module_name)' ],
      'copies': [
        {
          'files': [ '<(PRODUCT_DIR)/<(module_name).node' ],
          'destination': '<(module_path)'
        }
      ]
    }
  ]
}