Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/xcw/bin/helenos-pkg-config

    rf98434b8 rb501de7  
    3535SRC_ROOT="$XCW/../../.."
    3636UARCH="$("$XCW"/helenos-bld-config --uarch)"
     37if [ -z "$EXPORT_DIR" ]; then
     38        EXPORT_DIR="$SRC_ROOT/uspace/export"
     39fi
     40INCLUDE_DIR="$EXPORT_DIR/include"
     41LIB_DIR="$EXPORT_DIR/lib"
    3742
    38 libmath_cflags="-I$SRC_ROOT/uspace/lib/math/include\
    39     -I$SRC_ROOT/uspace/lib/math/arch/$UARCH/include"
    40 libmath_libs="$SRC_ROOT/uspace/lib/math/libmath.a"
     43libmath_cflags="-I$INCLUDE_DIR/libmath"
     44libmath_libs="$LIB_DIR/libmath.a"
    4145
    42 libgui_cflags="-I$SRC_ROOT/uspace/lib/gui"
    43 libgui_libs="$SRC_ROOT/uspace/lib/gui/libgui.a"
     46libgui_cflags="-I$INCLUDE_DIR/libgui"
     47libgui_libs="$LIB_DIR/libgui.a"
    4448
    45 libdraw_cflags="-I$SRC_ROOT/uspace/lib/draw"
    46 libdraw_libs="$SRC_ROOT/uspace/lib/draw/libdraw.a \
    47     $SRC_ROOT/uspace/lib/softrend/libsoftrend.a"
     49libdraw_cflags="-I$INCLUDE_DIR/libdraw"
     50libdraw_libs="$LIB_DIR/libdraw.a $LIB_DIR/libsoftrend.a"
    4851
    49 libhound_cflags="-I$SRC_ROOT/uspace/lib/hound/include"
    50 libhound_libs="$SRC_ROOT/uspace/lib/hound/libhound.a"
     52libhound_cflags="-I$INCLUDE_DIR/libhound"
     53libhound_libs="$LIB_DIR/libhound.a"
    5154
    52 libpcm_cflags="-I$SRC_ROOT/uspace/lib/pcm/include"
    53 libpcm_libs="$SRC_ROOT/uspace/lib/pcm/libpcm.a"
     55libpcm_cflags="-I$INCLUDE_DIR/libpcm"
     56libpcm_libs="$LIB_DIR/libpcm.a"
    5457
    5558action=none
Note: See TracChangeset for help on using the changeset viewer.