Changeset 1:ee063b6aaa32 in vscpl


Ignore:
Timestamp:
01/13/13 18:34:10 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The Thread class can be compiled for Linux and Win32

Files:
17 added
5 edited

Legend:

Unmodified
Added
Removed
  • bootstrap.sh

    r0 r1  
    33scriptdir=`dirname $0`
    44
    5 tempdir=`mktemp -d`
    6 trap "rm -rf ${tempdir}" EXIT
    7 
    85cd "${scriptdir}"
    96
    10 ln -s `pwd`/misc/vscpl.m4.in "${tempdir}/vscpl.m4"
     7if test ! -e m4/vscpl.m4; then
     8    mkdir -p m4
     9    ln -s ../misc/vscpl.m4.in m4/vscpl.m4
     10fi
    1111
    1212libtoolize
    13 aclocal -I "${tempdir}"
     13aclocal -I m4
    1414automake -a
    1515autoconf
  • configure.ac

    r0 r1  
    1717        src/hu/varadiistvan/Makefile
    1818        src/hu/varadiistvan/scpl/Makefile
     19        src/hu/varadiistvan/scpl/config.h
     20        src/hu/varadiistvan/scpl/_posix/Makefile
     21        src/hu/varadiistvan/scpl/_win32/Makefile
    1922        misc/Makefile
    2023        misc/vscpl.m4
     
    2225])
    2326
    24 AC_CONFIG_HEADERS([src/hu/varadiistvan/scpl/config.h])
    25 
    2627AC_OUTPUT()
  • misc/vscpl.m4.in

    r0 r1  
    99    AM_CONDITIONAL([TARGET_API_WIN64], test $_target_win32 -eq 0 -a "$host_cpu" = "x86_64")
    1010    AM_CONDITIONAL([TARGET_API_POSIX], test $_target_win32 -ne 0)
     11    TARGET_API_POSIX=0
     12    TARGET_API_WIN32=0
     13    TARGET_API_WIN64=0
    1114    if test $_target_win32 -eq 0; then
    1215        if test "$host_cpu" = "x86_64"; then
    13            AC_DEFINE([TARGET_API_WIN64], [1], [Define if the target is the 64-bit Win32 API.])
     16            TARGET_API_WIN64=1
    1417        fi
    15         AC_DEFINE([TARGET_API_WIN32], [1], [Define if the target is the Win32 API.])
     18        TARGET_API_WIN32=1
    1619    else
    17         AC_DEFINE([TARGET_API_POSIX], [1], [Define if the target is the POSIX API.])
     20        TARGET_API_POSIX=1
    1821    fi
    1922
     23    AC_SUBST(TARGET_API_POSIX)
     24    AC_SUBST(TARGET_API_WIN32)
     25    AC_SUBST(TARGET_API_WIN64)
    2026])
    2127
  • src/hu/varadiistvan/scpl/Makefile.am

    r0 r1  
     1SUBDIRS=
     2
     3if TARGET_API_POSIX
     4SUBDIRS+=_posix
     5endif
     6
     7if TARGET_API_WIN32
     8SUBDIRS+=_win32
     9AM_LDFLAGS=-no-undefined
     10endif
     11
     12lib_LTLIBRARIES=libvscpl.la
     13
     14libvscpl_la_SOURCES=\
     15        dummy.cc
     16
     17if TARGET_API_POSIX
     18libvscpl_la_LIBADD=_posix/libvscpl_posix.la
     19endif
     20
     21if TARGET_API_WIN32
     22libvscpl_la_LIBADD=_win32/libvscpl_win32.la
     23endif
     24
     25include_vscpldir=$(includedir)/hu/varadiistvan/scpl
     26include_vscpl_HEADERS=\
     27        config.h                \
     28        Thread.h
  • src/hu/varadiistvan/scpl/config.h.in

    r0 r1  
    1 /* src/hu/varadiistvan/scpl/config.h.in.  Generated from configure.ac by autoheader.  */
     1// Define to 1, if the library is compiled for the POSIX API
     2#define TARGET_API_POSIX @TARGET_API_POSIX@
    23
    3 /* Define to 1 if you have the <dlfcn.h> header file. */
    4 #undef HAVE_DLFCN_H
     4// Define to 1, if the library is compiled for the 32- or 64-bit
     5// Win32 API
     6#define TARGET_API_WIN32 @TARGET_API_WIN32@
    57
    6 /* Define to 1 if you have the <inttypes.h> header file. */
    7 #undef HAVE_INTTYPES_H
    8 
    9 /* Define to 1 if you have the <memory.h> header file. */
    10 #undef HAVE_MEMORY_H
    11 
    12 /* Define to 1 if you have the <stdint.h> header file. */
    13 #undef HAVE_STDINT_H
    14 
    15 /* Define to 1 if you have the <stdlib.h> header file. */
    16 #undef HAVE_STDLIB_H
    17 
    18 /* Define to 1 if you have the <strings.h> header file. */
    19 #undef HAVE_STRINGS_H
    20 
    21 /* Define to 1 if you have the <string.h> header file. */
    22 #undef HAVE_STRING_H
    23 
    24 /* Define to 1 if you have the <sys/stat.h> header file. */
    25 #undef HAVE_SYS_STAT_H
    26 
    27 /* Define to 1 if you have the <sys/types.h> header file. */
    28 #undef HAVE_SYS_TYPES_H
    29 
    30 /* Define to 1 if you have the <unistd.h> header file. */
    31 #undef HAVE_UNISTD_H
    32 
    33 /* Define to 1 if you have the <windows.h> header file. */
    34 #undef HAVE_WINDOWS_H
    35 
    36 /* Define to 1 if you have the <winsock2.h> header file. */
    37 #undef HAVE_WINSOCK2_H
    38 
    39 /* Define to the sub-directory in which libtool stores uninstalled libraries.
    40    */
    41 #undef LT_OBJDIR
    42 
    43 /* Name of package */
    44 #undef PACKAGE
    45 
    46 /* Define to the address where bug reports for this package should be sent. */
    47 #undef PACKAGE_BUGREPORT
    48 
    49 /* Define to the full name of this package. */
    50 #undef PACKAGE_NAME
    51 
    52 /* Define to the full name and version of this package. */
    53 #undef PACKAGE_STRING
    54 
    55 /* Define to the one symbol short name of this package. */
    56 #undef PACKAGE_TARNAME
    57 
    58 /* Define to the home page for this package. */
    59 #undef PACKAGE_URL
    60 
    61 /* Define to the version of this package. */
    62 #undef PACKAGE_VERSION
    63 
    64 /* Define to 1 if you have the ANSI C header files. */
    65 #undef STDC_HEADERS
    66 
    67 /* Define if the target is the POSIX API. */
    68 #undef TARGET_API_POSIX
    69 
    70 /* Define if the target is the Win32 API. */
    71 #undef TARGET_API_WIN32
    72 
    73 /* Define if the target is the 64-bit Win32 API. */
    74 #undef TARGET_API_WIN64
    75 
    76 /* Version number of package */
    77 #undef VERSION
     8// Define to 1, if the library is compiled for the 64-bit
     9// Win32 API
     10#define TARGET_API_WIN64 @TARGET_API_WIN64@
Note: See TracChangeset for help on using the changeset viewer.