# Set these variables to turn on and off compiling WebKit and adding # it to the image. The second depends on the first. COMPILE_WEBKIT = 1 ; ADD_WEBKIT_TO_IMAGE = 1 ; # Turn on to include some JavaScript test files, described below. Depends # on the ADD_WEBKIT_TO_IMAGE variable. INCLUDE_JS_TESTS = 0 ; # Turn on to include binaries related to some of the WebKit dependent # libraries. This is independent of the above variables. INCLUDE_LIBRARY_BINARIES = 0 ; if $(COMPILE_WEBKIT) { DeferredSubInclude HAIKU_TOP 3rdparty WebKit ; if $(ADD_WEBKIT_TO_IMAGE) { HAIKU_IMAGE_SIZE = 200 ; # JavaScriptCore and test file AddFilesToHaikuImage home config lib : libjavascriptcore.so ; AddFilesToHaikuImage home config bin : testkjs ; # WebCore AddFilesToHaikuImage home config lib : libwebcore.so ; AddFilesToHaikuImage home config bin : HaikuLauncher ; # The following script creates the various symlinks for the ICU # libraries which are copied below. ICU uses this technique which # supposedly makes dealing with shared libraries easier. # # NOTE: This script must be run on a new Haiku image before any # WebKit related programs can be run! local scripts = linkicu.sh ; SEARCH on $(scripts) = [ FDirName $(HAIKU_BUILD_RULES_DIR) ] ; AddFilesToHaikuImage home config bin : $(scripts) ; local webKitDepLibs = libicudata.so.36.0 libicui18n.so.36.0 libicuio.so.36.0 libicule.so.36.0 libiculx.so.36.0 libicutu.so.36.0 libicuuc.so.36.0 libxml2.so libsqlite3.so libcurl.so ; SEARCH on $(webKitDepLibs) = [ FDirName $(HAIKU_TOP) 3rdparty WebKitLibs lib ] ; AddFilesToHaikuImage home config lib : $(webKitDepLibs) ; # Adds some JavaScript test files to the image to test JavaScriptCore. # These can be tested by running testkjs like so: # # testkjs shell.js Array/* # # The above will test the Array related JavaScript functions. # # The ecma.zip file only includes part of all the JavaScript tests. It can be # unzipped with the command 'unzip ecma.zip' run in the home directory. if $(INCLUDE_JS_TESTS) { local jsTests = ecma.zip ; SEARCH on $(jsTests) = [ FDirName $(HAIKU_TOP) 3rdparty WebKit JavaScriptCore tests ] ; AddFilesToHaikuImage home : $(jsTests) ; } } } if $(INCLUDE_LIBRARY_BINARIES) { local extraBinaries = curl sqlite3 xml2-config xmlcatalog xmllint ; SEARCH on $(extraBinaries) = [ FDirName $(HAIKU_TOP) 3rdparty WebKitLibs bin ] ; AddFilesToHaikuImage home config bin : $(extraBinaries) ; }