fredakilla / brtshaderc

bgfx runtime shader compiler. Library version of the bgfx shaderc tool to build bgfx shaders from sources at runtime.
38 stars 12 forks source link

The .lib is not generated #2

Closed PicosePablo closed 6 years ago

PicosePablo commented 6 years ago

Hi, Why if I insert this in the BGFX project, the project brtshaderc is generated, but the brtshaderc.lib doesn't exist? I cannot link to brtshadercRelease (for example) because it does not exist

PicosePablo commented 6 years ago

Directly, if I add a stupid line like this in the brtshader project, in vertexdecl.cpp file: asdjfhaasdfaehreu and then I compile it, visual studio 2017 told me that all is up to date or if I rebuild, all correct

It seems that the script is not correct, and I cannot found the solution

fredakilla commented 6 years ago

I see the problem. The script is not correct on windows. It miss a configuration() part for visual studio, without it the file brtshaderc.cpp is excluded from the build. It seems that it also miss some stuff because I have some link errors with an example. Usually I use it on linux with cmake, I didn't see this error. I think it need a correct rewrite of the script. I'll fix it soon.

fredakilla commented 6 years ago

fixed. Added example too.