Blame win32/generate-msvc.mak
|
Packit Service |
5bcba8 |
# NMake Makefile portion for code generation and
|
|
Packit Service |
5bcba8 |
# intermediate build directory creation
|
|
Packit Service |
5bcba8 |
# Items in here should not need to be edited unless
|
|
Packit Service |
5bcba8 |
# one is maintaining the NMake build files.
|
|
Packit Service |
5bcba8 |
|
|
Packit Service |
5bcba8 |
# Copy the pre-defined config.h.win32
|
|
Packit Service |
5bcba8 |
config.h: config.h.win32
|
|
Packit Service |
5bcba8 |
@-copy $@.win32 $@
|
|
Packit Service |
5bcba8 |
|
|
Packit Service |
5bcba8 |
# Generate the enumeration sources and headers
|
|
Packit Service |
5bcba8 |
# sed is not normally available on Windows, but since
|
|
Packit Service |
5bcba8 |
# we are already using PERL, use PERL one-liners.
|
|
Packit Service |
5bcba8 |
!if "$(GOBJECT)" == "1"
|
|
Packit Service |
5bcba8 |
$(HB_GOBJECT_ENUM_GENERATED_SOURCES): ..\src\hb-gobject-enums.h.tmpl ..\src\hb-gobject-enums.cc.tmpl $(HB_ACTUAL_HEADERS)
|
|
Packit Service |
5bcba8 |
$(PERL) $(PREFIX)\bin\glib-mkenums \
|
|
Packit Service |
5bcba8 |
--identifier-prefix hb_ --symbol-prefix hb_gobject \
|
|
Packit Service |
5bcba8 |
--template ..\src\$(@F).tmpl $(HB_ACTUAL_HEADERS) > $@
|
|
Packit Service |
5bcba8 |
$(PERL) -p -i.tmp1 -e "s/_t_get_type/_get_type/g" $@
|
|
Packit Service |
5bcba8 |
$(PERL) -p -i.tmp2 -e "s/_T \(/ (/g" $@
|
|
Packit Service |
5bcba8 |
@-del $@.tmp1
|
|
Packit Service |
5bcba8 |
@-del $@.tmp2
|
|
Packit Service |
5bcba8 |
!endif
|
|
Packit Service |
5bcba8 |
|
|
Packit Service |
5bcba8 |
# Create the build directories
|
|
Packit Service |
5bcba8 |
$(CFG)\$(PLAT)\harfbuzz $(CFG)\$(PLAT)\harfbuzz-gobject $(CFG)\$(PLAT)\util:
|
|
Packit Service |
5bcba8 |
@-md $@
|
|
Packit Service |
5bcba8 |
|
|
Packit Service |
5bcba8 |
.SUFFIXES: .c .cc .hh .rl
|
|
Packit Service |
5bcba8 |
|
|
Packit Service |
5bcba8 |
# Generate headers from Ragel sources
|
|
Packit Service |
5bcba8 |
{..\src\}.rl{..\src\}.hh:
|
|
Packit Service |
5bcba8 |
$(RAGEL) -e -F1 -o $@ $<
|