Changeset 109197 in webkit


Ignore:
Timestamp:
Feb 28, 2012 10:49:07 PM (12 years ago)
Author:
kubo@profusion.mobi
Message:

[CMake] Always build wtf as a static library.
https://bugs.webkit.org/show_bug.cgi?id=79857

Reviewed by Eric Seidel.

.:

  • CMakeLists.txt: Put static libraries in ${CMAKE_BINARY_DIR} too

to have them grouped with the shared ones.

Source/JavaScriptCore:

To help the efforts in bug 75673 to move WTF out of
JavaScriptCore, act more like the other ports and remove the
possibility of building WTF as a shared library.

It does not make much sense to, for example, ship WTF as a
separate .so with webkit-efl packages, and it should be small
enough not to cause problems during linking.

  • wtf/CMakeLists.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r107190 r109197  
    4343SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/Source/cmake")
    4444
     45SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
    4546SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
    4647SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
     
    120121# Default library types
    121122# -----------------------------------------------------------------------------
    122 OPTION(SHARED_CORE "build WTF, JavaScriptCore and WebCore as shared libraries")
     123OPTION(SHARED_CORE "build JavaScriptCore and WebCore as shared libraries")
    123124
    124125IF (SHARED_CORE)
    125     SET(WTF_LIBRARY_TYPE SHARED)
    126126    SET(JavaScriptCore_LIBRARY_TYPE SHARED)
    127127    SET(WebCore_LIBRARY_TYPE SHARED)
    128128ELSE ()
    129     SET(WTF_LIBRARY_TYPE STATIC)
    130129    SET(JavaScriptCore_LIBRARY_TYPE STATIC)
    131130    SET(WebCore_LIBRARY_TYPE STATIC)
  • trunk/ChangeLog

    r109190 r109197  
     12012-02-28  Raphael Kubo da Costa  <kubo@profusion.mobi>
     2
     3        [CMake] Always build wtf as a static library.
     4        https://bugs.webkit.org/show_bug.cgi?id=79857
     5
     6        Reviewed by Eric Seidel.
     7
     8        * CMakeLists.txt: Put static libraries in ${CMAKE_BINARY_DIR} too
     9        to have them grouped with the shared ones.
     10
    1112012-02-28  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/Source/JavaScriptCore/ChangeLog

    r109196 r109197  
     12012-02-28  Raphael Kubo da Costa  <kubo@profusion.mobi>
     2
     3        [CMake] Always build wtf as a static library.
     4        https://bugs.webkit.org/show_bug.cgi?id=79857
     5
     6        Reviewed by Eric Seidel.
     7
     8        To help the efforts in bug 75673 to move WTF out of
     9        JavaScriptCore, act more like the other ports and remove the
     10        possibility of building WTF as a shared library.
     11
     12        It does not make much sense to, for example, ship WTF as a
     13        separate .so with webkit-efl packages, and it should be small
     14        enough not to cause problems during linking.
     15
     16        * wtf/CMakeLists.txt:
     17
    1182012-02-28  Dmitry Lomov  <dslomov@google.com>
    219
  • trunk/Source/JavaScriptCore/wtf/CMakeLists.txt

    r108648 r109197  
    207207INCLUDE_DIRECTORIES(${WTF_INCLUDE_DIRECTORIES})
    208208ADD_DEFINITIONS(-DBUILDING_WTF)
    209 ADD_LIBRARY(${WTF_LIBRARY_NAME} ${WTF_LIBRARY_TYPE} ${WTF_HEADERS} ${WTF_SOURCES})
     209ADD_LIBRARY(${WTF_LIBRARY_NAME} STATIC ${WTF_HEADERS} ${WTF_SOURCES})
    210210TARGET_LINK_LIBRARIES(${WTF_LIBRARY_NAME} ${WTF_LIBRARIES})
    211211
     
    213213    ADD_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} LINK_FLAGS "${WTF_LINK_FLAGS}")
    214214ENDIF ()
    215 
    216 IF (SHARED_CORE)
    217     SET_TARGET_PROPERTIES(${WTF_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
    218     INSTALL(TARGETS ${WTF_LIBRARY_NAME} DESTINATION lib)
    219 ENDIF ()
Note: See TracChangeset for help on using the changeset viewer.