Moved mbgl::util::default_styles to a more appropriate location, where iOS platform code can also find it. Moved -[MGLMapView bundledStyleURLs] (which is now deprecated) and the style switcher in iosapp to default_styles. Added a collection of convenience methods for getting style URLs. It makes little sense to layer an enum atop this, as MapKit does, because MGLMapView styles aren’t limited to this set. A good analogy is UIColor. This also makes for a good entry point for future runtime styling APIs. Introduced independent constants for each default style, because it’s more common to need access to a particular style than to iterate over them. This fact is apparent in the MGLStyle class, which now uses macros and assertions to ensure that it’s kept up-to-date with changes in default_styles. /ref #1462
64 lines
1.6 KiB
Python
64 lines
1.6 KiB
Python
{
|
|
'includes': [
|
|
'../gyp/common.gypi',
|
|
],
|
|
'targets': [
|
|
{ 'target_name': 'osxapp',
|
|
'product_name': 'Mapbox GL',
|
|
'type': 'executable',
|
|
'product_extension': 'app',
|
|
'mac_bundle': 1,
|
|
'mac_bundle_resources': [
|
|
'Icon.icns'
|
|
],
|
|
|
|
'dependencies': [
|
|
'../mbgl.gyp:core',
|
|
'../mbgl.gyp:platform-<(platform_lib)',
|
|
'../mbgl.gyp:http-<(http_lib)',
|
|
'../mbgl.gyp:asset-<(asset_lib)',
|
|
'../mbgl.gyp:cache-<(cache_lib)',
|
|
],
|
|
|
|
'sources': [
|
|
'./main.mm',
|
|
'../platform/darwin/settings_nsuserdefaults.hpp',
|
|
'../platform/darwin/settings_nsuserdefaults.mm',
|
|
'../platform/darwin/reachability.m',
|
|
'../platform/default/glfw_view.hpp',
|
|
'../platform/default/glfw_view.cpp',
|
|
],
|
|
|
|
'variables' : {
|
|
'cflags_cc': [
|
|
'<@(boost_cflags)',
|
|
'<@(glfw_cflags)',
|
|
'<@(variant_cflags)',
|
|
],
|
|
'ldflags': [
|
|
'-framework SystemConfiguration', # For NSUserDefaults and Reachability
|
|
'<@(glfw_ldflags)',
|
|
],
|
|
'libraries': [
|
|
'<@(glfw_static_libs)',
|
|
'<@(boost_libprogram_options_static_libs)'
|
|
],
|
|
},
|
|
|
|
'libraries': [
|
|
'<@(libraries)',
|
|
],
|
|
|
|
'xcode_settings': {
|
|
'SDKROOT': 'macosx',
|
|
'SUPPORTED_PLATFORMS':'macosx',
|
|
'OTHER_CPLUSPLUSFLAGS': [ '<@(cflags_cc)' ],
|
|
'OTHER_LDFLAGS': [ '<@(ldflags)' ],
|
|
'SDKROOT': 'macosx',
|
|
'INFOPLIST_FILE': '../macosx/Info.plist',
|
|
'CLANG_ENABLE_OBJC_ARC': 'YES'
|
|
},
|
|
}
|
|
]
|
|
}
|