2009-12-07 Rolf Bjarne Kvinge <RKvinge@novell.com>
[moon.git] / class / System.Windows.Controls.Data / Makefile.am
blob4737c95322dc3016e9a0912d80285e1e081ddf06
1 assembly = System.Windows.Controls.Data
3 if INCLUDE_BROWSER_MANAGED_CODE
4 assemblysl = ../lib/2.1/$(assembly).dll
5 endif
7 if INCLUDE_DESKTOP_MANAGED_CODE
8 assemblydesktop = ../lib/moonlight/$(assembly).dll
9 endif
11 assemblies = $(assemblysl) $(assemblydesktop)
13 noinst_DATA = $(assemblies)
15 CSCFLAGS = /codepage:65001 -d:NET_1_1 -d:NET_2_0 -debug+ -noconfig -r:System -r:System.Core -r:System.Windows -d:AGCLR -unsafe
17 GMCS = gmcs $(CSCFLAGS) -lib:../lib/moonlight
18 SMCS = MONO_PATH="../lib/2.1:$$MONO_PATH" mono --runtime=moonlight --security=temporary-smcs-hack ../lib/2.1/smcs.exe $(CSCFLAGS)
19 GACUTIL = gacutil /gacdir $(DESTDIR)$(prefix)/lib /root $(DESTDIR)$(prefix)/lib
20 monoloc = `pkg-config --variable=libdir mono`/mono/moonlight
22 MSSDKCONTROLS=$(srcdir)/../Microsoft.SilverlightControls/SDKControls/Data/src
24 system_windows_controls_data_sources =                                          \
25         $(srcdir)/../System.Windows/Assembly/MonoTODOAttribute.cs               \
26         $(srcdir)/../Consts.cs                                                  \
27         $(MSSDKCONTROLS)/Extensions.cs                                          \
28         $(MSSDKCONTROLS)/DoubleUtil.cs                                          \
29         $(MSSDKCONTROLS)/Resource.Designer.cs                                   \
30         $(MSSDKCONTROLS)/VisualStates.cs                                        \
31         $(MSSDKCONTROLS)/Properties/AssemblyInfo.cs                             \
32         $(MSSDKCONTROLS)/CollectionView/CollectionViewError.cs                  \
33         $(MSSDKCONTROLS)/CollectionView/ListCollectionView.cs                   \
34         $(MSSDKCONTROLS)/CollectionView/SortFieldComparer.cs                    \
35         $(MSSDKCONTROLS)/DataGrid/DataGridAutoGeneratingColumnEventArgs.cs      \
36         $(MSSDKCONTROLS)/DataGrid/DataGridBeginningEditEventArgs.cs             \
37         $(MSSDKCONTROLS)/DataGrid/DataGridBoundColumn.cs                        \
38         $(MSSDKCONTROLS)/DataGrid/DataGridCellCollection.cs                     \
39         $(MSSDKCONTROLS)/DataGrid/DataGridCellCoordinates.cs                    \
40         $(MSSDKCONTROLS)/DataGrid/DataGridCell.cs                               \
41         $(MSSDKCONTROLS)/DataGrid/DataGridCellEventArgs.cs                      \
42         $(MSSDKCONTROLS)/DataGrid/DataGridCellsPresenter.cs                     \
43         $(MSSDKCONTROLS)/DataGrid/DataGridCheckBoxColumn.cs                     \
44         $(MSSDKCONTROLS)/DataGrid/DataGridColumnCollection.cs                   \
45         $(MSSDKCONTROLS)/DataGrid/DataGridColumn.cs                             \
46         $(MSSDKCONTROLS)/DataGrid/DataGridColumnEventArgs.cs                    \
47         $(MSSDKCONTROLS)/DataGrid/DataGridColumnHeadersPresenter.cs             \
48         $(MSSDKCONTROLS)/DataGrid/DataGridColumnHeader.xaml.cs                  \
49         $(MSSDKCONTROLS)/DataGrid/DataGridColumnReorderingEventArgs.cs          \
50         $(MSSDKCONTROLS)/DataGrid/DataGridColumns.cs                            \
51         $(MSSDKCONTROLS)/DataGrid/DataGridDataConnection.cs                     \
52         $(MSSDKCONTROLS)/DataGrid/DataGridDetailsPresenter.cs                   \
53         $(MSSDKCONTROLS)/DataGrid/DataGridDisplayData.cs                        \
54         $(MSSDKCONTROLS)/DataGrid/DataGridEndingEditEventArgs.cs                \
55         $(MSSDKCONTROLS)/DataGrid/DataGridEnumerations.cs                       \
56         $(MSSDKCONTROLS)/DataGrid/DataGridError.cs                              \
57         $(MSSDKCONTROLS)/DataGrid/DataGridFillerColumn.cs                       \
58         $(MSSDKCONTROLS)/DataGrid/DataGridFrozenGrid.cs                         \
59         $(MSSDKCONTROLS)/DataGrid/DataGridLengthConverter.cs                    \
60         $(MSSDKCONTROLS)/DataGrid/DataGridLength.cs                             \
61         $(MSSDKCONTROLS)/DataGrid/DataGridPreparingCellForEditEventArgs.cs      \
62         $(MSSDKCONTROLS)/DataGrid/DataGridRowDetailsEventArgs.cs                \
63         $(MSSDKCONTROLS)/DataGrid/DataGridRowEventArgs.cs                       \
64         $(MSSDKCONTROLS)/DataGrid/DataGridRowHeader.xaml.cs                     \
65         $(MSSDKCONTROLS)/DataGrid/DataGridRows.cs                               \
66         $(MSSDKCONTROLS)/DataGrid/DataGridRowsPresenter.cs                      \
67         $(MSSDKCONTROLS)/DataGrid/DataGridRow.xaml.cs                           \
68         $(MSSDKCONTROLS)/DataGrid/DataGridSelectedItemsCollection.cs            \
69         $(MSSDKCONTROLS)/DataGrid/DataGridTemplateColumn.cs                     \
70         $(MSSDKCONTROLS)/DataGrid/DataGridTextColumn.cs                         \
71         $(MSSDKCONTROLS)/DataGrid/DataGridValueConverter.cs                     \
72         $(MSSDKCONTROLS)/DataGrid/DataGrid.xaml.cs                              \
73         $(MSSDKCONTROLS)/DataGrid/IEditableCollection.cs                        \
74         $(MSSDKCONTROLS)/DataGrid/IndexToValueTable.cs                          \
75         $(MSSDKCONTROLS)/DataGrid/KeyboardHelper.cs                             \
76         $(MSSDKCONTROLS)/DataGrid/Range.cs                                      \
77         $(MSSDKCONTROLS)/DataGrid/ResourceHelper.cs                             \
78         $(MSSDKCONTROLS)/DataGrid/TestHooks/DataGridCellInternalTestHook.cs     \
79         $(MSSDKCONTROLS)/DataGrid/TestHooks/DataGridInternalTestHook.cs         \
80         $(MSSDKCONTROLS)/DataGrid/TestHooks/DataGridRowInternalTestHook.cs      \
81         $(MSSDKCONTROLS)/DataGrid/TypeHelper.cs                                 \
82         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridAutomationPeer.cs          \
83         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridCellAutomationPeer.cs      \
84         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridColumnHeaderAutomationPeer.cs              \
85         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridColumnHeadersPresenterAutomationPeer.cs    \
86         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridDetailsPresenterAutomationPeer.cs          \
87         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridItemAutomationPeer.cs                      \
88         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridRowAutomationPeer.cs                       \
89         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridRowHeaderAutomationPeer.cs                 \
90         $(MSSDKCONTROLS)/DataGrid/Automation/DataGridRowsPresenterAutomationPeer.cs             
92 EXTRA_DIST = $(system_windows_controls_data_sources)                    \
93         ChangeLog
95 System.Windows.Controls.Resource.resources: $(MSSDKCONTROLS)/Resource.resx
96         resgen2 $(MSSDKCONTROLS)/Resource.resx System.Windows.Controls.Resource.resources
98 $(assembly).g.resources: $(MSSDKCONTROLS)/themes/generic.xaml
99         mono $(top_builddir)/tools/respack/respack.exe $@ $(MSSDKCONTROLS)/themes/generic.xaml,themes/generic.xaml
101 RESOURCES =     \
102         -res:$(MSSDKCONTROLS)/DataGrid/DataGridTextColumn.xaml,System.Windows.Controls.DataGrid.DataGridTextColumn.xaml \
103         -res:$(assembly).g.resources    \
104         -res:System.Windows.Controls.Resource.resources
106 $(assemblysl): $(system_windows_controls_data_sources) Makefile $(top_builddir)/class/lib/2.1/System.Windows.dll $(assembly).g.resources System.Windows.Controls.Resource.resources
107         $(SMCS) -target:library -out:$@ $(system_windows_controls_data_sources) -d:NET_2_1 -r:$(top_builddir)/class/lib/2.1/System.Windows.dll -r:System.Net -keyfile:$(srcdir)/../winfx3.pub -delaysign+ $(RESOURCES)
108         sn -q -R $@ $(srcdir)/../mono.snk
110 $(assemblydesktop): $(system_windows_controls_data_sources) Makefile $(top_builddir)/class/lib/moonlight/System.Windows.dll
111         $(GMCS) -target:library -out:$@ $(system_windows_controls_data_sources) -keyfile:$(srcdir)/../mono.snk
113 clean-local:
114         -rm -rf $(assemblies) 
115         -rm -rf *.dll *.mdb
116         -rm -rf *.resources
118 if INCLUDE_BROWSER_MANAGED_CODE
119 install-sl:
120 else
121 install-sl:
122 endif
124 if INCLUDE_DESKTOP_MANAGED_CODE
125 install-desktop:
126         $(GACUTIL) /i $(assemblydesktop) /f /package moonlight
127 else
128 install-desktop:
129 endif
131 install-data-local: install-sl install-desktop
133 uninstall-local:
134         $(GACUTIL) /u $(assembly)