summaryrefslogtreecommitdiff
path: root/android/mapboxgl-app.gyp
blob: 6c6dc72e32a045e6d79df454b95557805334918e (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
51
52
53
54
55
{
  'includes': [
    '../gyp/common.gypi',
  ],
  'targets': [
    {
      'target_name': 'androidapp',
      'product_name': 'mapbox-gl',
      'type': 'shared_library',
      'sources': [
        './cpp/NativeMapView.cpp',
        './cpp/JNI.cpp',
      ],
      'cflags_cc': [
        '-I<(boost_root)/include',
      ],
      'libraries': [
          '<@(openssl_static_libs)',
          '<@(curl_static_libs)',
          '<@(png_static_libs)',
          '<@(sqlite3_static_libs)',
          '<@(uv_static_libs)',
          '<@(nu_static_libs)',
      ],
      'variables': {
        'ldflags': [
          '-llog -landroid -lEGL -lGLESv2 -lstdc++ -latomic '
          '<@(png_ldflags)',
          '<@(sqlite3_ldflags)',
          '<@(openssl_ldflags)',
          '<@(curl_ldflags)',
          '<@(zlib_ldflags)',
        ],
      },
      'conditions': [
        ['OS == "mac"', {
          'xcode_settings': {
            'OTHER_LDFLAGS': [ '<@(ldflags)' ],
          }
        }, {
          'libraries': [ '<@(ldflags)' ],
        }]
      ],
      'dependencies': [
        '../mapboxgl.gyp:mbgl-standalone',
        '../mapboxgl.gyp:mbgl-android',
        '../mapboxgl.gyp:copy_certificate_bundle',
      ],
      'copies': [{
        'files': [ '../styles' ],
        'destination': '<(PRODUCT_DIR)'
      }],
    },
  ],
}