summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-11-20 22:39:52 +0100
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-08-27 14:07:40 -0700
commit1e454642c8bc99698d25105fe0034916e2930fe6 (patch)
tree3d9b60c1366033c97dfe51d4285d6bf3edf992ed /Makefile
parentfd1ed8ce48fc9eaf6793e852381d8c7e648386af (diff)
downloadqtlocation-mapboxgl-1e454642c8bc99698d25105fe0034916e2930fe6.tar.gz
[build] allow WITH_EGL for macOS as well (SwiftShader) and enable EGL for GLFW
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7b967d820b..627eec9354 100644
--- a/Makefile
+++ b/Makefile
@@ -74,7 +74,8 @@ MACOS_XCODEBUILD = xcodebuild \
$(MACOS_PROJ_PATH): $(BUILD_DEPS) $(MACOS_USER_DATA_PATH)/WorkspaceSettings.xcsettings
mkdir -p $(MACOS_OUTPUT_PATH)
- (cd $(MACOS_OUTPUT_PATH) && cmake -G Xcode ../..)
+ (cd $(MACOS_OUTPUT_PATH) && cmake -G Xcode ../.. \
+ -DWITH_EGL=${WITH_EGL})
$(MACOS_USER_DATA_PATH)/WorkspaceSettings.xcsettings: platform/macos/WorkspaceSettings.xcsettings
mkdir -p "$(MACOS_USER_DATA_PATH)"
@@ -174,6 +175,7 @@ $(MACOS_COMPDB_PATH)/Makefile:
mkdir -p $(MACOS_COMPDB_PATH)
(cd $(MACOS_COMPDB_PATH) && cmake ../../../.. \
-DCMAKE_BUILD_TYPE=$(BUILDTYPE) \
+ -DWITH_EGL=${WITH_EGL} \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON)
.PHONY: