⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176540 in webkit


Ignore:
Timestamp:
Nov 25, 2014, 6:29:09 AM (12 years ago)
Author:
berto@igalia.com
Message:

[GTK] Use LD_LIBRARY_PATH to make g-ir-scanner use the newly-built
version of libraries when running the temporary executable
https://bugs.webkit.org/show_bug.cgi?id=138833

Patch by Ting-Wei Lan <Ting-Wei Lan> on 2014-11-25
Reviewed by Carlos Garcia Campos.

This patch modifies LD_LIBRARY_PATH to make sure the dynamic linker
find the correct version of libraries when running the temporary
executable to generate the .gir file.

  • PlatformGTK.cmake:
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176538 r176540  
     12014-11-25  Ting-Wei Lan  <lantw44@gmail.com>
     2
     3        [GTK] Use LD_LIBRARY_PATH to make g-ir-scanner use the newly-built
     4        version of libraries when running the temporary executable
     5        https://bugs.webkit.org/show_bug.cgi?id=138833
     6
     7        Reviewed by Carlos Garcia Campos.
     8
     9        This patch modifies LD_LIBRARY_PATH to make sure the dynamic linker
     10        find the correct version of libraries when running the temporary
     11        executable to generate the .gir file.
     12
     13        * PlatformGTK.cmake:
     14
    1152014-11-25  Csaba Osztrogonác  <ossy@webkit.org>
    216
  • trunk/Source/WebKit2/PlatformGTK.cmake

    r176519 r176540  
    733733add_webkit2_prefix_header(webkit2gtkinjectedbundle)
    734734
     735# Add ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} to LD_LIBRARY_PATH
     736string(COMPARE EQUAL "$ENV{LD_LIBRARY_PATH}" "" ld_library_path_not_exist)
     737if (ld_library_path_does_not_exist)
     738    set(INTROSPECTION_ADDITIONAL_LIBRARY_PATH
     739        "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}"
     740    )
     741else ()
     742    set(INTROSPECTION_ADDITIONAL_LIBRARY_PATH
     743        "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}:$ENV{LD_LIBRARY_PATH}"
     744    )
     745endif ()
     746
    735747add_custom_command(
    736748    OUTPUT ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
     
    738750    DEPENDS ${CMAKE_BINARY_DIR}/JavaScriptCore-${WEBKITGTK_API_VERSION}.gir
    739751    COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations LDFLAGS=
     752        LD_LIBRARY_PATH="${INTROSPECTION_ADDITIONAL_LIBRARY_PATH}"
    740753        ${INTROSPECTION_SCANNER}
    741754        --quiet
     
    776789    DEPENDS ${CMAKE_BINARY_DIR}/WebKit2-${WEBKITGTK_API_VERSION}.gir
    777790    COMMAND CC=${CMAKE_C_COMPILER} CFLAGS=-Wno-deprecated-declarations LDFLAGS=
     791        LD_LIBRARY_PATH="${INTROSPECTION_ADDITIONAL_LIBRARY_PATH}"
    778792        ${INTROSPECTION_SCANNER}
    779793        --quiet
Note: See TracChangeset for help on using the changeset viewer.