diff options
| author | 2023-09-23 08:50:44 -0700 | |
|---|---|---|
| committer | 2023-09-23 08:53:37 -0700 | |
| commit | 2f4a6214a27d0eac040b9f6e23c4086e1588950a (patch) | |
| tree | d7fdf493dc11ec58c5f867b2d5116273642ec08b /build_win.bat | |
| parent | Add optional buffer-size to file/open. (diff) | |
Make meson build work on windows.
By default, use more traditional linking pattern with meson.
The janet.exe will now link to janet-x.x.dll on windows (and
similar for linux/posix) when built with meson. This is slightly
less efficient and means that janet.exe built this way is no longer
standalone (you would need to move the dll along with the exe), but
plays better with most build systems.
Diffstat (limited to 'build_win.bat')
| -rw-r--r-- | build_win.bat | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/build_win.bat b/build_win.bat index e491262c..d6c56e97 100644 --- a/build_win.bat +++ b/build_win.bat @@ -64,10 +64,6 @@ 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 @@ -126,8 +122,6 @@ 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 |
