Imported Upstream version 1.4.6
[platform/upstream/harfbuzz.git] / win32 / Makefile.vc
1 # NMake Makefile for building HarfBuzz as a DLL on Windows
2
3 # The items below this line should not be changed, unless one is maintaining
4 # the NMake Makefiles.  Customizations can be done in the following NMake Makefile
5 # portions (please see comments in the these files to see what can be customized):
6 #
7 # detectenv-msvc.mak
8 # config-msvc.mak
9
10 !include detectenv-msvc.mak
11
12 # Include the Makefile portions with the source listings
13 !include ..\src\Makefile.sources
14 !include ..\src\hb-ucdn\Makefile.sources
15 !include ..\util\Makefile.sources
16
17 # We need to include the sources in ..\src\hb-ucdn indirectly
18 !if [call create-lists.bat header hb_ucdn_srcs.mak hb_ucdn_SRCS]
19 !endif
20
21 !if [for %c in ($(LIBHB_UCDN_sources)) do @call create-lists.bat file hb_ucdn_srcs.mak hb-ucdn\%c]
22 !endif
23
24 !if [call create-lists.bat footer hb_ucdn_srcs.mak]
25 !endif
26
27 !include hb_ucdn_srcs.mak
28
29 !if [del /f /q hb_ucdn_srcs.mak]
30 !endif
31
32 # Include the Makefile portion that enables features based on user input
33 !include config-msvc.mak
34
35 !if "$(VALID_CFGSET)" == "TRUE"
36
37 # Include the Makefile portion to convert the source and header lists
38 # into the lists we need for compilation and introspection
39 !include create-lists-msvc.mak
40
41 all: $(HB_LIBS) $(HB_UTILS) $(EXTRA_TARGETS) all-build-info
42
43 tests: all $(HB_TESTS)
44
45 # Include the build rules for sources, DLLs and executables
46 !include build-rules-msvc.mak
47
48 # Include the rules for build directory creation and code generation
49 !include generate-msvc.mak
50
51 # Generate the introspection files
52
53 !if "$(INTROSPECTION)" == "1"
54 # Include the rules for building the introspection files
55 !include introspection-msvc.mak
56 !include hb-introspection-msvc.mak
57 !endif
58
59 !include install.mak
60
61 !else
62 all: help
63         @echo You need to specify a valid configuration, via
64         @echo CFG=release or CFG=debug
65 !endif
66
67 !include info-msvc.mak