Some more make distcheck fixes
[pdfmod:mmckinleys-sandbox.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/Document.cs \
38         poppler-sharp/generated/Action.cs \
39         poppler-sharp/generated/ActionAny.cs \
40         poppler-sharp/generated/ActionGotoDest.cs \
41         poppler-sharp/generated/ActionGotoRemote.cs \
42         poppler-sharp/generated/ActionLaunch.cs \
43         poppler-sharp/generated/ActionMovie.cs \
44         poppler-sharp/generated/ActionNamed.cs \
45         poppler-sharp/generated/ActionType.cs \
46         poppler-sharp/generated/ActionUri.cs \
47         poppler-sharp/generated/Annot.cs \
48         poppler-sharp/generated/AnnotCalloutLine.cs \
49         poppler-sharp/generated/AnnotExternalDataType.cs \
50         poppler-sharp/generated/AnnotFlag.cs \
51         poppler-sharp/generated/AnnotFreeText.cs \
52         poppler-sharp/generated/AnnotFreeTextQuadding.cs \
53         poppler-sharp/generated/AnnotMapping.cs \
54         poppler-sharp/generated/AnnotMarkup.cs \
55         poppler-sharp/generated/AnnotMarkupReplyType.cs \
56         poppler-sharp/generated/AnnotText.cs \
57         poppler-sharp/generated/AnnotTextState.cs \
58         poppler-sharp/generated/AnnotType.cs \
59         poppler-sharp/generated/Attachment.cs \
60         poppler-sharp/generated/AttachmentSaveFunc.cs \
61         poppler-sharp/generated/Backend.cs \
62         poppler-sharp/generated/Color.cs \
63         poppler-sharp/generated/Dest.cs \
64         poppler-sharp/generated/DestType.cs \
65         poppler-sharp/generated/Document.cs \
66         poppler-sharp/generated/Error.cs \
67         poppler-sharp/generated/FontInfo.cs \
68         poppler-sharp/generated/FontType.cs \
69         poppler-sharp/generated/FontsIter.cs \
70         poppler-sharp/generated/FormButtonType.cs \
71         poppler-sharp/generated/FormChoiceType.cs \
72         poppler-sharp/generated/FormField.cs \
73         poppler-sharp/generated/FormFieldMapping.cs \
74         poppler-sharp/generated/FormFieldType.cs \
75         poppler-sharp/generated/FormTextType.cs \
76         poppler-sharp/generated/Global.cs \
77         poppler-sharp/generated/ImageMapping.cs \
78         poppler-sharp/generated/IndexIter.cs \
79         poppler-sharp/generated/Layer.cs \
80         poppler-sharp/generated/LayersIter.cs \
81         poppler-sharp/generated/LinkMapping.cs \
82         poppler-sharp/generated/Orientation.cs \
83         poppler-sharp/generated/PSFile.cs \
84         poppler-sharp/generated/Page.cs \
85         poppler-sharp/generated/PageLayout.cs \
86         poppler-sharp/generated/PageMode.cs \
87         poppler-sharp/generated/PageTransition.cs \
88         poppler-sharp/generated/PageTransitionAlignment.cs \
89         poppler-sharp/generated/PageTransitionDirection.cs \
90         poppler-sharp/generated/PageTransitionType.cs \
91         poppler-sharp/generated/PopplerSharp.AttachmentSaveFuncNative.cs \
92         poppler-sharp/generated/Rectangle.cs \
93         poppler-sharp/generated/SelectionStyle.cs \
94         poppler-sharp/generated/ViewerPreferences.cs
95
96 DATA_FILES = 
97
98 RESOURCES = 
99
100 EXTRAS = 
101
102 REFERENCES =  \
103         Mono.Cairo \
104         -pkg:gtk-sharp-2.0 \
105         System 
106
107 DLL_REFERENCES =  
108
109 CLEANFILES = $(PROGRAMFILES) $(BINARIES)
110
111 include $(top_srcdir)/Makefile.include
112
113 POPPLER_SHARP_DLL = $(BUILD_DIR)/poppler-sharp.dll
114 POPPLER_SHARP_DLL_CONFIG = $(BUILD_DIR)/poppler-sharp.dll.config
115 POPPLER_SHARP_DLL_MDB = $(BUILD_DIR)/poppler-sharp.dll.mdb
116
117 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL))
118 $(eval $(call emit-deploy-target,POPPLER_SHARP_DLL_CONFIG))
119
120
121 $(eval $(call emit_resgen_targets))
122 $(build_xamlg_list): %.xaml.g.cs: %.xaml
123         xamlg '$<'
124
125 $(ASSEMBLY_MDB): $(ASSEMBLY)
126
127 $(ASSEMBLY): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list) $(build_satellite_assembly_list)
128         mkdir -p $(shell dirname $(ASSEMBLY))
129         $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
130         cp $(srcdir)/poppler-sharp/poppler-sharp.dll.config $(BUILD_DIR)