Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
build
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
lf
build
Commits
901e2607
Commit
901e2607
authored
11 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add support for conditionally failing on JSLint errors"
parents
6d90df25
ea296553
No related branches found
Branches containing commit
Tags
AU_LINUX_GECKO_B2G_KK_3.5.01.04.00.113.025
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
clear_xpcom_vars.mk
+1
-0
1 addition, 0 deletions
clear_xpcom_vars.mk
xpcom.mk
+5
-3
5 additions, 3 deletions
xpcom.mk
with
6 additions
and
3 deletions
clear_xpcom_vars.mk
+
1
−
0
View file @
901e2607
...
...
@@ -7,6 +7,7 @@ LOCAL_INSTALLED_XPCOM_IDL_HEADERS :=
LOCAL_JS_NOTICE
:=
LOCAL_JS_SRC_FILES
:=
LOCAL_JS_LINTONLY_FILES
:=
LOCAL_JSLINT_FATAL
:=
LOCAL_XPCOM_IDLS
:=
LOCAL_XPCOM_INSTALL_DIR
:=
LOCAL_XPCOM_MODULE_OBJDIR
:=
...
...
This diff is collapsed.
Click to expand it.
xpcom.mk
+
5
−
3
View file @
901e2607
...
...
@@ -186,16 +186,17 @@ endif
ifdef
USE_JSMIN
JSMIN
:=
$(
BUILD_OUT_EXECUTABLES
)
/jsmin
$(
BUILD_EXECUTABLE_SUFFIX
)
$(INSTALLED_JS_FILES)
:
PRIVATE_JS_NOTICE := $(LOCAL_JS_NOTICE)
$(INSTALLED_JS_FILES)
:
PRIVATE_JSLINT_FATAL := $(LOCAL_JSLINT_FATAL)
$(INSTALLED_JS_FILES)
:
$(LOCAL_MODULE_PATH)/%.js: $(LOCAL_PATH)/%.js $(JSMIN) $(DEPENDS_ON_GECKO)
ifdef
GJSLINT
$(
GJSLINT
)
$<
$(
if
$(
filter
$(
PRIVATE_JSLINT_FATAL
)
,1
)
,,-
)
$(
GJSLINT
)
$<
endif
@
mkdir
-p
$(
@D
)
$(
JSMIN
)
<
$<
>
$@
'
$(
PRIVATE_JS_NOTICE
)
'
else
$(INSTALLED_JS_FILES)
:
$(LOCAL_MODULE_PATH)/%.js: $(LOCAL_PATH)/%.js $(ACP) $(DEPENDS_ON_GECKO)
ifdef
GJSLINT
$(
GJSLINT
)
$<
$(
if
$(
filter
$(
PRIVATE_JSLINT_FATAL
)
,1
)
,,-
)
$(
GJSLINT
)
$<
endif
@
mkdir
-p
$(
@D
)
$(
ACP
)
$<
$@
...
...
@@ -203,9 +204,10 @@ endif
JS_LINTONLY_OK_FILES
:=
$(
addsuffix .ok,
$(
addprefix
$(
LOCAL_XPCOM_MODULE_OBJDIR
)
/,
$(
LOCAL_JS_LINTONLY_FILES
)))
$(JS_LINTONLY_OK_FILES)
:
PRIVATE_JSLINT_FATAL := $(LOCAL_JSLINT_FATAL)
$(JS_LINTONLY_OK_FILES)
:
$(LOCAL_XPCOM_MODULE_OBJDIR)/%.js.ok: $(LOCAL_PATH)/%.js
ifdef
GJSLINT
$(
GJSLINT
)
$<
$(
if
$(
filter
$(
PRIVATE_JSLINT_FATAL
)
,1
)
,,-
)
$(
GJSLINT
)
$<
endif
@
mkdir
-p
$(
@D
)
touch
$@
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment