File: widgets.bkl

package info (click to toggle)
wxpython4.0 4.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 221,752 kB
  • sloc: cpp: 962,555; python: 230,573; ansic: 170,731; makefile: 51,756; sh: 9,342; perl: 1,564; javascript: 584; php: 326; xml: 200
file content (86 lines) | stat: -rw-r--r-- 2,622 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" ?>
<makefile>

    <include file="../../build/bakefiles/common_samples.bkl"/>

    <!--
        The source file using native controls uses Cocoa under OS X, so it must
        be compiled as Objective C++ which means it must have .mm extension.
        But this would make it uncompilable under the other platforms and we
        don't want to have two files with identical contents. Hence this hack:
        we have native.mm which just includes native.cpp under OS X, while
        elsewhere we just compile native.cpp directly.
      -->
    <set var="NATIVE_OBJCPP_SRC">
        <if cond="OUT_OF_TREE_MAKEFILES=='1'">
            <!--
                We can't determine if we're using Cocoa or not at generation
                time, so deal with it in the makefile fragment below.
             -->
        </if>
        <if cond="TOOLKIT=='OSX_COCOA' and WXUNIV=='0'">
            native_wrapper.mm
        </if>
    </set>

    <fragment format="gnu">
widgets_native_wrapper.o: ./native_wrapper.mm ./native.cpp
	$(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(OBJCXXFLAGS) ./native_wrapper.mm

ifeq ($(WX_PORT),osx_cocoa)
WIDGETS_OBJECTS += widgets_native_wrapper.o

widgets: widgets_native_wrapper.o
endif
ifeq ($(WX_PORT),gtk2)
widgets_native.o: CXXFLAGS=$(shell pkg-config --cflags gtk+-2.0)
widgets: LDFLAGS=$(shell pkg-config --libs gtk+-2.0)
endif
ifeq ($(WX_PORT),gtk3)
widgets_native.o: CXXFLAGS=$(shell pkg-config --cflags gtk+-3.0)
widgets: LDFLAGS=$(shell pkg-config --libs gtk+-3.0)
endif
    </fragment>

    <exe id="widgets" template="wx_sample" template_append="wx_append">
        <sources>
            activityindicator.cpp
            bmpcombobox.cpp
            button.cpp
            checkbox.cpp
            choice.cpp
            clrpicker.cpp
            combobox.cpp
            datepick.cpp
            dirctrl.cpp
            dirpicker.cpp
            editlbox.cpp
            filectrl.cpp
            filepicker.cpp
            fontpicker.cpp
            gauge.cpp
            headerctrl.cpp
            hyperlnk.cpp
            itemcontainer.cpp
            listbox.cpp
            $(NATIVE_OBJCPP_SRC)
            native.cpp
            notebook.cpp
            odcombobox.cpp
            radiobox.cpp
            searchctrl.cpp
            slider.cpp
            spinbtn.cpp
            static.cpp
            statbmp.cpp
            textctrl.cpp
            timepick.cpp
            toggle.cpp
            widgets.cpp
        </sources>
        <headers>widgets.h itemcontainer.h</headers>
        <wx-lib>core</wx-lib>
        <wx-lib>base</wx-lib>
    </exe>

</makefile>