Changeset 21449 in webkit


Ignore:
Timestamp:
May 13, 2007, 10:13:20 PM (18 years ago)
Author:
kevino
Message:

Restore the Windows build after WEBKITOUTPUTDIR changes, and also copy over dependency dlls to product dir so that testkjs and the sample app won't complain about missing dlls.

Location:
branches/wx-port-alpha/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/wx-port-alpha/trunk/Bakefiles/presets.bkl

    r21434 r21449  
    6464                <if cond="FORMAT in ['msvc','msvs2005prj']">
    6565                        <sys-lib>jscore</sys-lib>
     66                        <sys-lib>winmm</sys-lib> <!-- for timeGetTime -->
    6667                        <lib-path>$(WKOUTPUTDIR)</lib-path>
    6768                </if>
  • branches/wx-port-alpha/trunk/JavaScriptCore/Makefile.vc

    r21434 r21449  
    11# =========================================================================
    22#     This makefile was generated by
    3 #     Bakefile 0.2.2 (http://www.bakefile.org)
     3#     Bakefile 0.2.2 (http://bakefile.sourceforge.net)
    44#     Do not modify, all changes will be overwritten!
    55# =========================================================================
     
    4444
    4545TESTKJS_CXXFLAGS = /MDd /DWIN32 /I$(WK_ROOT)\icu\include \
    46         /I$(WK_ROOT)\JavaScriptCore /I$(WK_ROOT)\JavaScriptCore\os-win32 /Zi \
    47         /D_DEBUG /Fd$(WKOUTPUTDIR)\testkjs.pdb /I. $(CPPFLAGS) $(CXXFLAGS)
     46        /I$(WK_ROOT)\JavaScriptCore /I$(WK_ROOT)\JavaScriptCore\os-win32 \
     47        /I.\..\pthreads\include /Zi /D_DEBUG /Fd$(WKOUTPUTDIR)\testkjs.pdb /I. \
     48        $(CPPFLAGS) $(CXXFLAGS)
    4849TESTKJS_OBJECTS =  \
    4950        obj-msvc\testkjs_testkjs.obj
    50 TESTKJS_ODEP =  $(WKOUTPUTDIR)\jscore.lib
    5151DFTABLES_CFLAGS =  /MD /DWIN32 /I.\wtf  $(CPPFLAGS) $(CFLAGS)
    5252DFTABLES_OBJECTS =  \
     
    162162        -if exist $(WKOUTPUTDIR)\jscore.lib del $(WKOUTPUTDIR)\jscore.lib
    163163
    164 $(WKOUTPUTDIR)\testkjs.exe: $(TESTKJS_OBJECTS)
    165         link /NOLOGO /OUT:$@ $(LDFLAGS) /LIBPATH:$(WK_ROOT)\icu\lib /LIBPATH:$(WKOUTPUTDIR) /DEBUG @<<
    166         $(TESTKJS_OBJECTS)  icuuc.lib icuin.lib jscore.lib
     164$(WKOUTPUTDIR)\testkjs.exe: $(TESTKJS_OBJECTS) $(WKOUTPUTDIR)\jscore.lib
     165        link /NOLOGO /OUT:$@ $(LDFLAGS) /LIBPATH:$(WK_ROOT)\icu\lib /LIBPATH:$(WKOUTPUTDIR) /LIBPATH:$(WK_ROOT)\pthreads\lib /DEBUG @<<
     166        $(TESTKJS_OBJECTS)  icuuc.lib icuin.lib jscore.lib winmm.lib pthreadVC2.lib
    167167<<
    168168
     
    181181<<
    182182
    183 obj-msvc\testkjs_testkjs.obj: .\.\kjs\testkjs.cpp $(TESTKJS_ODEP)
     183obj-msvc\testkjs_testkjs.obj: .\.\kjs\testkjs.cpp
    184184        $(CXX) /c /nologo /TP /Fo$@ $(TESTKJS_CXXFLAGS) $**
    185185
  • branches/wx-port-alpha/trunk/JavaScriptCore/jscore.bkl

    r21434 r21449  
    9797    </template>
    9898   
    99     <exe id="testkjs" template="icu,jscore">
     99    <exe id="testkjs" template="icu,jscore,pthreads">
    100100        <cxx-rtti>off</cxx-rtti>
    101101        <cxx-exceptions>off</cxx-exceptions>
    102102        <debug-info>on</debug-info>
    103         <objects-depend>jscore</objects-depend>
     103        <depends>jscore</depends>
    104104        <include>$(SRCDIR)</include>
    105105        <dirname>$(WKOUTPUTDIR)</dirname>
  • branches/wx-port-alpha/trunk/WebKitTools/Scripts/build-wxwebkit

    r21434 r21449  
    1010WK_ROOTDIR=$WK_ROOT
    1111export WXWEBKIT=1
    12 export WEBKITOUTPUTDIR=`perl -e "use webkitdirs; print baseProductDir()"`
     12WEBKITOUTPUTDIR=`perl -e "use webkitdirs; print baseProductDir()"`
     13WINDEPS="pthreads/lib/pthreadVC2.dll icu/bin/icuuc34.dll icu/bin/icudt34.dll libcurl/*.dll sqlite3/sqlite3.dll"
     14WINDEPS="$WINDEPS $WXWIN/lib/vc_dll/wxmsw28ud_core_vc.dll $WXWIN/lib/vc_dll/wxbase28ud_vc.dll"
    1315# TODO: check that we are running from the root of the source tree...
    1416
     17# cygpath will bork if the dir doesn't exist...
     18mkdir -p $WEBKITOUTPUTDIR
    1519
    1620if [ $OSTYPE == cygwin ]; then
    1721    EXE=.exe
    18     WK_ROOTDIR=`cygpath -m $WK_ROOT`
     22    WK_ROOTDIR=`cygpath -d $WK_ROOT`
     23    WEBKITOUTPUTDIR=`cygpath -d $WEBKITOUTPUTDIR`
     24    export WEBKITOUTPUTDIR
    1925    if [ -z $WXWIN ]; then
    2026        echo "Error, you must set WXWIN to your wxWidgets root directory."
     
    2430        export BAKEFILE_PATHS=$WXWIN/build/bakefiles/wxpresets
    2531    fi
     32    LINKER=`which link`
     33    if [ "$LINKER" = "/usr/bin/link" ]; then
     34        echo "WARNING: wxWebKit builds using MSVC on Windows, but it looks like"
     35        echo "you have the GCC linker on your path. If /usr/bin/link does NOT point"
     36        echo "to the MSVC linker, you need to move it or change your path to pick up"
     37        echo "Microsoft's link.exe program first."
     38    fi
     39
    2640else
     41    export WEBKITOUTPUTDIR
    2742    WX_PREFIX=`wx-config --prefix`
    2843    if [ ! -d "$WX_PREFIX" ]; then
     
    173188        fi
    174189    fi
     190
     191    if [ "$OSTYPE" = "cygwin" ]; then
     192        echo "Copying necessary DLLs to run test and sample applications..."
     193        cd $WK_ROOT
     194        cp $WINDEPS $WEBKITOUTPUTDIR
     195    fi
    175196fi
    176197
  • branches/wx-port-alpha/trunk/WebKitTools/Scripts/webkitdirs.pm

    r21319 r21449  
    140140    return if defined $configurationProductDir;
    141141    determineBaseProductDir();
    142     if(isCygwin()) {
     142    if (isWx()){
     143        $configurationProductDir = "$baseProductDir";
     144    } elsif(isCygwin()) {
    143145        $configurationProductDir = "$baseProductDir/bin";
    144     }
    145     elsif (isWx()){
    146         $configurationProductDir = "$baseProductDir";
    147146    } else {
    148147        determineConfiguration();
Note: See TracChangeset for help on using the changeset viewer.