PageRenderTime 52ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/Ninject.Extensions.Interception.build

https://github.com/hereyes/ninject.extensions.interception
Bazel | 111 lines | 104 code | 7 blank | 0 comment | 0 complexity | 0de03285d84112ec08ebfba5a8c5100e MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, MPL-2.0-no-copyleft-exception
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <project name="Ninject" default="build">
  3. <property name="version" value="2.2.0.0" overwrite="true"/>
  4. <property name="product.name" value="Ninject.Extensions.Interception" overwrite="false"/>
  5. <property name="product.company" value="Ninject Project Contributors" overwrite="false"/>
  6. <property name="product.duration" value="2008-2012" overwrite="false"/>
  7. <property name="product.description" value="Interception extension for Ninject" overwrite="false"/>
  8. <property name="product.platforms" value="net-3.5-client,net-4.0-client,net-4.5-client,silverlight-5.0,silverlight-4.0,silverlight-3.0" overwrite="false"/>
  9. <property name="product.buildserverPlatforms" value="net-3.5-client,net-4.0-client,silverlight-5.0,silverlight-4.0,silverlight-3.0" overwrite="false"/>
  10. <property name="dependencies" value="Ninject" overwrite="false"/>
  11. <include buildfile="Ninject.include" />
  12. <include buildfile="Ninject.Extensions.Interception.DynamicProxy.build" />
  13. <include buildfile="Ninject.Extensions.Interception.LinFu.build" />
  14. <target name="all" depends="core buildDynamicProxy buildLinFu test silverlight-test"/>
  15. <target name="nuget-all" depends="nuget nuget-dp2 nuget-linfu"/>
  16. <target name="core" depends="init">
  17. <property name="LinFuTests" value="false"/>
  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" unless="${nant.settings.currentframework == 'mono-2.0'}"/>
  20. <sources basedir="${path.src}">
  21. <include name="${build.asminfo}"/>
  22. <include name="${product.name}/**/*.cs"/>
  23. </sources>
  24. <references>
  25. <include name="mscorlib.dll"/>
  26. <include name="System.dll"/>
  27. <include name="System.Core.dll"/>
  28. <include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
  29. </references>
  30. </csc>
  31. </target>
  32. <target name="compile-tests" depends="core" unless="${skip.tests}" if="${not(string::contains(build.platform, 'silverlight') or build.platform == 'netcf-3.5')}">
  33. <mkdir dir="${current.path.test}"/>
  34. <call target="CopyDefaultTestInfrastructureAssemblies"/>
  35. <csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
  36. output="${current.path.test}/${product.assembly.test}">
  37. <sources basedir="${path.src}">
  38. <include name="${product.name}.Test/**/*.cs"/>
  39. <exclude name="${product.name}.Test/**/*LinFu*.cs" unless="${LinFuTests}"/>
  40. </sources>
  41. <references basedir="${current.path.test}">
  42. <include name="mscorlib.dll"/>
  43. <include name="System.dll"/>
  44. <include name="System.Core.dll"/>
  45. <include name="System.Windows.Forms.dll"/>
  46. <include name="System.ServiceModel.dll"/>
  47. <include name="Moq.dll"/>
  48. <include name="xunit.dll"/>
  49. <include name="FluentAssertions.dll"/>
  50. <include name="${product.assembly}"/>
  51. <include name="${product.assembly.DynamicProxy}"/>
  52. <include name="${product.assembly.LinFu}"/>
  53. <include name="${current.path.lib.DynamicProxy}/Castle.Core.dll"/>
  54. <include name="${current.path.lib.LinFu}/LinFu.DynamicProxy.dll"/>
  55. <include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
  56. </references>
  57. <nowarn>
  58. <warning number="1584"/>
  59. </nowarn>
  60. </csc>
  61. </target>
  62. <target name="compile-silverlight-tests" depends="core" unless="${skip.tests or skip.silverlightTests}" if="${string::contains(build.platform, 'silverlight')}">
  63. <mkdir dir="${current.path.test}"/>
  64. <call target="CopyDefaultTestInfrastructureAssemblies-SL"/>
  65. <csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
  66. output="${current.path.test}/${product.assembly.silverlighttestdll}">
  67. <sources basedir="${path.src}">
  68. <include name="${product.name}.Test/**/*.cs"/>
  69. <include name="${product.name}.SilverlightTests/*.cs"/>
  70. <exclude name="${product.name}.Test/MSTestAttributes/*.cs"/>
  71. </sources>
  72. <references basedir="${current.path.test}">
  73. <include name="mscorlib.dll"/>
  74. <include name="System.dll"/>
  75. <include name="System.Core.dll"/>
  76. <include name="System.Windows.dll"/>
  77. <include name="System.Windows.Browser.dll"/>
  78. <include name="System.Net.dll"/>
  79. <include name="Microsoft.Phone.dll" if="${string::contains(build.platform, 'wp7')}"/>
  80. <include name="Microsoft.Phone.Interop.dll" if="${string::contains(build.platform, 'wp7')}"/>
  81. <include name="Moq.Silverlight.dll" unless="${string::contains(build.platform, 'wp7')}"/>
  82. <include name="xunit.runner.silverlight.dll"/>
  83. <include name="xunit-silverlight.dll"/>
  84. <include name="FluentAssertions.Silverlight.dll"/>
  85. <include name="${product.assembly}"/>
  86. <include name="${product.assembly.DynamicProxy}"/>
  87. <include name="${current.path.lib.DynamicProxy}/Castle.Core.dll"/>
  88. <include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
  89. <include name="${path.lib}/Silverlight/${build.platform}/System.ServiceModel.dll"/>
  90. </references>
  91. <nowarn>
  92. <warning number="1584"/>
  93. </nowarn>
  94. </csc>
  95. <zip zipfile="${current.path.test}/${product.assembly.silverlighttest}">
  96. <fileset basedir="${current.path.test}">
  97. <include name="*.dll" />
  98. </fileset>
  99. <fileset basedir="${path.src}/${product.name}.SilverlightTests">
  100. <include name="AppManifest.xaml"/>
  101. </fileset>
  102. </zip>
  103. </target>
  104. </project>