aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/testdata/filetags.qbs
blob: 38182e5f15cac6b4f854d0ab5f64cffed3a71159 (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
73
import qbs 1.0

Project {
    FileTagger {
        patterns: "*.cpp"
        fileTags: ["cpp"]
    }

    Product {
        name: "filetagger_project_scope"
        files: ["main.cpp"]
    }

    Product {
        name: "filetagger_product_scope"
        files: ["drawline.asm"]
        FileTagger {
            patterns: "*.asm"
            fileTags: ["asm"]
        }
    }

    Product {
        name: "filetagger_static_pattern"
        files: "Banana"
        FileTagger {
            patterns: "Banana"
            fileTags: ["yellow"]
        }
    }

    Product {
        name: "unknown_file_tag"
        files: "narf.zort"
    }

    Product {
        name: "set_file_tag_via_group"
        Group {
            files: ["main.cpp"]
            fileTags: ["c++"]
        }
    }

    Product {
        name: "override_file_tag_via_group"
        files: "main.cpp"   // gets file tag "cpp" through the FileTagger
        Group {
            files: product.files
            fileTags: ["c++"]
        }
    }

    Product {
        name: "add_file_tag_via_group"
        files: "main.cpp"
        Group {
            overrideTags: false
            files: "main.cpp"
            fileTags: ["zzz"]
        }
    }

    Product {
        name: "add_file_tag_via_group_and_file_ref"
        files: "main.cpp"
        Group {
            overrideTags: false
            files: product.files
            fileTags: ["zzz"]
        }
    }
}