File: binding.gyp

package info (click to toggle)
golang-github-tdewolff-minify 2.20.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 39,388 kB
  • sloc: javascript: 394,644; xml: 25,649; ansic: 253; makefile: 108; python: 108; sh: 47
file content (38 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download | duplicates (2)
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
{
    "targets": [{
        "target_name": "minify",
        "product_extension": "node",
        "type": "<(library)",
        "cflags": ["-Wall"],
        "ldflags": ["-s"],
        "sources": ["minify.c"],
        "libraries": ["../minify.a"],
        "conditions": [
            ['OS=="mac"', {
                # node-gyp 2.x doesn't add this anymore
                # https://github.com/TooTallNate/node-gyp/pull/612
                "xcode_settings": {
                    "CLANG_CXX_LANGUAGE_STANDARD": "c++14",
                    "OTHER_LDFLAGS": ["-undefined dynamic_lookup"],
                },
            }],
            ['OS=="win"', {
                "actions": [{
                    "action_name": "build_go",
                    "message": "Building Go library...",
                    "inputs": ["minify.go", "minify.c"],
                    "outputs": ["minify.a"],
                    "action": ["../compile.bat"]
                }],
            }, {
                "actions": [{
                    "action_name": "build_go",
                    "message": "Building Go library...",
                    "inputs": ["minify.go", "minify.c"],
                    "outputs": ["minify.a"],
                    "action": ["make", "compile"]
                }],
            }],
        ],
    }],
}