summaryrefslogtreecommitdiffstats
path: root/gtk/module.defs
blob: 55f5d9accb1bc57e9369a2deac8f9452e4c336f6 (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
$(eval $(call import.MODULE.defs,GTK,gtk,LIBHB))
$(eval $(call import.GCC,GTK))

GTK.src/   = $(SRC/)gtk/
GTK.build/ = $(BUILD/)gtk/

GTK.CONFIGURE.stamp = $(GTK.build/).stamp.configure

###############################################################################

GTK.out += $(GTK.CONFIGURE.stamp)

BUILD.out += $(GTK.out)

###############################################################################

ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
GTK.CONFIGURE.extra += --host=$(BUILD.spec) 
ifeq ($(HAS.dlfcn),1)
	GTK.CONFIGURE.extra += --enable-dl
endif
endif

ifeq (0,$(FEATURE.gtk.update.checks))
	GTK.CONFIGURE.extra += --disable-update-checks
endif

###############################################################################
###############################################################################
$(eval $(call import.MODULE.defs,HGTK,hgtk))
$(eval $(call import.GCC,HGTK))

HGTK.GCC.gcc = gcc
HGTK.GCC.args.extra = $(shell pkg-config --cflags glib-2.0)
HGTK.GCC.args.extra += $(shell pkg-config --cflags gdk-pixbuf-2.0)
HGTK.GCC.args.extra += $(shell pkg-config --libs glib-2.0)
HGTK.GCC.args.extra += $(shell pkg-config --libs gdk-pixbuf-2.0)

HGTK.src/ = $(SRC/)gtk/src/
HGTK.build/ = $(BUILD/)gtk/src/

HGTKCOMMON.c = \
	$(HGTK.src/)plist.c \
	$(HGTK.src/)values.c 

CREATE_RES.c = \
	$(HGTK.src/)create_resources.c

CREATE_RES.c.o = $(patsubst $(SRC/)%.c,$(BUILD/)%-native.o,$(CREATE_RES.c))
CREATE_RES.c.o += $(patsubst $(SRC/)%.c,$(BUILD/)%-native.o,$(HGTKCOMMON.c))
CREATE_RES.exe = $(HGTK.build/)create_resources

HGTK.out += $(HGTKCOMMON.c.o)
HGTK.out += $(CREATE_RES.exe)
HGTK.out += $(CREATE_RES.c.o)

BUILD.out += $(HGTK.out)