Changeset 243700 in webkit


Ignore:
Timestamp:
Apr 1, 2019 11:25:11 AM (5 years ago)
Author:
stephan.szabo@sony.com
Message:

[PlayStation] Add initialization for JSC shell for PlayStation port
https://bugs.webkit.org/show_bug.cgi?id=195411

Reviewed by Ross Kirsling.

.:

Add functions for doing the automatic libc, floating point
initializations, signing of binaries and libraries and
wrapping of libc functions on PlayStation port.

  • Source/cmake/OptionsPlayStation.cmake:

Source/JavaScriptCore:

Add ps options

  • shell/PlatformPlayStation.cmake: Added.
  • shell/playstation/Initializer.cpp: Added.

(initializer):

Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r243666 r243700  
     12019-04-01  Stephan Szabo  <stephan.szabo@sony.com>
     2
     3        [PlayStation] Add initialization for JSC shell for PlayStation port
     4        https://bugs.webkit.org/show_bug.cgi?id=195411
     5
     6        Reviewed by Ross Kirsling.
     7
     8        Add functions for doing the automatic libc, floating point
     9        initializations, signing of binaries and libraries and
     10        wrapping of libc functions on PlayStation port.
     11
     12        * Source/cmake/OptionsPlayStation.cmake:
     13
    1142019-03-29  Myles C. Maxfield  <mmaxfield@apple.com>
    215
  • trunk/Source/JavaScriptCore/ChangeLog

    r243697 r243700  
     12019-04-01  Stephan Szabo  <stephan.szabo@sony.com>
     2
     3        [PlayStation] Add initialization for JSC shell for PlayStation port
     4        https://bugs.webkit.org/show_bug.cgi?id=195411
     5
     6        Reviewed by Ross Kirsling.
     7
     8        Add ps options
     9
     10        * shell/PlatformPlayStation.cmake: Added.
     11        * shell/playstation/Initializer.cpp: Added.
     12        (initializer):
     13
    1142019-04-01  Michael Catanzaro  <mcatanzaro@igalia.com>
    215
  • trunk/Source/cmake/OptionsPlayStation.cmake

    r242306 r243700  
    11set(PORT PlayStation)
     2
     3include(Sign)
    24
    35add_definitions(-DWTF_PLATFORM_PLAYSTATION=1)
     
    132134    add_definitions(/MP)
    133135endif ()
     136
     137find_library(DL_LIBRARY NAMES dl PATHS ${WEBKIT_LIBRARIES_DIR}/lib)
     138if (DL_LIBRARY)
     139    add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:${DL_LIBRARY}>")
     140    add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlopen>")
     141    add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlclose>")
     142    add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlerror>")
     143    add_link_options("$<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:-Wl,--wrap=dlsym>")
     144endif ()
     145
     146function(add_library target type)
     147    _add_library(${ARGV})
     148    if ("${type}" STREQUAL "SHARED")
     149        sign(${target})
     150    endif ()
     151endfunction()
     152
     153function(add_executable target)
     154    _add_executable(${ARGV})
     155    playstation_setup_libc(${target})
     156    playstation_setup_fp(${target})
     157    if (NOT ${target} MATCHES "^LLInt")
     158        sign(${target})
     159    endif ()
     160    if (PLAYSTATION_${target}_WRAP)
     161        foreach (WRAP ${PLAYSTATION_${target}_WRAP})
     162            target_link_options(${target} PRIVATE -Wl,--wrap=${WRAP})
     163        endforeach ()
     164    endif ()
     165endfunction()
Note: See TracChangeset for help on using the changeset viewer.