summaryrefslogtreecommitdiff
path: root/gyp/install.gypi
blob: 4ed32eea144fc603055817b96bce0e954222416e (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
44
45
46
47
48
49
50
{
  'conditions': [
    ['install_prefix != ""', {
      'targets': [
        { 'target_name': 'install',
          'type': 'none',
          'hard_dependency': 1,
          'dependencies': [
            'core',
            'platform-<(platform_lib)',
            'http-<(http_lib)',
            'asset-<(asset_lib)',
            'cache-<(cache_lib)',
            'headless-<(headless_lib)',
            'standalone',
          ],

          'copies': [
            { 'files': [ '<(PRODUCT_DIR)/libmbgl.a' ], 'destination': '<(install_prefix)/lib' },
            { 'files': [ '<(SHARED_INTERMEDIATE_DIR)/include/mbgl/util/version.hpp' ], 'destination': '<(install_prefix)/include/mbgl/util' },
          ],

          'actions': [
            {
              'action_name': 'Copy header files',
              'inputs': [ '../include/mbgl/mbgl.hpp' ],
              'outputs': [ '../include/mbgl/mbgl.hpp' ],
              'action': [ 'cp', '-r', 'include', '<(install_prefix)/' ]
            },

            { 'action_name': 'mbgl-config',
              'inputs': [
                '../utils/mbgl-config/mbgl-config.template.sh',
                '../utils/mbgl-config/build.sh',
              ],
              'outputs': [
                '<(install_prefix)/bin/mbgl-config',
              ],
              'action': [
                './utils/mbgl-config/build.sh',
                '<(install_prefix)',
                '<(PRODUCT_DIR)/libmbgl.a.ldflags',
              ]
            }
          ]
        },
      ],
    }],
  ],
}