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.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161093
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-12-26 Martin Robinson <mrobinson@igalia.com>
+
+ [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.
+
2013-12-25 Martin Robinson <mrobinson@igalia.com>
[GTK] [CMake] Properly name the JavaScriptCore library
+if (ENABLE_API_TESTS)
+ if (ENABLE_WEBKIT)
+ add_subdirectory(${WEBKIT_DIR}/gtk/tests)
+ endif ()
+ if (ENABLE_WEBKIT2)
+ add_subdirectory(${WEBKIT2_DIR}/UIProcess/API/gtk/tests)
+ endif ()
+endif ()
+
set(DocumentationDependencies
"${CMAKE_SOURCE_DIR}/Source/WebKit/gtk/docs/webkitenvironment.xml"
)
if (ENABLE_WEBKIT2)
add_dependencies(fake-docs-target WebKit2)
endif ()
-
message(STATUS "Disabling VIDEO_TRACK since VIDEO support is disabled.")
set(ENABLE_VIDEO_TRACK OFF)
endif ()
+
+if (PRODUCTION_MODE)
+ set(ENABLE_TOOLS OFF)
+ set(ENABLE_API_TESTS OFF)
+ set(VERSION_SCRIPT "-Wl,--version-script,${CMAKE_SOURCE_DIR}/Source/autotools/symbols.filter")
+else ()
+ set(ENABLE_TOOLS ON)
+ set(ENABLE_API_TESTS ON)
+endif ()
+
WEBKIT_OPTION_END()
# These are used to generate the pkg-config files, note we only support GTK 3.0