CMake: Add support to optionally install the built JavaScript shell
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2011 02:54:17 +0000 (02:54 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Oct 2011 02:54:17 +0000 (02:54 +0000)
https://bugs.webkit.org/show_bug.cgi?id=71062

Reviewed by Antonio Gomes.

.:

Adds a CMake option, called SHOULD_INSTALL_JS_SHELL, that when
defined will generate an installation rule to install the built
JavaScript shell into /bin (with respect to the prefix path).

By default, we don't define this option and hence don't generate
an installation rule for the JavaScript shell.

* Source/CMakeLists.txt:

Source/JavaScriptCore:

Generate an installation rule for installing the JavaScript shell in
/bin (with respect to the prefix path) when SHOULD_INSTALL_JS_SHELL
is defined.

* shell/CMakeLists.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@98681 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/CMakeLists.txt
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/shell/CMakeLists.txt

index 1a6a0fb..4fb6657 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2011-10-27  Daniel Bates  <dbates@rim.com>
+
+        CMake: Add support to optionally install the built JavaScript shell
+        https://bugs.webkit.org/show_bug.cgi?id=71062
+
+        Reviewed by Antonio Gomes.
+
+        Adds a CMake option, called SHOULD_INSTALL_JS_SHELL, that when
+        defined will generate an installation rule to install the built
+        JavaScript shell into /bin (with respect to the prefix path).
+
+        By default, we don't define this option and hence don't generate
+        an installation rule for the JavaScript shell.
+
+        * Source/CMakeLists.txt:
+
 2011-10-27  Sheriff Bot  <webkit.review.bot@gmail.com>
 
         Unreviewed, rolling out r98556.
index 93a0fdf..51a66c3 100644 (file)
@@ -139,6 +139,11 @@ IF (ENABLE_WEBKIT2)
 ENDIF ()
 
 # -----------------------------------------------------------------------------
+# Install JavaScript shell
+# -----------------------------------------------------------------------------
+OPTION(SHOULD_INSTALL_JS_SHELL "generate an installation rule to install the built JavaScript shell")
+
+# -----------------------------------------------------------------------------
 # Add test browser if exists
 # -----------------------------------------------------------------------------
 INCLUDE_IF_EXISTS(${TOOLS_DIR}/CMakeLists${PORT}.txt)
index cf2be03..bba8748 100644 (file)
@@ -1,3 +1,16 @@
+2011-10-27  Daniel Bates  <dbates@rim.com>
+
+        CMake: Add support to optionally install the built JavaScript shell
+        https://bugs.webkit.org/show_bug.cgi?id=71062
+
+        Reviewed by Antonio Gomes.
+
+        Generate an installation rule for installing the JavaScript shell in
+        /bin (with respect to the prefix path) when SHOULD_INSTALL_JS_SHELL
+        is defined.
+
+        * shell/CMakeLists.txt:
+
 2011-10-27  Kentaro Hara  <haraken@chromium.org>
 
         Generate WebKitCSSMatrix constructor for JSC by [Constructor] IDL
index a327204..85fa06c 100644 (file)
@@ -23,3 +23,7 @@ ENDIF ()
 IF (SHARED_CORE)
     SET_TARGET_PROPERTIES(${JSC_EXECUTABLE_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
 ENDIF ()
+
+IF (SHOULD_INSTALL_JS_SHELL)
+    INSTALL(TARGETS ${JSC_EXECUTABLE_NAME} DESTINATION bin)
+ENDIF ()