@@ -22,6 +22,8 @@ local pathUtilitiesInclude = pathUtilities .. "/include/"
2222local pathPluginInteropInclude = pathPluginInterop .. " /include/"
2323local pathPluginInteropIncludeSubdir = pathPluginInteropInclude .. " **"
2424local pathThirdPartyUnity = pathPluginInterop .. " /thirdParty/unity/include/"
25+ local pathThirdPartyGLDir = pathPluginInterop .. " /thirdParty/gl3w/include/" ;
26+ local pathSourceThirdPartyGLDir = pathPluginInterop .. " /thirdParty/gl3w/src/" ;
2527
2628loadrequire (' premake5-cuda' , " https://github.com/theComputeKid/premake5-cuda" )
2729print (" We use export compile commands module to export compilation database for clang. If you don't have the module you won't be able to compile with clang, BUT you can still compile with visual studio !" )
@@ -72,14 +74,13 @@ project "PluginInteropUnityCUDA"
7274 local SourceDir = rootProject .. " /src/" ;
7375 local IncludeSubDir = pathPluginInteropIncludeSubdir ;
7476 local IncludeDir = pathPluginInteropInclude ;
75- local ThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/include/" ;
76- local SourceThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/src/" ;
7777
7878 dependson {" Utilities" }
7979 files
8080 {
8181 SourceDir .. " **.c" ,
82- SourceThirdPartyGLDir .. " **.c" ,
82+ pathSourceThirdPartyGLDir .. " **.c" ,
83+ pathThirdPartyGLDir .. " **.h" ,
8384 SourceDir .. " **.cpp" ,
8485 IncludeDir .. " **.h" ,
8586 IncludeDir .. " **.hpp" ,
@@ -91,10 +92,9 @@ project "PluginInteropUnityCUDA"
9192 {
9293 IncludeDir ,
9394 IncludeSubDir ,
94- ThirdPartyGLDir ,
95+ pathThirdPartyGLDir ,
9596 pathThirdPartyUnity ,
9697 pathUtilitiesInclude ,
97- pathThirdPartyUnity
9898 }
9999
100100
@@ -158,13 +158,12 @@ project "SampleBasic"
158158 local SourceDir = rootProject .. " /src/" ;
159159 local IncludeSubDir = rootProject .. " /include/**" ;
160160 local IncludeDir = rootProject .. " /include/" ;
161- local ThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/include/" ;
162- local SourceThirdPartyGLDir = rootProject .. " /thirdParty/gl3w/src/" ;
163161 dependson {" PluginInteropUnityCUDA" }
164162 files
165163 {
166164 SourceDir .. " **.c" ,
167- SourceThirdPartyGLDir .. " **.c" ,
165+ -- SourceThirdPartyGLDir .. "**.c",
166+ -- ThirdPartyGLDir .. "**.h",
168167 SourceDir .. " **.cpp" ,
169168 IncludeDir .. " **.h" ,
170169 IncludeDir .. " **.cuh" ,
@@ -178,7 +177,7 @@ project "SampleBasic"
178177 {
179178 IncludeDir ,
180179 IncludeSubDir ,
181- ThirdPartyGLDir ,
180+ pathThirdPartyGLDir ,
182181 pathUtilitiesInclude ,
183182 pathPluginInteropInclude ,
184183 pathPluginInteropIncludeSubdir ,
0 commit comments