This file is indexed.

/usr/share/bakefile/presets/wx_xrc.bkl is in wx-common 3.0.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
<?xml version="1.0" ?>

<!--

Bakefile XRC support; included by wx.bkl, do not include directly.

Usage:

<exe id="myapp" template="wxgui,simple">
    ...
    <sources>...</sources>
    ...
    <xrc-file>myapp.xrc</xrc-file>
    <xrc-file>file2.xrc</xrc-file>
</exe>

Then in application code, you have to call initialization for every XRC
file:

    InitXMLResource_myapp();
    InitXMLResource_file2();

-->

<makefile>

    <!-- XRC section -->
    <option name="WXRC" category="path">
        <description>Path to find the wxrc executable.</description>
        <default-value>wxrc</default-value>
    </option>


    <define-tag name="xrc-file" rules="exe,dll,lib">
        <set var="_xrc_file">$(value)</set>
        <set var="_xrc_cpp">$(value.replace('.xrc', '_xrc.cpp'))</set>
        <set var="_xrc_base">$(value[value.rfind('/')+1:value.rfind('.')])</set>
        <set var="_wxrc_options">-c -n InitXMLResource_$(_xrc_base)</set>

        <sources>$(_xrc_cpp)</sources>
        <if cond="FORMAT not in ['msvc6prj','msvs2003prj','msvs2005prj']">
            <clean-files>$(_xrc_cpp)</clean-files>
            <add-target target="$(_xrc_cpp)" type="action"/>
            <modify-target target="$(_xrc_cpp)">
                <set var="_xrc">$(_xrc_file)</set>
                <depends-on-file>$(SRCDIR)/$(_xrc)</depends-on-file>
                <command>
                    $(WXRC) $(_wxrc_options) -o $(_xrc_cpp) $(_xrc)
                </command>
            </modify-target>
        </if>
        <if cond="FORMAT in ['msvc6prj','msvs2003prj','msvs2005prj']">
            <sources>$(_xrc_file)</sources>
            <!--
                A hack to add XRC compilation step to MSVC projects.

                NB: it's important to use backslashes and not slashes here.
             -->
             <set var="_custom_build_files" append="1">$(_xrc_file.replace('/','\\'))</set>
            <set var="_custom_build_$(_xrc_file.replace('/','_').replace('.','_'))">
Compiling XRC resources: $(_xrc_file)...
InputPath=$(_xrc_file)

"$(_xrc_cpp.replace('/','\\'))" : "$(DOLLAR)(INTDIR)"
$(TAB)$(WXRC) $(_wxrc_options) -o $(_xrc_cpp) $(_xrc_file)
            </set>
        </if>

    </define-tag>

</makefile>