58 lines
1.9 KiB
Python
58 lines
1.9 KiB
Python
{
|
|
'conditions': [
|
|
['install_prefix != ""', {
|
|
'targets': [
|
|
{ 'target_name': 'install',
|
|
'type': 'none',
|
|
'hard_dependency': 1,
|
|
'dependencies': [
|
|
'mbgl-core',
|
|
'mbgl-standalone',
|
|
'mbgl-headless',
|
|
'mbgl-<(platform)',
|
|
],
|
|
'copies': [
|
|
{ 'files': [ '<(standalone_product_dir)/libmbgl.a' ], 'destination': '<(install_prefix)/lib' },
|
|
{ 'files': [ '<(PRODUCT_DIR)/libmbgl-core.a' ], 'destination': '<(install_prefix)/lib' },
|
|
{ 'files': [ '<(PRODUCT_DIR)/libmbgl-headless.a' ], 'destination': '<(install_prefix)/lib' },
|
|
{ 'files': [ '<(PRODUCT_DIR)/libmbgl-<(platform).a' ], 'destination': '<(install_prefix)/lib' },
|
|
{ 'files': [ '../include/mbgl' ], 'destination': '<(install_prefix)/include' }
|
|
],
|
|
'variables': {
|
|
'conditions': [
|
|
['OS == "linux"', {
|
|
'other_ldflags': [
|
|
'<@(glfw3_static_libs)',
|
|
'<@(glfw3_ldflags)',
|
|
]
|
|
}, {
|
|
'other_ldflags': [ ]
|
|
}]
|
|
],
|
|
},
|
|
'actions': [
|
|
{ '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)',
|
|
'<(platform)',
|
|
'<@(sqlite3_ldflags)',
|
|
'<@(curl_ldflags)',
|
|
'<@(png_ldflags)',
|
|
'<@(other_ldflags)'
|
|
]
|
|
}
|
|
]
|
|
},
|
|
]
|
|
}],
|
|
],
|
|
}
|