Now, pdc command accepts multiple -I options. Like
pdc -I lualib -I otherlib Source test.pdx
Above command is running well.
But, PLAYDATE_LIB_PATH environment variable is not support multiple path.
I've tested a semi-colon separated list like PATH envirionment variable, not suppored.
Please support multiple path in the future version.
Best regards.
❯ rake cmake:simulator:debug build
cd _build/simulator.debug
cd -
rake build:simulator:debug
cd _build/simulator.debug
cd -
cd _build/simulator.debug
PLAYDATE_LIB_PATH="/Users/***/src/Playdate/test_multiple_lib_path/lualib,/Users/***/src/Playdate/test_multiple_lib_path/lualib2" make all
(...)
/Users/***/Developer/PlaydateSDK/bin/pdc -sdkpath /Users/***/Developer/PlaydateSDK /Users/***/src/Playdate/test_multiple_lib_path/Source /Users/***/src/Playdate/test_multiple_lib_path/test_multiple_lib_path.simulator.debug.pdx
error: /Users/***/src/Playdate/test_multiple_lib_path/Source/main.lua:1: No such file: sub2
In Rakefile, at line 98-99, you can change , to ;. So, it was same.
I think, since the pdc option supports it, it would be nice if the environment variable could support it as well.
I think you may have misunderstood. It already supports multiple paths using colon :, like so: PLAYDATE_LIB_PATH="/Users/***/src/Playdate/test_multiple_lib_path/lualib:/Users/***/src/Playdate/test_multiple_lib_path/lualib2"