summaryrefslogtreecommitdiff
path: root/linux/llmr-app.gyp
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 /linux/llmr-app.gyp
parented657c42d563cd84b4cfd3aa6e13525985674c71 (diff)
downloadqtlocation-mapboxgl-ebc9a0a0d7132f4e40cc6b61a04ec62862801215.tar.gz
add xcode project builds
Diffstat (limited to 'linux/llmr-app.gyp')
-rw-r--r--linux/llmr-app.gyp113
1 files changed, 48 insertions, 65 deletions
diff --git a/linux/llmr-app.gyp b/linux/llmr-app.gyp
index a6de3c2799..de455e38ae 100644
--- a/linux/llmr-app.gyp
+++ b/linux/llmr-app.gyp
@@ -1,72 +1,55 @@
{
'includes': [
'../common.gypi',
- '../config.gypi'
+ '../config.gypi',
],
'targets': [
{
- "target_name": "linuxapp",
- "product_name": "llmr",
- "type": "executable",
- "sources": [
- "./main.cpp",
- "./settings.cpp",
- "./settings.hpp",
- "./request.cpp",
- "./request.hpp"
- ],
- 'conditions': [
- ['OS == "mac"', {
- 'product_extension': 'app',
- 'mac_bundle': 1,
- 'mac_bundle_resources': [
- '../macosx/Icon.icns',
- ],
- 'link_settings': {
- 'libraries': [
- '$(SDKROOT)/System/Library/Frameworks/Cocoa.framework',
- '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
- '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
- '$(SDKROOT)/System/Library/Frameworks/CoreVideo.framework',
- ],
- },
- 'xcode_settings': {
- 'ARCHS': [ "x86_64" ],
- 'SDKROOT': 'macosx',
- 'SUPPORTED_PLATFORMS':'macosx',
- 'OTHER_CPLUSPLUSFLAGS':[
- '<@(glfw3_cflags)'
- '<@(curl_cflags)'
- ],
- 'OTHER_LDFLAGS': [
- '-stdlib=libc++',
- '<@(glfw3_libraries)',
- '<@(curl_libraries)',
- ],
- 'SDKROOT': 'macosx',
- 'INFOPLIST_FILE': '../macosx/Info.plist',
- 'CLANG_CXX_LIBRARY': 'libc++',
- 'CLANG_CXX_LANGUAGE_STANDARD':'c++11',
- 'MACOSX_DEPLOYMENT_TARGET':'10.9',
- 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
- 'CLANG_ENABLE_OBJC_ARC': 'YES'
- },
- }, {
- 'link_settings': {
- 'libraries': [
- '<@(glfw3_libraries)',
- '<@(curl_libraries)',
- ],
- },
- 'cflags': [
- '<@(glfw3_cflags)',
- '<@(curl_cflags)'
- ],
- }]
- ],
- "dependencies": [
- "../llmr.gyp:llmr-x86"
- ]
- }
- ]
+ 'target_name': 'linuxapp',
+ 'product_name': 'llmr',
+ 'type': 'executable',
+ 'sources': [
+ './main.cpp',
+ './settings.cpp',
+ './settings.hpp',
+ './request.cpp',
+ './request.hpp',
+ ],
+
+ 'conditions': [
+ ['OS == "mac"',
+
+ # Mac OS X
+ {
+ 'xcode_settings': {
+ 'OTHER_CPLUSPLUSFLAGS':[
+ '<@(glfw3_cflags)',
+ '<@(curl_cflags)',
+ ],
+ 'OTHER_LDFLAGS': [
+ '<@(glfw3_libraries)',
+ '<@(curl_libraries)',
+ ],
+ }
+ },
+
+ # Non-Mac OS X
+ {
+ 'cflags': [
+ '<@(glfw3_cflags)',
+ '<@(curl_cflags)',
+ ],
+ 'link_settings': {
+ 'libraries': [
+ '<@(glfw3_libraries)',
+ '<@(curl_libraries)',
+ ],
+ },
+ }],
+ ],
+ 'dependencies': [
+ '../llmr.gyp:llmr-x86',
+ ],
+ },
+ ],
}