move variables to their own file
This commit is contained in:
@@ -1,36 +1,11 @@
|
||||
{
|
||||
'includes': [
|
||||
'./variables.gypi',
|
||||
],
|
||||
'variables': {
|
||||
'install_prefix%': '',
|
||||
'standalone_product_dir':'<!@(pwd)/build',
|
||||
'core_library%': 'mbgl-core',
|
||||
'headless_library%': 'mbgl-headless',
|
||||
},
|
||||
'conditions': [
|
||||
['platform == "osx"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-osx',
|
||||
'storage_library%': 'mbgl-storage-cocoa',
|
||||
},
|
||||
}],
|
||||
['platform == "ios"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-ios',
|
||||
'storage_library%': 'mbgl-storage-cocoa',
|
||||
},
|
||||
}],
|
||||
['platform == "linux"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-linux',
|
||||
'storage_library%': 'mbgl-storage-curl',
|
||||
},
|
||||
}],
|
||||
['platform == "android"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-android',
|
||||
'storage_library%': 'mbgl-storage-curl',
|
||||
},
|
||||
}],
|
||||
],
|
||||
'target_defaults': {
|
||||
'default_configuration': 'Release',
|
||||
'conditions': [
|
||||
|
||||
32
gyp/variables.gypi
Normal file
32
gyp/variables.gypi
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
'variables': {
|
||||
'core_library%': 'mbgl-core',
|
||||
'headless_library%': 'mbgl-headless',
|
||||
},
|
||||
'conditions': [
|
||||
['platform == "osx"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-osx',
|
||||
'storage_library%': 'mbgl-storage-cocoa',
|
||||
},
|
||||
}],
|
||||
['platform == "ios"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-ios',
|
||||
'storage_library%': 'mbgl-storage-cocoa',
|
||||
},
|
||||
}],
|
||||
['platform == "linux"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-linux',
|
||||
'storage_library%': 'mbgl-storage-curl',
|
||||
},
|
||||
}],
|
||||
['platform == "android"', {
|
||||
'variables': {
|
||||
'platform_library%': 'mbgl-android',
|
||||
'storage_library%': 'mbgl-storage-curl',
|
||||
},
|
||||
}],
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user