Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Commit d2807f7

Browse files
committed
XML-doc generating
1 parent cf6943e commit d2807f7

File tree

5 files changed

+3466
-4
lines changed

5 files changed

+3466
-4
lines changed

SpotiFire.LibSpotify/Enums.h

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#pragma once
22

33
namespace SpotiFire {
4+
5+
///-------------------------------------------------------------------------------------------------
6+
/// <summary> Values that errors given from libspotify . </summary>
7+
///
8+
/// <remarks> Aleksander, 19.10.2012. </remarks>
9+
///-------------------------------------------------------------------------------------------------
10+
411
public enum class Error
512
{
613
/// <summary>

SpotiFire.build

+43-4
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,33 @@
4545
</do>
4646
</foreach>
4747

48-
<cl outputdir="${build.obj}" options="/clr /LN">
48+
<foreach item="File" property="filename">
49+
<in>
50+
<items basedir="${basedir}/SpotiFire.LibSpotify">
51+
<include name="*.cpp" />
52+
<include name="${tmp.cpp}" asis="true" />
53+
<exclude name="AssemblyInfo.cpp" />
54+
</items>
55+
</in>
56+
<do>
57+
<property name="doc" value="${build.obj}/${path::get-file-name-without-extension(filename)}.xdc" />
58+
<cl outputdir="${build.obj}" options="/clr /LN /doc&quot;${doc}&quot;" verbose="false">
59+
<sources>
60+
<include name="${filename}" asis="true" />
61+
</sources>
62+
</cl>
63+
</do>
64+
</foreach>
65+
66+
<!--<cl outputdir="${build.obj}" options="/clr /LN /doc&quot;${build.obj}&quot;" verbose="true">
4967
<sources basedir="${basedir}/SpotiFire.LibSpotify">
5068
<include name="*.cpp" />
5169
<include name="${tmp.cpp}" asis="true" />
5270
<exclude name="AssemblyInfo.cpp" />
5371
</sources>
54-
</cl>
72+
</cl>-->
5573

56-
<csc target="module" output="${build.obj}/SpotiFire.netmodule">
74+
<csc target="module" output="${build.obj}/SpotiFire.netmodule" doc="${build.obj}/managed.xml">
5775
<modules basedir="${build.obj}">
5876
<include name="tmp.obj" />
5977
</modules>
@@ -63,7 +81,7 @@
6381
</sources>
6482
</csc>
6583

66-
<link output="${build.dir}/${name}.dll" options="/LTCG /FIXED /CLRIMAGETYPE:IJW /NOENTRY /DLL">
84+
<link output="${build.obj}/${name}.dll" options="/LTCG /FIXED /CLRIMAGETYPE:IJW /NOENTRY /DLL">
6785
<sources basedir="${build.obj}">
6886
<include name="*.obj" />
6987
<include name="*.netmodule" />
@@ -72,6 +90,27 @@
7290
<arg value="/DEBUG" if="${build.debug == 'true'}" />
7391
</link>
7492

93+
<exec program="xdcmake.exe" workingdir="${build.obj}">
94+
<arg>
95+
<path>
96+
<pathelement path="${build.obj}\*.xdc" />
97+
</path>
98+
</arg>
99+
<arg value="/assembly:${name}.dll" />
100+
<arg value="/out:${name}.xml" />
101+
</exec>
102+
103+
<!--<xmlstrip file="${build.obj}/${name}.xml" xpath="/doc/members/member[starts-with(@name, 'M:UTF8') or starts-with(@name, 'M:sp_') or starts-with(@name, 'T:sp_') or starts-with(@name, 'F:sp_') or starts-with(@name, 'D:sp_') or starts-with(@name, 'D:inboxpost_') or starts-with(@name, 'D:toplistbrowse_') or starts-with(@name, 'D:search_') or starts-with(@name, 'D:image_') or starts-with(@name, 'D:artistbrowse_') or starts-with(@name, 'D:albumbrowse_')]" />-->
104+
<xmlstrip file="${build.obj}/${name}.xml" xpath="/doc/members/member[not(contains(@name, 'SpotiFire'))]" />
105+
<xmlmerge file="${build.obj}/${name}.xml" xpath="/doc/members" other="${build.obj}/managed.xml" />
106+
107+
<copy todir="${build.dir}" flatten="true">
108+
<fileset basedir="${build.obj}">
109+
<include name="${name}.dll" />
110+
<include name="${name}.pdb" />
111+
<include name="${name}.xml" />
112+
</fileset>
113+
</copy>
75114
<copy todir="${build.dir}" flatten="true">
76115
<fileset basedir="packages">
77116
<include name="**net40/**" />

0 commit comments

Comments
 (0)