OK, thanks all, I now have something that works:

BEGIN {
        require Inline;
        import Inline C =>
                'DATA' =>
                NAME => 'Device::U2C',
                VERSION => '0.01',
                ($^O =~ /MSWin32/i) ?

                        # Windows
                        ( LIBS => '-L"..\..\..\..\implib" -li2cbrdg',
                          INC => '-I..\..\..\..\implib'
                        )

                :       # presumably, Linux
                        ( LIBS => '-li2cbrdg'
                        )
};

the funny relative path on Windows has to do with me including a 3rd
party binary import library in my module, and reaching it from the
directories created by inline. Not relevant to the basic approach.

-- John.

Reply via email to