Changeset 161093 in webkit


Ignore:
Timestamp:
Dec 26, 2013 1:24:51 PM (10 years ago)
Author:
Martin Robinson
Message:

[GTK] [CMake] Add a production build type
https://bugs.webkit.org/show_bug.cgi?id=126179

Reviewed by Daniel Bates.

  • Source/PlatformGTK.cmake: When the API tests are enabled compile the WebKit GObject

API unit tests. The inclusion of these build files was inadvertently removed in an earlier
patch.

  • Source/cmake/OptionsGTK.cmake: When in production mode turn off all tools and tests and

use the autotools linker script.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r161070 r161093  
     12013-12-26  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [GTK] [CMake] Add a production build type
     4        https://bugs.webkit.org/show_bug.cgi?id=126179
     5
     6        Reviewed by Daniel Bates.
     7
     8        * Source/PlatformGTK.cmake: When the API tests are enabled compile the WebKit GObject
     9        API unit tests. The inclusion of these build files was inadvertently removed in an earlier
     10        patch.
     11        * Source/cmake/OptionsGTK.cmake: When in production mode turn off all tools and tests and
     12        use the autotools linker script.
     13
    1142013-12-25  Martin Robinson  <mrobinson@igalia.com>
    215
  • trunk/Source/PlatformGTK.cmake

    r161017 r161093  
     1if (ENABLE_API_TESTS)
     2    if (ENABLE_WEBKIT)
     3        add_subdirectory(${WEBKIT_DIR}/gtk/tests)
     4    endif ()
     5    if (ENABLE_WEBKIT2)
     6        add_subdirectory(${WEBKIT2_DIR}/UIProcess/API/gtk/tests)
     7    endif ()
     8endif ()
     9
    110set(DocumentationDependencies
    211    "${CMAKE_SOURCE_DIR}/Source/WebKit/gtk/docs/webkitenvironment.xml"
     
    3847    add_dependencies(fake-docs-target WebKit2)
    3948endif ()
    40 
  • trunk/Source/cmake/OptionsGTK.cmake

    r161070 r161093  
    7979    set(ENABLE_VIDEO_TRACK OFF)
    8080endif ()
     81
     82if (PRODUCTION_MODE)
     83    set(ENABLE_TOOLS OFF)
     84    set(ENABLE_API_TESTS OFF)
     85    set(VERSION_SCRIPT "-Wl,--version-script,${CMAKE_SOURCE_DIR}/Source/autotools/symbols.filter")
     86else ()
     87    set(ENABLE_TOOLS ON)
     88    set(ENABLE_API_TESTS ON)
     89endif ()
     90
    8191WEBKIT_OPTION_END()
    8292
Note: See TracChangeset for help on using the changeset viewer.