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
86a856cd
Commit
86a856cd
authored
10 years ago
by
bait_dispatcher_monitor_system
Committed by
Gerrit - the friendly Code Review server
10 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Enable minification of Gecko chrome javscript files"
parents
c40ece74
055e6a78
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
b2g_product.mk
+31
-0
31 additions, 0 deletions
b2g_product.mk
vendorsetup.sh
+13
-6
13 additions, 6 deletions
vendorsetup.sh
with
44 additions
and
6 deletions
b2g_product.mk
+
31
−
0
View file @
86a856cd
...
...
@@ -65,6 +65,37 @@ CLEAR_XPCOM_VARS:=$(dir $(firstword $(MAKEFILE_LIST)))clear_xpcom_vars.mk
BUILD_XPCOM
:=
$(
dir
$(
firstword
$(
MAKEFILE_LIST
)))
xpcom.mk
# Define JS_BINARY to enable minification of Gecko chrome javscript files
#
# JS_BINARY is used by the Gecko build system to verify that minified chrome
# Javscript code is still correct. Unfortunately the normal "js binary" is not
# a part of the source tree and it would be undesirable to add it as a
# dependency. This block instead adapts the xpcshell Javscript runtime, used by
# build Gaia, for this purpose.
#
export
JS_BINARY
=
$(
abspath out/js_binary.sh
)
ifeq
($(wildcard $(JS_BINARY)),)
XPCSHELL
=
$(
shell
$(
MAKE
)
-s
-C
gaia xpcshell_sdk
)
ifeq
($(wildcard $(XPCSHELL)),)
$(error Unabled to find xpcshell. Best guess
:
$(XPCSHELL))
endif
RUN_MOZILLA
=
$(
dir
$(
XPCSHELL
))
run-mozilla.sh
ifeq
($(wildcard $(RUN_MOZILLA)),)
$(error Unabled to find run-mozilla.sh. Best guess
:
$(RUN_MOZILLA))
endif
# This specialized JS_BINARY is expected to receive three arguments:
# 1 - Validation script
# 2 - Javacript file 1
# 3 - Javacript file 2
$(
shell
mkdir
-p
$(
dir
$(
JS_BINARY
)))
$(
shell
echo
'#!/bin/bash'
>>
$(
JS_BINARY
))
$(
shell
echo
'exec
$(
RUN_MOZILLA
)
$(
XPCSHELL
)
-e "scriptArgs=[$$2, $$3];" -f $$1'
>>
$(
JS_BINARY
))
$(
shell
chmod
+x
$(
JS_BINARY
))
endif
# GAIA_DISTRIBUTION_DIR enables overrides for Gaia settings
ifndef
GAIA_DISTRIBUTION_DIR
GAIA_DISTRIBUTION_DIR
:=
$(
ANDROID_BUILD_TOP
)
/out/target/product/
$(
TARGET_PRODUCT
)
/gaia_distribution
...
...
This diff is collapsed.
Click to expand it.
vendorsetup.sh
+
13
−
6
View file @
86a856cd
...
...
@@ -312,6 +312,19 @@ rungdb()
(
cd
$(
gettop
)
/device/qcom/b2g_common
&&
./run-gdb.sh
$@
)
}
# Use a local B2G SDK if possible instead of downloading it
if
[[
-d
prebuilts/b2g_sdk/
$(
uname
)
/.git
]]
;
then
export
USE_LOCAL_XULRUNNER_SDK
=
1
export
XULRUNNER_DIRECTORY
=
"
$(
gettop
)
/prebuilts/b2g_sdk/
$(
uname
)
"
else
echo
=================================================================
echo
Notice: Local B2G SDK was not found, fetching it now
if
necessary
echo
=================================================================
make
-s
-C
gaia b2g_sdk
fi
if
[[
-z
$1
]]
;
then
__patch_tree
else
...
...
@@ -323,12 +336,6 @@ else
esac
fi
# Use a local B2G SDK if present instead of downloading a new copy
if
[[
-d
prebuilts/b2g_sdk/
$(
uname
)
/.git
]]
;
then
export
USE_LOCAL_XULRUNNER_SDK
=
1
export
XULRUNNER_DIRECTORY
=
"
$(
gettop
)
/prebuilts/b2g_sdk/
$(
uname
)
"
fi
# Don't build sources.xml
export
DISABLE_SOURCES_XML
=
true
export
LEGACY_USE_JAVA6
=
true
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