blob: cf5c30ed798decdaad0295300de0188b98f78510 (
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
|
# NMake Makefile portion for code generation and
# intermediate build directory creation
# Items in here should not need to be edited unless
# one is maintaining the NMake build files.
$(OUTDIR)\librsvg\_rsvg_dummy.c:
@echo Generating dummy source file...
@if not exist $(@D)\ mkdir $(@D)
echo static int __rsvg_dummy; > $@
$(OUTDIR)\librsvg\librsvg.def: .\librsvg.symbols
@echo Generating $@...
@if not exist $(@D)\ mkdir $(@D)
@echo EXPORTS>$@
$(CC) /EP $**>>$@
# Generate listing file for introspection
$(OUTDIR)\librsvg\Rsvg_2_0_gir_list: $(librsvg_real_pub_HDRS)
@if exist $@ del $@
@for %%s in ($**) do @echo %%s >> $@
# Generate documentation (introspection must be built)
!ifdef INTROSPECTION
generate-docs: ..\doc\librsvg.toml $(OUTDIR)\Rsvg-$(RSVG_API_VER).gir
@echo Generating documentation...
@$(GI_DOCGEN) generate -C $** --content-dir=..\doc \
--add-include-path=$(G_IR_INCLUDEDIR)
!else
generate-docs:
@echo Introspection must be enabled to build documentation
!endif
# Generate NMake Makefiles (for git checkouts only)
!ifndef IS_NOT_GIT
# Either having python.exe your PATH will work or passing in
# PYTHON=<full path to your Python interpretor> will do
!ifndef PYTHON
PYTHON=python
!endif
config.h.win32: ..\.git ..\configure.ac prebuild.py config.h.win32.in
config-msvc.mak: ..\.git ..\configure.ac prebuild.py config-msvc.mak.in
..\include\librsvg\rsvg-version.h: ..\.git ..\configure.ac prebuild.py ..\include\librsvg\rsvg-version.h.in
generate-nmake-files: config.h.win32 config-msvc.mak ..\include\librsvg\rsvg-version.h
@echo If error meesages appear here you will need to pass in PYTHON=^<path_to_python.exe^>...
@$(PYTHON) prebuild.py
remove-generated-nmake-files: ..\.git
@-del /f/q config-msvc.mak
@-del /f/q config.h.win32
@-del /f/q ..\include\librsvg\rsvg-version.h
@-for /f %%d in ('dir /ad /b vs*') do @rmdir /s/q %%d
!endif
|