FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/src/runtime/buildclrmodule.bat at develop · achernet/pythonnet · GitHub
achernet
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
src
/
runtime
/
buildclrmodule.bat
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (27 loc) · 1021 Bytes
Breadcrumbs
pythonnet
/
src
/
runtime
/
buildclrmodule.bat
Copy path
File metadata and controls
36 lines (27 loc) · 1021 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
::
Call with buildclrmodule.bat <AnyCPU|x64> <INPUT_DIRECTORY> <OUTPUT_PATH>
@
echo
off
set
TARGET_PLATFORM
=
%1
set
INPUT_DIRECTORY
=
%~2
set
INPUT_PATH
=
"
%INPUT_DIRECTORY%
\clrmodule.il
"
set
OUTPUT_PATH
=
%3
if
%TARGET_PLATFORM%
==
x86
goto
SETUP32
if
%TARGET_PLATFORM%
==
x64
goto
SETUP64
goto
ERROR_BAD_PLATFORM
:
SETUP32
set
INCLUDE_PATH
=
"
%INPUT_DIRECTORY%
\x86
"
goto
BUILD_CLR_MODULE
:
SETUP64
set
INCLUDE_PATH
=
"
%INPUT_DIRECTORY%
\x64
"
set
ILASM_EXTRA_ARGS
=
/pe64 /x64
goto
BUILD_CLR_MODULE
:
ERROR_BAD_PLATFORM
echo
Unknown target platform:
%TARGET_PLATFORM%
exit
/b
1
:
ERROR_MISSING_INPUT
echo
Can't find input file:
%INPUT_PATH%
exit
/b
1
:
BUILD_CLR_MODULE
if
not
exist
%INPUT_PATH%
goto
ERROR_MISSING_INPUT
%windir%
\Microsoft.NET\Framework\v4.0.30319\ilasm /nologo /quiet /dll
%ILASM_EXTRA_ARGS%
/include=
%INCLUDE_PATH%
/output=
%OUTPUT_PATH%
%INPUT_PATH%
::
: 2.0 or 3.5
::
:%windir%\Microsoft.NET\Framework\v2.0.50727\ilasm /nologo /quiet /dll %ILASM_EXTRA_ARGS% /include=%INCLUDE_PATH% /output=%OUTPUT_PATH% %INPUT_PATH%
Back
|
FazBrowse Home
|
New Git URL