Need the -LD flag for both configs to build a DLL. More: https://learn.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library?view=msvc-170
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
SET flags=-Od -ZI -MDd
|
SET flags=-Od -ZI -MDd
|
||||||
SET config=Debug
|
SET config=Debug
|
||||||
IF "%1" == "release" (
|
IF "%1" == "release" (
|
||||||
SET flags=-O2 -MD -LD
|
SET flags=-O2 -MD
|
||||||
SET config=Release
|
SET config=Release
|
||||||
)
|
)
|
||||||
SET srcs=src\*
|
SET srcs=src\*
|
||||||
mkdir bin obj
|
mkdir bin obj
|
||||||
cl %srcs% ext\glfw\build\src\%config%\glfw3.lib kernel32.lib user32.lib Gdi32.lib Shell32.lib -I inc -I ext\glm -I ext\glfw\include %flags% -std:c++20 -MP -Fo:obj\\ -Fe:bin\\LivePlotter.dll
|
cl %srcs% ext\glfw\build\src\%config%\glfw3.lib kernel32.lib user32.lib Gdi32.lib Shell32.lib -I inc -I ext\glm -I ext\glfw\include %flags% -std:c++20 -MP -LD -Fo:obj\\ -Fe:bin\\LivePlotter.dll
|
||||||
COPY /Y assets\* bin
|
COPY /Y assets\* bin
|
||||||
COPY /Y assets\shaders\* bin
|
COPY /Y assets\shaders\* bin
|
||||||
|
|||||||
Reference in New Issue
Block a user