How to use SRP Batcher with a custom .cginc in Unity

I want to use the SRP Batcher with my custom .cginc that I am including in my shaderlab HLSL shader, but I need to pass some variables to the library. It seems I can’t include them in the CBUFFER in both, I can’t put them just in my shader or the library doesn’t get them, and if I just define them in the library without putting them in my CBUFFER in the shader script, I can’t use the batcher. Any thoughts? Thanks!