Internal header file included in dmsdk

I’m developing a native extension and using the Defold SDK. I downloaded defoldsdk_headers.zip, extracted it and added dmsdk folder to my include path. In v1.9.3 and before, this worked as expected: simply writing #include <dmsdk/sdk.h> got type hints and auto completion in IDE without any error.

However since v1.9.4 the IDE will complain that the file graphics/graphics_ddf.h included by dmsdk/graphics/graphics.h is missing. I figured out that this change was introduced by #8743 which moved the definition of enum VertexStepFunction to graphics_ddf.proto.

I’m temporarily adding all other stuffs in defoldsdk to include paths to avoid this problem, but it’s generally not a good idea. I’m also working on packaging defoldsdk-headers to AUR and I want to keep the package as clean as possible. I’m considering patching graphics.h just for packaging. But I’d really appreciate it if we can solve this issue from source.

2 Likes

Could you open a ticket about this on our GitHub? Most of the team is not working during holidays so this will probably be forgotten otherwise :slight_smile:

1 Like

I’m not sure if this is a bug or something else… so I’m posting here for some ideas…?

It sounds like a regression if it worked previously, which is why I think we need to fix it in the engine. And unless there’s an issue reported on GitHub it’s not likely that anyone will look at it from our side

Issue created at Internal header file included in dmsdk · Issue #9993 · defold/defold · GitHub.

Thanks!