Add Makefile targets for copying static libraries (LLVM and WKSI)
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 May 2014 05:18:07 +0000 (05:18 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 May 2014 05:18:07 +0000 (05:18 +0000)
<http://webkit.org/b/132619>

Reviewed by Mark Rowe.

.:
* Makefile:
(MODULES): Add WebKitLibraries.

Tools:
* Scripts/copy-webkitlibraries-to-product-directory: Set a
sensible default for product directory if not specified on
either the command-line or in the environment (by Xcode) by
calling productDir() in webkitdirs.pm.

WebKitLibraries:
* Makefile: Added.
(libs): Install both LLVM and WKSI static libraries.
(all): Add dependency on 'libs' target.
(debug d): Set configuration, the call 'libs' target.
(release r): Ditto.

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

ChangeLog
Makefile
Tools/ChangeLog
Tools/Scripts/copy-webkitlibraries-to-product-directory
WebKitLibraries/ChangeLog
WebKitLibraries/Makefile [new file with mode: 0644]

index 37537fd..63c21a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-05-06  David Kilzer  <ddkilzer@apple.com>
+
+        Add Makefile targets for copying static libraries (LLVM and WKSI)
+        <http://webkit.org/b/132619>
+
+        Reviewed by Mark Rowe.
+
+        * Makefile:
+        (MODULES): Add WebKitLibraries.
+
 2014-05-06  Commit Queue  <commit-queue@webkit.org>
 
         Unreviewed, rolling out r168304.
index 14e3315..3263364 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-MODULES = Source Tools
+MODULES = WebKitLibraries Source Tools
 
 all:
        @for dir in $(MODULES); do ${MAKE} $@ -C $$dir; exit_status=$$?; \
index 8c54afe..57a29aa 100644 (file)
@@ -1,3 +1,15 @@
+2014-05-06  David Kilzer  <ddkilzer@apple.com>
+
+        Add Makefile targets for copying static libraries (LLVM and WKSI)
+        <http://webkit.org/b/132619>
+
+        Reviewed by Mark Rowe.
+
+        * Scripts/copy-webkitlibraries-to-product-directory: Set a
+        sensible default for product directory if not specified on
+        either the command-line or in the environment (by Xcode) by
+        calling productDir() in webkitdirs.pm.
+
 2014-05-06  Brady Eidson  <beidson@apple.com>
 
         Add WK2 SPI to prevent the previous back/forward item from remaining in the list
index 3327667..c09d4f6 100755 (executable)
@@ -84,7 +84,7 @@ my $productDir = shift @ARGV;
 if ($productDir) {
     $productDir = File::Spec->rel2abs($productDir);
 } else {
-    $productDir = $ENV{BUILT_PRODUCTS_DIR};
+    $productDir = $ENV{BUILT_PRODUCTS_DIR} || productDir();
 }
 
 if (!$osxVersion) {
index 4e65b52..1504857 100644 (file)
@@ -1,3 +1,16 @@
+2014-05-06  David Kilzer  <ddkilzer@apple.com>
+
+        Add Makefile targets for copying static libraries (LLVM and WKSI)
+        <http://webkit.org/b/132619>
+
+        Reviewed by Mark Rowe.
+
+        * Makefile: Added.
+        (libs): Install both LLVM and WKSI static libraries.
+        (all): Add dependency on 'libs' target.
+        (debug d): Set configuration, the call 'libs' target.
+        (release r): Ditto.
+
 2014-05-05  Dean Jackson  <dino@apple.com>
 
         https://bugs.webkit.org/show_bug.cgi?id=132593
diff --git a/WebKitLibraries/Makefile b/WebKitLibraries/Makefile
new file mode 100644 (file)
index 0000000..a85e03d
--- /dev/null
@@ -0,0 +1,15 @@
+SCRIPTS_PATH = ../Tools/Scripts
+
+libs:
+       perl $(SCRIPTS_PATH)/copy-webkitlibraries-to-product-directory --wksi --llvm
+
+all: libs
+
+debug d:
+       $(SCRIPTS_PATH)/set-webkit-configuration --debug
+       @$(MAKE) libs
+
+release r:
+       $(SCRIPTS_PATH)/set-webkit-configuration --release
+       @$(MAKE) libs
+