1# NMake Makefile portion for code generation and
2# intermediate build directory creation
3# Items in here should not need to be edited unless
4# one is maintaining the NMake build files.
5
6# Copy the pre-defined config.h.win32
7config.h: config.h.win32
8	@-copy $@.win32 $@
9
10# Generate the enumeration sources and headers
11# sed is not normally available on Windows, but since
12# we are already using PERL, use PERL one-liners.
13!if "$(GOBJECT)" == "1"
14$(HB_GOBJECT_ENUM_GENERATED_SOURCES): ..\src\hb-gobject-enums.h.tmpl ..\src\hb-gobject-enums.cc.tmpl $(HB_ACTUAL_HEADERS)
15	$(PERL) $(PREFIX)\bin\glib-mkenums \
16		--identifier-prefix hb_ --symbol-prefix hb_gobject \
17		--template ..\src\$(@F).tmpl  $(HB_ACTUAL_HEADERS) > $@
18	$(PERL) -p -i.tmp1 -e "s/_t_get_type/_get_type/g" $@
19	$(PERL) -p -i.tmp2 -e "s/_T \(/ (/g" $@
20	@-del $@.tmp1
21	@-del $@.tmp2
22!endif
23
24# Create the build directories
25$(CFG)\$(PLAT)\harfbuzz $(CFG)\$(PLAT)\harfbuzz-gobject $(CFG)\$(PLAT)\util:
26	@-md $@
27