-
Notifications
You must be signed in to change notification settings - Fork 27
/
mono.bbclass
43 lines (35 loc) · 1.05 KB
/
mono.bbclass
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
# Class for building C# packages. If your package is all-managed, add
# PACKAGE_ARCH="all"
DEPENDS += "mono-native mono"
RDEPENDS_${PN} += "mono"
FILES_${PN} += "\
${libdir}/mono/*/*.exe \
${libdir}/mono/*/*.dll \
${libdir}/mono/*/*.config \
${libdir}/mono/gac/*/*/*.dll \
${libdir}/mono/gac/*/*/*.*.config \
"
FILES_${PN}-dbg += "\
${libdir}/mono/*/*.mdb \
${libdir}/mono/gac/*/*/*.mdb \
"
FILES_${PN}-dev += "\
${libdir}/mono/*/*.rsp \
${libdir}/mono/*/*.xml \
${libdir}/mono/gac/*/*/*.xml \
${libdir}/mono/xbuild/* \
${libdir}/mono/xbuild-frameworks/* \
${libdir}/mono/Microsoft* \
${libdir}/mono/*/*.Targets \
"
FILES_${PN}-doc += "\
${libdir}/monodoc/* \
"
export MONO_CFG_DIR="${STAGING_ETCDIR_NATIVE}"
# NuGet uses $HOME/.nuget/packages to store packages by default
# but we should not use anything outside the build root of packages.
export NUGET_PACKAGES="${WORKDIR}/mono-nuget-packages"
export NUGET_HTTP_CACHE_PATH="${WORKDIR}/mono-nuget-http-cache"
do_configure_prepend() {
mkdir -p ${NUGET_PACKAGES} ${NUGET_HTTP_CACHE_PATH}
}