xlab / c-for-go

Automatic C-Go Bindings Generator for Go Programming Language
https://c.for-go.com
MIT License
1.5k stars 119 forks source link

Best way to handle different include paths for different operating systems? #128

Open danjenkins opened 2 years ago

danjenkins commented 2 years ago

I need to pass in different include paths for different OS's

The c++ sdk I'm looking at has different include directories for mac, linux and windows...

trying to figure out how best to deal with this?

xlab commented 2 years ago

The best you can do is to template it into the .yml file. It's not very convenient, especially when you have DEFINE overrides that are platform-dependent, but I didn't come up with a good solution.

Any proposal is welcome.