More binary-bundling removal
[pdfmod:pdfmod.git] / lib / poppler-sharp / Makefile.am
1
2 EXTRA_DIST =
3
4 if ENABLE_DEBUG
5 ASSEMBLY_COMPILER_COMMAND = $(MCS)
6 ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+ -unsafe -debug "-define:DEBUG"
7 ASSEMBLY = ../bin/poppler-sharp.dll
8 ASSEMBLY_MDB = $(ASSEMBLY).mdb
9 COMPILE_TARGET = library
10 PROJECT_REFERENCES =  
11 BUILD_DIR = ../bin
12
13 endif
14
15 if ENABLE_RELEASE
16 ASSEMBLY_COMPILER_COMMAND = $(MCS)
17 ASSEMBLY_COMPILER_FLAGS =  -noconfig -codepage:utf8 -warn:4 -optimize+ -unsafe -debug -define:DEBUG
18 ASSEMBLY = ../bin/poppler-sharp.dll
19 ASSEMBLY_MDB = $(ASSEMBLY).mdb
20 COMPILE_TARGET = library
21 PROJECT_REFERENCES =  
22 BUILD_DIR = ../bin
23
24 endif
25
26 PROGRAMFILES = \
27         $(POPPLER_SHARP_DLL_MDB)
28
29 BINARIES = 
30
31
32 RESGEN=resgen2
33         
34 all: $(ASSEMBLY) $(PROGRAMFILES) $(BINARIES) 
35
36 FILES =  \
37         poppler-sharp/generated/*.cs \
38         poppler-sharp/Document.cs
39
40 DATA_FILES = 
41
42 RESOURCES = 
43
44 EXTRAS = 
45
46 REFERENCES =  \
47         Mono.Cairo \
48         -pkg:gtk-sharp-2.0 \
49         System 
50
51 DLL_REFERENCES =  
52
53 CLEANFILES = $(PROGRAMFILES) $(BINARIES)
54
55 include $(top_srcdir)/Makefile.include
56
57 POPPLER_SHARP_DLL = $(BUILD_DIR)/poppler-sharp.dll
58 POPPLER_SHARP_DLL_CONFIG = $(BUILD_DIR)/poppler-sharp.dll.config
59 POPPLER_SHARP_DLL_MDB = $(BUILD_DIR)/poppler-sharp.dll.mdb
60
61 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL))
62 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL_CONFIG))
63 $(eval $(call emit-deploy-wrapper,PDFMOD,pdfmod,x))
64
65
66 $(eval $(call emit_resgen_targets))
67 $(build_xamlg_list): %.xaml.g.cs: %.xaml
68         xamlg '$<'
69
70 $(ASSEMBLY_MDB): $(ASSEMBLY)
71
72 $(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
73         mkdir -p $(shell dirname $(ASSEMBLY))
74         $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
75         cp poppler-sharp/poppler-sharp.dll.config $(BUILD_DIR)