diff options
| author | 2023-09-20 20:07:03 -0700 | |
|---|---|---|
| committer | 2023-09-20 20:07:03 -0700 | |
| commit | 910b9cf1fdd202aa780a75285f84c87bbd3ca659 (patch) | |
| tree | 0bb3f7ed58724e5d2db3d0f46f2503ad2ce9ebf4 /build_win.bat | |
| parent | Work on dllimport option for janet. (diff) | |
Distinguish between JANET_API and JANET_EXPORT
One is a way to export symbols, the other a way to reference
API functions. Also include prebuilt dlljanet.dll and dlljanet.lib
for windows to save people the trouble of compiling janet.c themselves.
Diffstat (limited to 'build_win.bat')
| -rw-r--r-- | build_win.bat | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build_win.bat b/build_win.bat index d6c56e97..e491262c 100644 --- a/build_win.bat +++ b/build_win.bat @@ -64,6 +64,10 @@ rc /nologo /fobuild\janet_win.res janet_win.rc %JANET_LINK% /out:janet.exe build\janet.obj build\shell.obj build\janet_win.res @if errorlevel 1 goto :BUILDFAIL +@rem Build dynamic library (dlljanet.dll) +%JANET_LINK% /DLL /out:build\dlljanet.dll build\janet.obj +@if errorlevel 1 goto :BUILDFAIL + @rem Build static library (libjanet.lib) %JANET_LINK_STATIC% /out:build\libjanet.lib build\janet.obj @if errorlevel 1 goto :BUILDFAIL @@ -122,6 +126,8 @@ copy janet.def dist\janet.def janet.exe tools\patch-header.janet src\include\janet.h src\conf\janetconf.h build\janet.h copy build\janet.h dist\janet.h copy build\libjanet.lib dist\libjanet.lib +copy build\dlljanet.dll dist\dlljanet.dll +copy build\dlljanet.lib dist\dlljanet.lib @rem Create installer janet.exe -e "(->> janet/version (peg/match ''(* :d+ `.` :d+ `.` :d+)) first print)" > build\version.txt |
