diff options
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/config.cmake | 132 | ||||
-rw-r--r-- | platform/macos/core-files.json | 37 | ||||
-rw-r--r-- | platform/macos/sdk-files.json | 217 |
3 files changed, 0 insertions, 386 deletions
diff --git a/platform/macos/config.cmake b/platform/macos/config.cmake deleted file mode 100644 index 28c3610634..0000000000 --- a/platform/macos/config.cmake +++ /dev/null @@ -1,132 +0,0 @@ -include(cmake/loop-darwin.cmake) - -macro(mbgl_platform_core) - target_sources_from_file(mbgl-core PRIVATE platform/macos/core-files.json) - - if(WITH_EGL) - target_sources(mbgl-core - PRIVATE platform/linux/src/headless_backend_egl.cpp - ) - target_add_mason_package(mbgl-core PUBLIC swiftshader) - else() - target_sources(mbgl-core - PRIVATE platform/darwin/src/headless_backend_cgl.mm - ) - target_link_libraries(mbgl-core - PUBLIC "-framework OpenGL" - ) - endif() - - target_compile_options(mbgl-core - PRIVATE -fobjc-arc - ) - - target_include_directories(mbgl-core - PUBLIC platform/darwin/include - PUBLIC platform/default/include - ) - - target_link_libraries(mbgl-core - PUBLIC "-lz" - PUBLIC "-framework Foundation" - PUBLIC "-framework CoreText" - PUBLIC "-framework CoreGraphics" - PUBLIC "-framework ImageIO" - PUBLIC "-framework CoreServices" - PUBLIC "-framework SystemConfiguration" - ) -endmacro() - - -macro(mbgl_filesource) - # Modify platform/darwin/filesource-files.json to change the source files for this target. - target_sources_from_file(mbgl-filesource PRIVATE platform/darwin/filesource-files.json) - - target_compile_options(mbgl-filesource - PRIVATE -fobjc-arc - ) - - target_link_libraries(mbgl-filesource - PUBLIC "-lsqlite3" - PUBLIC "-framework Foundation" - ) -endmacro() - - -macro(mbgl_platform_glfw) - target_link_libraries(mbgl-glfw - PRIVATE mbgl-filesource - PRIVATE mbgl-loop-darwin - ) -endmacro() - - -macro(mbgl_platform_render) - target_link_libraries(mbgl-render - PRIVATE mbgl-filesource - PRIVATE mbgl-loop-darwin - ) -endmacro() - - -macro(mbgl_platform_offline) - target_sources(mbgl-offline - PRIVATE platform/default/src/mbgl/layermanager/layer_manager.cpp - ) - - target_link_libraries(mbgl-offline - PRIVATE mbgl-filesource - PRIVATE mbgl-loop-darwin - ) -endmacro() - - -macro(mbgl_platform_test) - target_sources(mbgl-test - PRIVATE platform/default/src/mbgl/layermanager/layer_manager.cpp - PRIVATE platform/default/src/mbgl/test/main.cpp - ) - - target_include_directories(mbgl-test - PRIVATE platform/macos - ) - - set_source_files_properties( - platform/default/src/mbgl/test/main.cpp - PROPERTIES - COMPILE_FLAGS -DWORK_DIRECTORY="${CMAKE_SOURCE_DIR}" - ) - - target_link_libraries(mbgl-test - PRIVATE mbgl-filesource - PRIVATE mbgl-loop-darwin - ) -endmacro() - -macro(mbgl_platform_benchmark) - target_sources(mbgl-benchmark - PRIVATE platform/default/src/mbgl/layermanager/layer_manager.cpp - PRIVATE platform/default/src/mbgl/benchmark/main.cpp - ) - - set_source_files_properties( - platform/default/src/mbgl/benchmark/main.cpp - PROPERTIES - COMPILE_FLAGS -DWORK_DIRECTORY="${CMAKE_SOURCE_DIR}" - ) - - target_link_libraries(mbgl-benchmark - PRIVATE mbgl-filesource - PRIVATE mbgl-loop-darwin - ) -endmacro() - -macro(mbgl_platform_node) - target_sources(mbgl-core - PRIVATE platform/default/src/mbgl/layermanager/layer_manager.cpp - ) - target_link_libraries(mbgl-node INTERFACE - -exported_symbols_list ${CMAKE_SOURCE_DIR}/platform/node/symbol-list - -dead_strip - ) -endmacro() diff --git a/platform/macos/core-files.json b/platform/macos/core-files.json deleted file mode 100644 index 9472721e8b..0000000000 --- a/platform/macos/core-files.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "//": "This file can be edited manually and is the canonical source.", - "sources": [ - "platform/darwin/src/collator.mm", - "platform/darwin/src/gl_functions.cpp", - "platform/darwin/src/image.mm", - "platform/darwin/src/local_glyph_rasterizer.mm", - "platform/darwin/src/logging_nslog.mm", - "platform/darwin/src/nsthread.mm", - "platform/darwin/src/number_format.mm", - "platform/darwin/src/reachability.m", - "platform/darwin/src/string_nsstring.mm", - "platform/default/src/mbgl/gfx/headless_backend.cpp", - "platform/default/src/mbgl/gfx/headless_frontend.cpp", - "platform/default/src/mbgl/gl/headless_backend.cpp", - "platform/default/src/mbgl/map/map_snapshotter.cpp", - "platform/default/src/mbgl/text/bidi.cpp", - "platform/default/src/mbgl/util/compression.cpp", - "platform/default/src/mbgl/util/monotonic_timer.cpp", - "platform/default/src/mbgl/util/png_writer.cpp", - "platform/default/src/mbgl/util/thread_local.cpp", - "platform/default/src/mbgl/util/utf.cpp", - "platform/darwin/src/native_apple_interface.m" - ], - "public_headers": { - "mbgl/storage/reachability.h": "platform/darwin/include/mbgl/storage/reachability.h", - "mbgl/interface/native_apple_interface.h": "platform/darwin/include/mbgl/interface/native_apple_interface.h", - "mbgl/util/image+MGLAdditions.hpp": "platform/darwin/include/mbgl/util/image+MGLAdditions.hpp", - "mbgl/gfx/headless_backend.hpp": "platform/default/include/mbgl/gfx/headless_backend.hpp", - "mbgl/gfx/headless_frontend.hpp": "platform/default/include/mbgl/gfx/headless_frontend.hpp", - "mbgl/gl/headless_backend.hpp": "platform/default/include/mbgl/gl/headless_backend.hpp", - "mbgl/map/map_snapshotter.hpp": "platform/default/include/mbgl/map/map_snapshotter.hpp" - }, - "private_headers": { - "CFHandle.hpp": "platform/darwin/src/CFHandle.hpp" - } -} diff --git a/platform/macos/sdk-files.json b/platform/macos/sdk-files.json deleted file mode 100644 index 65b946cd06..0000000000 --- a/platform/macos/sdk-files.json +++ /dev/null @@ -1,217 +0,0 @@ -{ - "//": "This file is generated. Do not edit. Regenerate it with scripts/generate-file-lists.js", - "sources": [ - "platform/darwin/src/MGLImageSource.mm", - "platform/darwin/src/MGLMapSnapshotter.mm", - "platform/macos/src/NSImage+MGLAdditions.mm", - "platform/darwin/src/MGLHillshadeStyleLayer.mm", - "platform/darwin/src/MGLPointAnnotation.mm", - "platform/darwin/src/MGLSDKMetricsManager.m", - "platform/darwin/src/NSBundle+MGLAdditions.m", - "platform/macos/src/MGLMapView.mm", - "platform/macos/src/MGLMapView+OpenGL.mm", - "platform/darwin/src/NSArray+MGLAdditions.mm", - "platform/darwin/src/MGLOfflinePack.mm", - "platform/darwin/src/NSDate+MGLAdditions.mm", - "platform/darwin/src/MGLLoggingConfiguration.mm", - "platform/darwin/src/MGLNetworkConfiguration.m", - "platform/darwin/src/MGLLight.mm", - "platform/macos/src/MGLAnnotationImage.m", - "platform/darwin/src/NSExpression+MGLAdditions.mm", - "platform/darwin/src/MGLFeature.mm", - "platform/darwin/src/MGLOpenGLStyleLayer.mm", - "platform/macos/src/NSColor+MGLAdditions.mm", - "platform/macos/src/MGLAttributionButton.mm", - "platform/darwin/src/MGLFillStyleLayer.mm", - "platform/darwin/src/MGLShape.mm", - "platform/darwin/src/MGLRasterTileSource.mm", - "platform/darwin/src/MGLFoundation.mm", - "platform/darwin/src/NSString+MGLAdditions.m", - "platform/darwin/src/NSCoder+MGLAdditions.mm", - "platform/darwin/src/MGLStyleLayerManager.mm", - "platform/darwin/src/MGLStyle.mm", - "platform/darwin/src/MGLGeometry.mm", - "platform/darwin/src/MGLHeatmapStyleLayer.mm", - "platform/darwin/src/MGLCircleStyleLayer.mm", - "platform/darwin/src/MGLForegroundStyleLayer.mm", - "platform/darwin/src/NSDictionary+MGLAdditions.mm", - "platform/darwin/src/MGLBackgroundStyleLayer.mm", - "platform/darwin/src/MGLTileSource.mm", - "platform/darwin/src/MGLNetworkIntegrationManager.m", - "platform/macos/src/MGLMapView+IBAdditions.mm", - "platform/darwin/src/NSValue+MGLAdditions.m", - "platform/darwin/src/MGLStyleLayer.mm", - "platform/darwin/src/MGLClockDirectionFormatter.m", - "platform/darwin/src/MGLComputedShapeSource.mm", - "platform/macos/src/MGLOpenGLLayer.mm", - "platform/darwin/src/MGLMultiPoint.mm", - "platform/darwin/src/MGLTypes.m", - "platform/darwin/src/MGLPointCollection.mm", - "platform/darwin/src/MGLCoordinateFormatter.m", - "platform/darwin/src/MGLSource.mm", - "platform/darwin/src/MGLMapCamera.mm", - "platform/darwin/src/MGLVectorStyleLayer.mm", - "platform/darwin/src/MGLAttributedExpression.m", - "platform/darwin/src/NSValue+MGLStyleAttributeAdditions.mm", - "platform/darwin/src/MGLPolygon.mm", - "platform/darwin/src/MGLDistanceFormatter.m", - "platform/macos/src/NSProcessInfo+MGLAdditions.m", - "platform/darwin/src/MGLFillExtrusionStyleLayer.mm", - "platform/darwin/src/MGLOfflineStorage.mm", - "platform/darwin/src/NSURL+MGLAdditions.m", - "platform/darwin/src/NSCompoundPredicate+MGLAdditions.mm", - "platform/darwin/src/MGLTilePyramidOfflineRegion.mm", - "platform/darwin/src/MGLAccountManager.m", - "platform/darwin/src/MGLAttributionInfo.mm", - "platform/darwin/src/MGLPolyline.mm", - "platform/darwin/src/MGLShapeSource.mm", - "platform/macos/src/MGLCompassCell.m", - "platform/darwin/src/MGLRasterStyleLayer.mm", - "platform/darwin/src/MGLShapeCollection.mm", - "platform/darwin/src/MGLShapeOfflineRegion.mm", - "platform/darwin/src/NSComparisonPredicate+MGLAdditions.mm", - "platform/macos/src/MGLMapView+Impl.mm", - "platform/darwin/src/MGLCompassDirectionFormatter.m", - "platform/darwin/src/MGLRasterDEMSource.mm", - "platform/darwin/src/MGLLineStyleLayer.mm", - "platform/darwin/src/MGLSymbolStyleLayer.mm", - "platform/darwin/src/NSPredicate+MGLAdditions.mm", - "platform/darwin/src/MGLVectorTileSource.mm", - "platform/darwin/src/MGLStyleValue.mm", - "platform/darwin/src/MGLRendererConfiguration.mm" - ], - "public_headers": { - "MGLFoundation.h": "platform/darwin/src/MGLFoundation.h", - "MGLComputedShapeSource.h": "platform/darwin/src/MGLComputedShapeSource.h", - "MGLRasterStyleLayer.h": "platform/darwin/src/MGLRasterStyleLayer.h", - "NSExpression+MGLAdditions.h": "platform/darwin/src/NSExpression+MGLAdditions.h", - "MGLAttributedExpression.h": "platform/darwin/src/MGLAttributedExpression.h", - "MGLAnnotation.h": "platform/darwin/src/MGLAnnotation.h", - "MGLHillshadeStyleLayer.h": "platform/darwin/src/MGLHillshadeStyleLayer.h", - "MGLMapSnapshotter.h": "platform/darwin/src/MGLMapSnapshotter.h", - "MGLCircleStyleLayer.h": "platform/darwin/src/MGLCircleStyleLayer.h", - "MGLAttributionInfo.h": "platform/darwin/src/MGLAttributionInfo.h", - "MGLFillExtrusionStyleLayer.h": "platform/darwin/src/MGLFillExtrusionStyleLayer.h", - "MGLAnnotationImage.h": "platform/macos/src/MGLAnnotationImage.h", - "MGLMapView.h": "platform/macos/src/MGLMapView.h", - "MGLOfflineStorage.h": "platform/darwin/src/MGLOfflineStorage.h", - "MGLStyleValue.h": "platform/darwin/src/MGLStyleValue.h", - "MGLSDKMetricsManager.h": "platform/darwin/src/MGLSDKMetricsManager.h", - "MGLMultiPoint.h": "platform/darwin/src/MGLMultiPoint.h", - "MGLShapeCollection.h": "platform/darwin/src/MGLShapeCollection.h", - "MGLPointAnnotation.h": "platform/darwin/src/MGLPointAnnotation.h", - "MGLOfflinePack.h": "platform/darwin/src/MGLOfflinePack.h", - "MGLLoggingConfiguration.h": "platform/darwin/src/MGLLoggingConfiguration.h", - "NSPredicate+MGLAdditions.h": "platform/darwin/src/NSPredicate+MGLAdditions.h", - "MGLVectorTileSource.h": "platform/darwin/src/MGLVectorTileSource.h", - "MGLRasterDEMSource.h": "platform/darwin/src/MGLRasterDEMSource.h", - "MGLTypes.h": "platform/darwin/src/MGLTypes.h", - "MGLBackgroundStyleLayer.h": "platform/darwin/src/MGLBackgroundStyleLayer.h", - "MGLPointCollection.h": "platform/darwin/src/MGLPointCollection.h", - "MGLShape.h": "platform/darwin/src/MGLShape.h", - "MGLOpenGLStyleLayer.h": "platform/darwin/src/MGLOpenGLStyleLayer.h", - "MGLSource.h": "platform/darwin/src/MGLSource.h", - "MGLPolygon.h": "platform/darwin/src/MGLPolygon.h", - "MGLClockDirectionFormatter.h": "platform/darwin/src/MGLClockDirectionFormatter.h", - "MGLFillStyleLayer.h": "platform/darwin/src/MGLFillStyleLayer.h", - "MGLCoordinateFormatter.h": "platform/darwin/src/MGLCoordinateFormatter.h", - "MGLShapeOfflineRegion.h": "platform/darwin/src/MGLShapeOfflineRegion.h", - "MGLNetworkConfiguration.h": "platform/darwin/src/MGLNetworkConfiguration.h", - "MGLOverlay.h": "platform/darwin/src/MGLOverlay.h", - "MGLPolyline.h": "platform/darwin/src/MGLPolyline.h", - "MGLLineStyleLayer.h": "platform/darwin/src/MGLLineStyleLayer.h", - "MGLDistanceFormatter.h": "platform/darwin/src/MGLDistanceFormatter.h", - "MGLHeatmapStyleLayer.h": "platform/darwin/src/MGLHeatmapStyleLayer.h", - "MGLOfflineRegion.h": "platform/darwin/src/MGLOfflineRegion.h", - "MGLTilePyramidOfflineRegion.h": "platform/darwin/src/MGLTilePyramidOfflineRegion.h", - "NSValue+MGLAdditions.h": "platform/darwin/src/NSValue+MGLAdditions.h", - "MGLMapViewDelegate.h": "platform/macos/src/MGLMapViewDelegate.h", - "MGLCluster.h": "platform/darwin/src/MGLCluster.h", - "MGLFeature.h": "platform/darwin/src/MGLFeature.h", - "MGLStyleLayer.h": "platform/darwin/src/MGLStyleLayer.h", - "MGLGeometry.h": "platform/darwin/src/MGLGeometry.h", - "MGLAccountManager.h": "platform/darwin/src/MGLAccountManager.h", - "MGLTileSource.h": "platform/darwin/src/MGLTileSource.h", - "MGLForegroundStyleLayer.h": "platform/darwin/src/MGLForegroundStyleLayer.h", - "MGLMapCamera.h": "platform/darwin/src/MGLMapCamera.h", - "MGLImageSource.h": "platform/darwin/src/MGLImageSource.h", - "MGLSymbolStyleLayer.h": "platform/darwin/src/MGLSymbolStyleLayer.h", - "MGLMapView+IBAdditions.h": "platform/macos/src/MGLMapView+IBAdditions.h", - "MGLCompassDirectionFormatter.h": "platform/darwin/src/MGLCompassDirectionFormatter.h", - "MGLRasterTileSource.h": "platform/darwin/src/MGLRasterTileSource.h", - "MGLVectorStyleLayer.h": "platform/darwin/src/MGLVectorStyleLayer.h", - "MGLShapeSource.h": "platform/darwin/src/MGLShapeSource.h", - "MGLLight.h": "platform/darwin/src/MGLLight.h", - "MGLStyle.h": "platform/darwin/src/MGLStyle.h", - "Mapbox/Mapbox.h": "platform/macos/src/Mapbox.h" - }, - "private_headers": { - "MGLOfflineRegion_Private.h": "platform/darwin/src/MGLOfflineRegion_Private.h", - "MGLRasterTileSource_Private.h": "platform/darwin/src/MGLRasterTileSource_Private.h", - "MGLBackgroundStyleLayer_Private.h": "platform/darwin/src/MGLBackgroundStyleLayer_Private.h", - "MGLConversion.h": "platform/darwin/src/MGLConversion.h", - "MGLFillExtrusionStyleLayer_Private.h": "platform/darwin/src/MGLFillExtrusionStyleLayer_Private.h", - "MGLStyleValue_Private.h": "platform/darwin/src/MGLStyleValue_Private.h", - "MGLMapView_Private.h": "platform/macos/src/MGLMapView_Private.h", - "MGLRasterStyleLayer_Private.h": "platform/darwin/src/MGLRasterStyleLayer_Private.h", - "MGLHeatmapStyleLayer_Private.h": "platform/darwin/src/MGLHeatmapStyleLayer_Private.h", - "MGLAttributionButton.h": "platform/macos/src/MGLAttributionButton.h", - "NSArray+MGLAdditions.h": "platform/darwin/src/NSArray+MGLAdditions.h", - "NSComparisonPredicate+MGLAdditions.h": "platform/darwin/src/NSComparisonPredicate+MGLAdditions.h", - "MGLStyleLayerManager.h": "platform/darwin/src/MGLStyleLayerManager.h", - "MGLStyleLayer_Private.h": "platform/darwin/src/MGLStyleLayer_Private.h", - "MGLShapeOfflineRegion_Private.h": "platform/darwin/src/MGLShapeOfflineRegion_Private.h", - "MGLAttributionInfo_Private.h": "platform/darwin/src/MGLAttributionInfo_Private.h", - "NSBundle+MGLAdditions.h": "platform/darwin/src/NSBundle+MGLAdditions.h", - "NSURL+MGLAdditions.h": "platform/darwin/src/NSURL+MGLAdditions.h", - "MGLAnnotationImage_Private.h": "platform/macos/src/MGLAnnotationImage_Private.h", - "MGLLoggingConfiguration_Private.h": "platform/darwin/src/MGLLoggingConfiguration_Private.h", - "NSPredicate+MGLPrivateAdditions.h": "platform/darwin/src/NSPredicate+MGLPrivateAdditions.h", - "NSString+MGLAdditions.h": "platform/darwin/src/NSString+MGLAdditions.h", - "MGLCircleStyleLayer_Private.h": "platform/darwin/src/MGLCircleStyleLayer_Private.h", - "MGLVectorTileSource_Private.h": "platform/darwin/src/MGLVectorTileSource_Private.h", - "MGLGeometry_Private.h": "platform/darwin/src/MGLGeometry_Private.h", - "MGLAccountManager_Private.h": "platform/darwin/src/MGLAccountManager_Private.h", - "MGLNetworkIntegrationManager.h": "platform/darwin/src/MGLNetworkIntegrationManager.h", - "MGLComputedShapeSource_Private.h": "platform/darwin/src/MGLComputedShapeSource_Private.h", - "NSException+MGLAdditions.h": "platform/darwin/src/NSException+MGLAdditions.h", - "MGLTileSource_Private.h": "platform/darwin/src/MGLTileSource_Private.h", - "NSExpression+MGLPrivateAdditions.h": "platform/darwin/src/NSExpression+MGLPrivateAdditions.h", - "MGLSDKMetricsManager_Private.h": "platform/darwin/src/MGLSDKMetricsManager_Private.h", - "MGLNetworkConfiguration_Private.h": "platform/darwin/src/MGLNetworkConfiguration_Private.h", - "NSCompoundPredicate+MGLAdditions.h": "platform/darwin/src/NSCompoundPredicate+MGLAdditions.h", - "MGLSymbolStyleLayer_Private.h": "platform/darwin/src/MGLSymbolStyleLayer_Private.h", - "MGLMapView+OpenGL.h": "platform/macos/src/MGLMapView+OpenGL.h", - "NSProcessInfo+MGLAdditions.h": "platform/macos/src/NSProcessInfo+MGLAdditions.h", - "MGLRendererFrontend.h": "platform/darwin/src/MGLRendererFrontend.h", - "NSValue+MGLStyleAttributeAdditions.h": "platform/darwin/src/NSValue+MGLStyleAttributeAdditions.h", - "NSImage+MGLAdditions.h": "platform/macos/src/NSImage+MGLAdditions.h", - "MGLLight_Private.h": "platform/darwin/src/MGLLight_Private.h", - "MGLMapView+Impl.h": "platform/macos/src/MGLMapView+Impl.h", - "NSCoder+MGLAdditions.h": "platform/darwin/src/NSCoder+MGLAdditions.h", - "MGLOfflineStorage_Private.h": "platform/darwin/src/MGLOfflineStorage_Private.h", - "MGLLineStyleLayer_Private.h": "platform/darwin/src/MGLLineStyleLayer_Private.h", - "MGLHillshadeStyleLayer_Private.h": "platform/darwin/src/MGLHillshadeStyleLayer_Private.h", - "MGLValueEvaluator.h": "platform/darwin/src/MGLValueEvaluator.h", - "MGLOfflinePack_Private.h": "platform/darwin/src/MGLOfflinePack_Private.h", - "MGLFoundation_Private.h": "platform/darwin/src/MGLFoundation_Private.h", - "MGLCompassCell.h": "platform/macos/src/MGLCompassCell.h", - "MGLShapeSource_Private.h": "platform/darwin/src/MGLShapeSource_Private.h", - "MGLStyle_Private.h": "platform/darwin/src/MGLStyle_Private.h", - "MGLSource_Private.h": "platform/darwin/src/MGLSource_Private.h", - "MGLOpenGLLayer.h": "platform/macos/src/MGLOpenGLLayer.h", - "MGLPointCollection_Private.h": "platform/darwin/src/MGLPointCollection_Private.h", - "NSDate+MGLAdditions.h": "platform/darwin/src/NSDate+MGLAdditions.h", - "NSColor+MGLAdditions.h": "platform/macos/src/NSColor+MGLAdditions.h", - "MGLMultiPoint_Private.h": "platform/darwin/src/MGLMultiPoint_Private.h", - "MGLOpenGLStyleLayer_Private.h": "platform/darwin/src/MGLOpenGLStyleLayer_Private.h", - "MGLPolygon_Private.h": "platform/darwin/src/MGLPolygon_Private.h", - "MGLShape_Private.h": "platform/darwin/src/MGLShape_Private.h", - "MGLTilePyramidOfflineRegion_Private.h": "platform/darwin/src/MGLTilePyramidOfflineRegion_Private.h", - "MGLFeature_Private.h": "platform/darwin/src/MGLFeature_Private.h", - "MGLPolyline_Private.h": "platform/darwin/src/MGLPolyline_Private.h", - "MGLFillStyleLayer_Private.h": "platform/darwin/src/MGLFillStyleLayer_Private.h", - "NSDictionary+MGLAdditions.h": "platform/darwin/src/NSDictionary+MGLAdditions.h", - "MGLRendererConfiguration.h": "platform/darwin/src/MGLRendererConfiguration.h" - } -} |