build.bat 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. @echo off
  2. rem Licensed Materials - Property of IBM
  3. rem IBM Cognos Products: DOCS
  4. rem (C) Copyright IBM Corp. 2005, 2012
  5. rem US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
  6. rem IBM Corp.
  7. rem Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  8. rem Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  9. rem Build the SamplesCommon assembly using the .NET Framework command-line tools.
  10. rem
  11. rem CHANGE the following environment variable to point to your IBM Cognos BI server.
  12. set CRN_HOME=http://localhost:9300/p2pd/servlet/dispatch/
  13. rem Build the library and the executable.
  14. set ICON=/win32icon:SamplesApplication.ico
  15. set RESOURCES=SamplesAbout.resx SamplesConnect.resx SamplesInput.resx SamplesListInput.resx SamplesLogon.resx SamplesPath.resx SamplesWindow.resx
  16. set COMPILED_RESOURCES=/res:SamplesAbout.resources,SamplesCommon.SamplesAbout.resources /res:SamplesConnect.resources,SamplesCommon.SamplesConnect.resources /res:SamplesInput.resources,SamplesCommon.SamplesInput.resources /res:SamplesListInput.resources,SamplesCommon.SamplesListInput.resources /res:SamplesLogon.resources,SamplesCommon.SamplesLogon.resources /res:SamplesPath.resources,SamplesCommon.SamplesPath.resources /res:SamplesWindow.resources,SamplesCommon.SamplesWindow.resources
  17. set SOURCE=AssemblyInfo.cs BaseClassWrapper.cs CommonFunctions.cs ReportAndQueryObject.cs SamplesConnect.cs SamplesAbout.cs SamplesException.cs SamplesExceptionHelper.cs SamplesHeaderExceptionHelper.cs SamplesInput.cs SamplesListInput.cs SamplesLogon.cs SamplesPath.cs SamplesWindow.cs
  18. set COGDLLS=/r:../../cognosdotnet_10_2.dll /r:../../cognosdotnetassembly_10_2.dll
  19. resgen /compile %RESOURCES%
  20. csc /nologo /t:library /out:SamplesCommon.dll %COGDLLS% %SOURCE% %ICON% %COMPILED_RESOURCES%
  21. del *.resources
  22. echo Done.