summaryrefslogtreecommitdiff
path: root/linux/llmr-app.gyp
blob: a6de3c279979300f46e5e55aa26d50fac7e8031d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
  'includes': [
    '../common.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"
        ]
    }
  ]
}