|
45 | 45 | </do>
|
46 | 46 | </foreach>
|
47 | 47 |
|
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"${doc}"" 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"${build.obj}"" verbose="true"> |
49 | 67 | <sources basedir="${basedir}/SpotiFire.LibSpotify">
|
50 | 68 | <include name="*.cpp" />
|
51 | 69 | <include name="${tmp.cpp}" asis="true" />
|
52 | 70 | <exclude name="AssemblyInfo.cpp" />
|
53 | 71 | </sources>
|
54 |
| - </cl> |
| 72 | + </cl>--> |
55 | 73 |
|
56 |
| - <csc target="module" output="${build.obj}/SpotiFire.netmodule"> |
| 74 | + <csc target="module" output="${build.obj}/SpotiFire.netmodule" doc="${build.obj}/managed.xml"> |
57 | 75 | <modules basedir="${build.obj}">
|
58 | 76 | <include name="tmp.obj" />
|
59 | 77 | </modules>
|
|
63 | 81 | </sources>
|
64 | 82 | </csc>
|
65 | 83 |
|
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"> |
67 | 85 | <sources basedir="${build.obj}">
|
68 | 86 | <include name="*.obj" />
|
69 | 87 | <include name="*.netmodule" />
|
|
72 | 90 | <arg value="/DEBUG" if="${build.debug == 'true'}" />
|
73 | 91 | </link>
|
74 | 92 |
|
| 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> |
75 | 114 | <copy todir="${build.dir}" flatten="true">
|
76 | 115 | <fileset basedir="packages">
|
77 | 116 | <include name="**net40/**" />
|
|
0 commit comments