ZOOX_WORKSPACE_ROOT = getenv('ZOOX_WORKSPACE_ROOT');

deps = {
    'firmware/emu/drive_manager/utils/steering_conversions.cpp', ...
    'firmware/zlog/zlogger.cpp',...
    'firmware/zlog/to_string.cpp',...
    'firmware/common/math/lookup.cpp'
    };

fullfile_deps = fullfile(ZOOX_WORKSPACE_ROOT, deps);

mex(sprintf('-I%s', ZOOX_WORKSPACE_ROOT), ...
    'sfun_conversion_roadwheel_to_rack.cpp', ...
    fullfile_deps{:}, ...
    '-DZPROTECTED=private','-v')

mex(sprintf('-I%s', ZOOX_WORKSPACE_ROOT), ...
    'sfun_conversion_steeringwheel_to_rack.cpp', ...
    fullfile_deps{:}, ...
    '-DZPROTECTED=private','-v')

mex(sprintf('-I%s', ZOOX_WORKSPACE_ROOT), ...
    'sfun_conversion_rack_to_roadwheel.cpp', ...
    fullfile_deps{:}, ...
    '-DZPROTECTED=private','-v')
