summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-04-11 15:13:55 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-04-11 15:13:55 -0400
commitebc9a0a0d7132f4e40cc6b61a04ec62862801215 (patch)
treed79ce37f786341b76c78ed7dbc3ea62c6051d7ba /Makefile
parented657c42d563cd84b4cfd3aa6e13525985674c71 (diff)
downloadqtlocation-mapboxgl-ebc9a0a0d7132f4e40cc6b61a04ec62862801215.tar.gz
add xcode project builds
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 21 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3b264e8532..b47e84c8db 100644
--- a/Makefile
+++ b/Makefile
@@ -33,18 +33,35 @@ linux: config.gypi linux/llmr-app.gyp
deps/run_gyp linux/llmr-app.gyp --depth=. -Goutput_dir=.. --generator-output=./build/linux -f make
make -C build/linux V=$(V) linuxapp
-# Executes the linux binary
+# Executes the Linux binary
run-linux: linux
build/Release/llmr
+##### Xcode projects ###########################################################
+
+# build Mac OS X project for Xcode
+xproj: config.gypi macosx/llmr-app.gyp
+ deps/run_gyp macosx/llmr-app.gyp --depth=. --generator-output=./build -f xcode
+ open ./build/macosx/llmr-app.xcodeproj
+
+# build iOS project for Xcode
+iproj: config.gypi ios/llmr-app.gyp
+ deps/run_gyp ios/llmr-app.gyp --depth=. --generator-output=./build -f xcode
+ open ./build/ios/llmr-app.xcodeproj
+
+# build Linux project for Xcode (Runs on Mac OS X too, but without platform-specific code)
+lproj: config.gypi linux/llmr-app.gyp
+ deps/run_gyp linux/llmr-app.gyp --depth=. --generator-output=./build -f xcode
+ open ./build/linux/llmr-app.xcodeproj
+
##### Maintenace operations ####################################################
clean:
- -rm -rf build/Release
+ -rm -rf ./build/Release
-distclean:
- -rm -rf build
+distclean: clean
+ -rm -rf ./build
.PHONY: llmr test linux