Last active
August 29, 2015 14:09
-
-
Save CheyiLin/896a9e55986c9b1e4d46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set OUTPUT_LIB=MyPackage.dll | |
set INPUT_FILES=^ | |
..\src\MySource1.cs ^ | |
..\src\MySource2.cs | |
set DEFINES=LOG_DEBUG,MY_DEBUG | |
set DEP_LIBS= | |
set PARAMS=-sdk:2 -codepage:utf8 -optimize+ -debug+ --lint --timestamp | |
if %PROCESSOR_ARCHITECTURE% == AMD64 set X86_PROGFILES=%ProgramFiles(x86)% | |
if %PROCESSOR_ARCHITECTURE% == x86 set X86_PROGFILES=%ProgramFiles% | |
set MCS="%X86_PROGFILES%\Unity\Editor\Data\MonoBleedingEdge\lib\mono\2.0\mcs.exe" | |
set UNITYDLL="%X86_PROGFILES%\Unity\Editor\Data\Managed\UnityEngine.dll" | |
%MCS% -reference:%UNITYDLL%,%DEP_LIBS% -define:%DEFINES% %PARAMS% -out:"%OUTPUT_LIB%" -target:library %INPUT_FILES% | |
echo. | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment