1
2!if "$(BUILD_INTROSPECTION)" == "TRUE"
3# Create the file list for introspection (to avoid the dreaded command-line-too-long problem on Windows)
4$(CFG)\$(PLAT)\hb_list: $(HB_ACTUAL_HEADERS) $(HB_ACTUAL_SOURCES) $(HB_GOBJECT_ENUM_GENERATED_SOURCES) $(HB_GOBJECT_ACTUAL_SOURCES)
5	@for %f in ($(HB_ACTUAL_HEADERS) $(HB_ACTUAL_SOURCES) $(HB_GOBJECT_ENUM_GENERATED_SOURCES) $(HB_GOBJECT_ACTUAL_SOURCES)) do @echo %f >> $@
6
7$(CFG)\$(PLAT)\HarfBuzz-0.0.gir: $(CFG)\$(PLAT)\harfbuzz-gobject.lib $(CFG)\$(PLAT)\hb_list
8	@set LIB=$(CFG)\$(PLAT);$(PREFIX)\lib;$(LIB)
9	@set PATH=$(CFG)\$(PLAT);$(PREFIX)\bin;$(PATH)
10	@-echo Generating $@...
11	$(PYTHON) $(G_IR_SCANNER)	\
12	--verbose -no-libtool	\
13	-I..\src -n hb --identifier-prefix=hb_ --warn-all	\
14	--namespace=HarfBuzz	\
15	--nsversion=0.0	\
16	--include=GObject-2.0	\
17	--library=harfbuzz-gobject	\
18	--library=harfbuzz	\
19	--add-include-path=$(G_IR_INCLUDEDIR)	\
20	--pkg-export=harfbuzz	\
21	--cflags-begin	\
22	$(CFLAGS) $(HB_DEFINES) $(HB_CFLAGS)	\
23	-DHB_H \
24	-DHB_H_IN \
25	-DHB_OT_H \
26	-DHB_OT_H_IN \
27	-DHB_GOBJECT_H \
28	-DHB_GOBJECT_H_IN \
29	--cflags-end	\
30	--filelist=$(CFG)\$(PLAT)\hb_list	\
31	-o $@
32
33$(CFG)\$(PLAT)\HarfBuzz-0.0.typelib: $(CFG)\$(PLAT)\HarfBuzz-0.0.gir
34	@copy $*.gir $(@B).gir
35	$(PREFIX)\bin\g-ir-compiler	\
36	--includedir=$(CFG)\$(PLAT) --debug --verbose	\
37	$(@B).gir	\
38	-o $@
39	@del $(@B).gir
40!else
41!error $(ERROR_MSG)
42!endif
43