Changeset 24523 for lang/c

Show
Ignore:
Timestamp:
11/21/08 01:02:59 (5 years ago)
Author:
saturday06
Message:

iroiro

Location:
lang/c/libintl-msvc
Files:
3 modified
1 moved

Legend:

Unmodified
Added
Removed
  • lang/c/libintl-msvc/1.sh

    r24522 r24523  
    2222ar rv win_iconv/lib/libiconv.a win_iconv.o 
    2323 
    24 rm -fr win_iconv-mbcs 
    25 mkdir -p win_iconv-mbcs/include 
    26 mkdir -p win_iconv-mbcs/lib 
    27 cp iconv.h win_iconv-mbcs/include/ 
    28 gcc $CFLAGS -c win_iconv.c -o win_iconv-mbcs.o 
    29 ar rv win_iconv-mbcs/lib/libiconv.a win_iconv-mbcs.o 
     24rm -fr win_iconv-win9x 
     25mkdir -p win_iconv-win9x/include 
     26mkdir -p win_iconv-win9x/lib 
     27cp iconv.h win_iconv-win9x/include/ 
     28gcc $CFLAGS -c win_iconv.c -o win_iconv-win9x.o 
     29ar rv win_iconv-win9x/lib/libiconv.a win_iconv-win9x.o 
    3030 
    3131# --------------------- 
     
    3333# --------------------- 
    3434 
    35 cd recipes/gettext-runtime 
     35cd recipes/libintl 
    3636rm -rf intl 
    3737autoreconf -i 
     
    5555 
    5656# --------------------- 
    57 # msvc(MBCS) 
     57# msvc(Win9x) 
    5858# --------------------- 
    5959CFLAGS="$CFLAGS_MSVC" ./configure \ 
    60   --with-libiconv-prefix=`pwd`/../../win_iconv-mbcs \ 
     60  --with-libiconv-prefix=`pwd`/../../win_iconv-win9x \ 
    6161  --with-included-gettext \ 
    6262  --enable-threads=win32 && 
     
    6464 
    6565strip -gx intl/*.o 
    66 mkdir ../msvc-mbcs-obj 
     66mkdir ../msvc-win9x-obj 
    6767for obj in $objlist 
    6868do 
    69   cp -f intl/$obj ../msvc-mbcs-obj/${obj}bj 
     69  cp -f intl/$obj ../msvc-win9x-obj/${obj}bj 
    7070done 
    7171 
    7272 
    7373# --------------------- 
    74 # msvc(UNICODE) 
     74# msvc 
    7575# --------------------- 
    7676CFLAGS="$CFLAGS_MSVC $CFLAGS_UNICODE" ./configure \ 
     
    8888 
    8989# --------------------- 
    90 # mingw(MBCS) 
     90# mingw(Win9x) 
    9191# --------------------- 
    9292CFLAGS="$CFLAGS" ./configure \ 
    93   --with-libiconv-prefix=`pwd`/../../win_iconv-mbcs \ 
     93  --with-libiconv-prefix=`pwd`/../../win_iconv-win9x \ 
    9494  --with-included-gettext \ 
    9595  --enable-threads=win32 && 
    96   cd intl && make clean && make && cp -f libintl.a ../../../libintl-mbcs.a && cd .. 
     96  cd intl && make clean && make && cp -f libintl.a ../../../libintl-win9x.a && cd .. 
    9797 
    9898# --------------------- 
    99 # mingw(UNICODE) 
     99# mingw 
    100100# --------------------- 
    101101CFLAGS="$CFLAGS $CFLAGS_UNICODE" ./configure \ 
     
    110110cd ../../samples 
    111111 
    112 g++ $CFLAGS -o mingw-sample-mbcs.exe sample.cpp ../win_iconv-mbcs.o ../libintl-mbcs.a -luser32 -lshlwapi 
     112g++ $CFLAGS -o mingw-sample-win9x.exe sample.cpp ../win_iconv-win9x.o ../libintl-win9x.a -luser32 -lshlwapi 
    113113g++ $CFLAGS $CFLAGS_UNICODE -o mingw-sample.exe sample.cpp ../win_iconv.o ../libintl.a -luser32 -lshlwapi 
    114 ./mingw-sample-mbcs > hello-mbcs.txt 
     114./mingw-sample-win9x > hello-win9x.txt 
    115115./mingw-sample > hello.txt 
    116116cd .. 
  • lang/c/libintl-msvc/2.bat

    r24522 r24523  
    44 
    55lib /OUT:libintl.lib       recipes\msvc-obj\*.obj 
    6 lib /OUT:libintl-mbcs.lib  recipes\msvc-mbcs-obj\*.obj 
     6lib /OUT:libintl-win9x.lib  recipes\msvc-win9x-obj\*.obj 
    77 
    88REM -------------------- 
     
    1212REM use win_iconv.c 
    1313cd samples 
    14 cl /Ot /Femsvc-sample-mbcs.exe sample.cpp ..\libintl-mbcs.lib ..\win_iconv.c user32.lib /EHsc 
     14cl /Ot /Femsvc-sample-win9x.exe sample.cpp ..\libintl-win9x.lib ..\win_iconv.c user32.lib /EHsc 
    1515cl /Ot /Femsvc-sample.exe sample.cpp ..\libintl.lib ..\win_iconv.c user32.lib /EHsc /DUNICODE  /D_UNICODE 
    16 msvc-sample-mbcs 
     16msvc-sample-win9x 
    1717msvc-sample 
    1818cd .. 
  • lang/c/libintl-msvc/dist.sh

    r24522 r24523  
    11rm -rf dist 
    22mkdir dist 
    3 cp -fr libintl.h iconv.h win_iconv.c libintl-mbcs.a libintl.a libintl.lib libintl-mbcs.lib samples dist 
     3cp -fr libintl.h iconv.h win_iconv.c libintl-win9x.a libintl.a libintl.lib libintl-win9x.lib samples dist 
    44cd dist 
    55 
  • lang/c/libintl-msvc/recipes/libintl