PageRenderTime 46ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/Ninject.build

http://github.com/ninject/ninject
Bazel | 174 lines | 164 code | 10 blank | 0 comment | 0 complexity | 8f0d2c56ca95f7d9f4b127730e566028 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <project name="Ninject" default="build">
  3. <property name="version" value="0.0.0.0" overwrite="true"/>
  4. <property name="product.name" value="Ninject" overwrite="false"/>
  5. <property name="product.company" value="Ninject Project Contributors" overwrite="false"/>
  6. <property name="product.duration" value="2007-2014" overwrite="false"/>
  7. <property name="product.description" value="Lightweight dependency injection for .NET" overwrite="false"/>
  8. <property name="product.platforms" value="net-4.5,net-4.0-client,net-4.5,net-4.0_medium_trust,net-4.5_medium_trust,silverlight-5.0,mono-4.0" overwrite="false"/>
  9. <property name="product.buildserverPlatforms" value="net-4.0-client,net-4.0_medium_trust,silverlight-5.0,mono-4.0" overwrite="false"/>
  10. <property name="dependencies" value="" overwrite="false"/>
  11. <property name="product.assembly.testmodule" value="${product.name}.Tests.TestModule.dll" overwrite="false"/>
  12. <property name="product.assembly.testassembly" value="${product.name}.Tests.TestAssembly.dll" overwrite="false"/>
  13. <property name="current.path.testmodules" value="${path.build}/${build.platform}/tests/TestModules" dynamic="true"/>
  14. <include buildfile="Ninject.include" />
  15. <target name="all" depends="core csl test silverlight-test"/>
  16. <target name="nuget-all" depends="nuget"/>
  17. <target name="core" depends="init">
  18. <csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}" output="${current.path.build}/${product.assembly}" doc="${current.path.build}/${product.docfile}" keyfile="${path.src}/${product.keyfile}">
  19. <arg line="/filealign:512"/>
  20. <arg line="/sdk:4.0" if="${string::contains(build.platform, 'mono-4.0')}"/>
  21. <sources basedir="${path.src}">
  22. <include name="${build.asminfo}"/>
  23. <include name="${product.name}/**/*.cs"/>
  24. </sources>
  25. <references>
  26. <include name="mscorlib.dll"/>
  27. <include name="System.dll"/>
  28. <include name="System.Core.dll"/>
  29. </references>
  30. <nowarn>
  31. <warning number="1711"/>
  32. </nowarn>
  33. </csc>
  34. </target>
  35. <target name="csl" depends="init core">
  36. <property name="current.path.build.extensions" value="${path.build}/${build.platform}/${build.config}/extensions"/>
  37. <mkdir dir="${current.path.build.extensions}" if="${not(directory::exists(current.path.build.extensions))}"/>
  38. <csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}" output="${current.path.build.extensions}/CommonServiceLocator.NinjectAdapter.dll">
  39. <arg line="/filealign:512"/>
  40. <arg line="/sdk:4.0" if="${string::contains(build.platform, 'mono-4.0')}"/>
  41. <sources basedir="${path.src}">
  42. <include name="${build.asminfo}"/>
  43. <include name="CommonServiceLocator.NinjectAdapter/**/*.cs"/>
  44. </sources>
  45. <references basedir="${current.path.build}">
  46. <include name="mscorlib.dll"/>
  47. <include name="System.dll"/>
  48. <include name="System.Core.dll"/>
  49. <include name="${product.assembly}"/>
  50. <include name="${path.packages}/CommonServiceLocator.*/lib/NET35/Microsoft.Practices.ServiceLocation.dll"/>
  51. </references>
  52. </csc>
  53. </target>
  54. <target name="compile-test-modules" depends="core" unless="${skip.tests}">
  55. <mkdir dir="${current.path.test}"/>
  56. <copy todir="${current.path.test}" flatten="true">
  57. <fileset basedir="${current.path.build}">
  58. <include name="**/*.dll"/>
  59. </fileset>
  60. </copy>
  61. <csc noconfig="true" nostdlib="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
  62. output="${current.path.test}/${product.assembly.testmodule}">
  63. <sources basedir="${path.src}">
  64. <include name="TestModules/**/*.cs"/>
  65. </sources>
  66. <references basedir="${current.path.test}">
  67. <include name="mscorlib.dll"/>
  68. <include name="System.dll"/>
  69. <include name="System.Core.dll"/>
  70. <include name="${product.assembly}"/>
  71. </references>
  72. <nowarn>
  73. <warning number="1584"/>
  74. </nowarn>
  75. </csc>
  76. <csc noconfig="true" nostdlib="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
  77. output="${current.path.test}/${product.assembly.testassembly}">
  78. <sources basedir="${path.src}">
  79. <include name="TestAssembly/**/*.cs"/>
  80. </sources>
  81. <references basedir="${current.path.test}">
  82. <include name="mscorlib.dll"/>
  83. <include name="System.dll"/>
  84. <include name="System.Core.dll"/>
  85. </references>
  86. <nowarn>
  87. <warning number="1584"/>
  88. </nowarn>
  89. </csc>
  90. </target>
  91. <target name="compile-tests" depends="compile-test-modules" unless="${skip.tests}" if="${not(string::contains(build.platform, 'silverlight'))}">
  92. <mkdir dir="${current.path.test}"/>
  93. <call target="CopyDefaultTestInfrastructureAssemblies"/>
  94. <copy todir="${current.path.testmodules}">
  95. <fileset basedir="${path.src}/Ninject.Test/TestModules">
  96. <include name="test.foo"/>
  97. <include name="test.bar"/>
  98. </fileset>
  99. </copy>
  100. <csc noconfig="true" nostdlib="true" warnaserror="false" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
  101. output="${current.path.test}/${product.assembly.test}">
  102. <sources basedir="${path.src}">
  103. <include name="${product.name}.Test/**/*.cs"/>
  104. </sources>
  105. <references basedir="${current.path.test}">
  106. <include name="mscorlib.dll"/>
  107. <include name="System.dll"/>
  108. <include name="System.Core.dll"/>
  109. <include name="System.ServiceModel.dll"/>
  110. <include name="Moq.dll"/>
  111. <include name="xunit.dll"/>
  112. <include name="xunit.extensions.dll"/>
  113. <include name="FluentAssertions.dll"/>
  114. <include name="System.Web.dll"/>
  115. <include name="${product.assembly}"/>
  116. </references>
  117. <nowarn>
  118. <warning number="1584"/>
  119. </nowarn>
  120. </csc>
  121. </target>
  122. <target name="compile-silverlight-tests" depends="compile-test-modules core" unless="${skip.tests or skip.silverlightTests}" if="${string::contains(build.platform, 'silverlight')}">
  123. <mkdir dir="${current.path.test}"/>
  124. <call target="CopyDefaultTestInfrastructureAssemblies-SL"/>
  125. <csc noconfig="true" warnaserror="false" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
  126. output="${current.path.test}/${product.assembly.silverlighttestdll}">
  127. <sources basedir="${path.src}">
  128. <include name="${product.name}.Test/*.cs"/>
  129. <include name="${product.name}.Test/Fakes/**/*.cs"/>
  130. <include name="${product.name}.Test/Unit/**/*.cs"/>
  131. <include name="${product.name}.Test/Integration/**/*.cs"/>
  132. <include name="${product.name}.SilverlightTests/*.cs"/>
  133. <exclude name="${product.name}.Test/MSTestAttributes/*.cs"/>
  134. </sources>
  135. <references basedir="${current.path.test}">
  136. <include name="mscorlib.dll"/>
  137. <include name="System.dll"/>
  138. <include name="System.Core.dll"/>
  139. <include name="System.Windows.dll"/>
  140. <include name="System.Windows.Browser.dll"/>
  141. <include name="System.Net.dll"/>
  142. <include name="Moq.Silverlight.dll" />
  143. <include name="Castle.Core.dll" />
  144. <include name="FluentAssertions.Silverlight.dll"/>
  145. <include name="xunit.runner.silverlight.dll"/>
  146. <include name="xunit-silverlight.dll"/>
  147. <include name="xunit.extensions-silverlight.dll"/>
  148. <include name="${product.assembly}"/>
  149. </references>
  150. <nowarn>
  151. <warning number="1584"/>
  152. </nowarn>
  153. </csc>
  154. <zip zipfile="${current.path.test}/${product.assembly.silverlighttest}">
  155. <fileset basedir="${current.path.test}">
  156. <include name="*.dll" />
  157. <exclude name="CommonServiceLocator.NinjectAdapter.dll" />
  158. </fileset>
  159. <fileset basedir="${path.src}/${product.name}.SilverlightTests/Silverlight3">
  160. <include name="AppManifest.xaml"/>
  161. </fileset>
  162. </zip>
  163. </target>
  164. </project>