From 238c6e9763ab3fc354df22d749ec736c097e33ea Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 19 Dec 2016 11:53:43 +0100 Subject: [PATCH] Add license for diff-match-patch JS. Fix dependencies for codemirror targets. Change-Id: Ibda5573438b0ab76c42f5faaa3a463b5975bd43c --- lib/codemirror/cm.bzl | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/lib/codemirror/cm.bzl b/lib/codemirror/cm.bzl index 35aedb0b11..35bc2876c8 100644 --- a/lib/codemirror/cm.bzl +++ b/lib/codemirror/cm.bzl @@ -244,10 +244,7 @@ def pkg_cm(): ['unzip -p $(location %s) %s/addon/%s >>$@' % (archive, top, n) for n in CM_ADDONS] ), - tools = [ - '@codemirror_original//jar', - '@codemirror_minified//jar', - ], + tools = [archive], outs = ['cm%s.js' % suffix], ) @@ -262,10 +259,7 @@ def pkg_cm(): ['unzip -p $(location %s) %s/%s >>$@' % (archive, top, n) for n in CM_CSS] ), - tools = [ - '@codemirror_original//jar', - '@codemirror_minified//jar', - ], + tools = [archive], outs = ['cm%s.css' % suffix], ) @@ -280,10 +274,7 @@ def pkg_cm(): 'unzip -p $(location %s) %s/mode/%s/%s.js >>$@' % (archive, top, n, n), ] ), - tools = [ - '@codemirror_original//jar', - '@codemirror_minified//jar', - ], + tools = [archive], outs = ['mode_%s%s.js' % (n, suffix)], ) @@ -298,10 +289,7 @@ def pkg_cm(): 'unzip -p $(location %s) %s/theme/%s.css >>$@' % (archive, top, n) ] ), - tools = [ - '@codemirror_original//jar', - '@codemirror_minified//jar', - ], + tools = [archive], outs = ['theme_%s%s.css' % (n, suffix)], ) @@ -323,8 +311,8 @@ def pkg_cm(): ), tools = [ '@diff_match_patch//jar', - '@codemirror_original//jar', - '@codemirror_minified//jar', + archive, + "//lib:LICENSE-Apache2.0", ], outs = ['addon_merge%s.js' % suffix], )