Skip to content

Commit 195fb28

Browse files
committed
Windows: add import libs for GLFW/GLEW, add -L flag to linker command
1 parent 9e5099a commit 195fb28

5 files changed

Lines changed: 3 additions & 0 deletions

File tree

libs/windows-x64/libglew32.a

775 KB
Binary file not shown.

libs/windows-x64/libglew32.dll.a

2.54 MB
Binary file not shown.

libs/windows-x64/libglfw3.a

100 KB
Binary file not shown.

mode/CppMode.jar

30 Bytes
Binary file not shown.

src/java/CppBuild.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3145,6 +3145,9 @@ else if (!cmd.contains(defaultsCpp.getAbsolutePath()))
31453145
if (stbTTF.exists()) cmd.add("-DPROCESSING_HAS_STB_TRUETYPE");
31463146

31473147
if (win) {
3148+
// Link against bundled import libs in libs/windows-x64/
3149+
File winLibs = new File(runtimeDir.getParentFile(), "libs/windows-x64");
3150+
if (winLibs.exists()) cmd.add("-L" + winLibs.getAbsolutePath());
31483151
Collections.addAll(cmd,
31493152
"-lglfw3", "-lglew32", "-lopengl32", "-lglu32",
31503153
"-lcomdlg32", "-lshell32", "-lole32", "-luuid",

0 commit comments

Comments
 (0)