Changeset 38:d68450d100a8 in xplcommon


Ignore:
Timestamp:
01/03/13 08:51:38 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added a utility function to emit debug info into X-Plane's log

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r4 r38  
    2121fi
    2222
     23AC_MSG_CHECKING([where to find the X-Plane Plugin SDK])
     24AC_ARG_WITH(xpsdk,
     25            AC_HELP_STRING([--with-xpsdk=DIR],
     26                           [use the X-Plane Plugin SDK in DIR]),
     27            [
     28                if test -r $withval/CHeaders/XPLM/XPLMPlugin.h; then
     29                    AC_MSG_RESULT([$withval])
     30                    XPSDK_INCLUDES="-I$withval/CHeaders/XPLM -I$withval/CHeaders/Wrappers -I$withval/CHeaders/Widgets"
     31                    if test $_target_win32 -eq 0; then
     32                        XPSDK_LDFLAGS="-L$withval/Libraries/Win"
     33                    else
     34                        XPSDK_LDFLAGS=""
     35                    fi
     36                else
     37                    AC_MSG_FAILURE([not found in $withval])
     38                fi
     39            ],
     40            [
     41                 AC_MSG_FAILURE([please, specify])
     42            ])
     43
     44AC_SUBST(XPSDK_INCLUDES)
     45AC_SUBST(XPSDK_LDFLAGS)
     46
    2347AC_CONFIG_FILES([
    2448        Makefile
  • src/xplcommon/Makefile.am

    r36 r38  
     1INCLUDES=@XPSDK_INCLUDES@
     2
    13SUBDIRS=
    24if TARGET_API_POSIX
    35SUBDIRS+=posix
     6AM_CPPFLAGS=-DLIN
     7AM_CXXFLAGS=-fPIC -fno-stack-protector
    48endif
     9
    510if TARGET_API_WIN32
    611SUBDIRS+=win32
    7 AM_LDFLAGS=-no-undefined
     12AM_CPPFLAGS=-DIBM
     13AM_LDFLAGS=@XPSDK_LDFLAGS@ -lXPLM -no-undefined
    814endif
    915
     
    1319        PseudoRandom.cc         \
    1420        BlockingStream.cc       \
    15         DataStream.cc
     21        DataStream.cc           \
     22        Util.cc
    1623
    1724if TARGET_API_POSIX
     
    4451        LocalClientSocket.h     \
    4552        BlockingStream.h        \
    46         DataStream.h
     53        DataStream.h            \
     54        Util.h
Note: See TracChangeset for help on using the changeset viewer.