Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
6ac13503
Commit
6ac13503
authored
Jun 03, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build sdk on x86 systems
parent
1d9dcf7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
build/Gruntfile.js
build/Gruntfile.js
+8
-7
No files found.
build/Gruntfile.js
View file @
6ac13503
module
.
exports
=
function
(
grunt
)
{
require
(
'
google-closure-compiler
'
).
grunt
(
grunt
,
[
'
-Xms2048m
'
]);
var
defaultConfig
,
packageFile
;
var
defaultConfig
,
packageFile
;
var
path
=
grunt
.
option
(
'
src
'
)
||
'
./configs
'
;
var
level
=
grunt
.
option
(
'
level
'
)
||
'
ADVANCED
'
;
var
formatting
=
grunt
.
option
(
'
formatting
'
)
||
''
;
require
(
'
google-closure-compiler
'
).
grunt
(
grunt
,
[
'
ADVANCED
'
===
level
?
'
-Xms2048m
'
:
'
-Xms1024m
'
]);
grunt
.
loadNpmTasks
(
'
grunt-contrib-clean
'
);
grunt
.
loadNpmTasks
(
'
grunt-contrib-concat
'
);
grunt
.
loadNpmTasks
(
'
grunt-replace
'
);
...
...
@@ -121,22 +122,22 @@ module.exports = function(grunt) {
});
});
grunt
.
registerTask
(
'
compile_sdk_init
'
,
function
(
compilation_level
)
{
var
sdkTmp
=
'
sdk-tmp.js
'
grunt
.
registerTask
(
'
compile_sdk_init
'
,
function
()
{
var
sdkTmp
=
'
sdk-tmp.js
'
;
var
splitLine
=
''
;
var
tmp_sdk_path
=
'
sdk-js-tmp.js
'
;
var
sdkDstFolder
=
packageFile
[
'
compile
'
][
'
sdk
'
][
'
dst
'
];
var
sdkAllMinDst
=
sdkDstFolder
+
'
/sdk-all-min.js
'
;
var
sdkAllDst
=
sdkDstFolder
+
'
/sdk-all.js
'
;
var
sdkOpt
=
{
compilation_level
:
compilation_
level
,
compilation_level
:
level
,
warning_level
:
'
QUIET
'
,
externs
:
packageFile
[
'
compile
'
][
'
sdk
'
][
'
externs
'
]
};
if
(
formatting
)
{
sdkOpt
[
'
formatting
'
]
=
formatting
;
}
if
(
'
ADVANCED
'
===
compilation_
level
)
{
if
(
'
ADVANCED
'
===
level
)
{
splitLine
=
(
'
PRETTY_PRINT
'
===
formatting
)
?
'
window.split = "split";
'
:
'
window.split="split";
'
;
}
else
{
splitLine
=
(
'
PRETTY_PRINT
'
===
formatting
)
?
'
window["split"] = "split";
'
:
'
window["split"]="split";
'
;
...
...
@@ -191,6 +192,6 @@ module.exports = function(grunt) {
});
grunt
.
registerTask
(
'
concat_sdk
'
,
[
'
concat_sdk_init
'
,
'
concat
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
compile_sdk
'
,
[
'
concat_sdk
'
,
'
compile_sdk_init
:
'
+
level
,
'
closure-compiler
'
,
'
splitfile
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
compile_sdk
'
,
[
'
concat_sdk
'
,
'
compile_sdk_init
'
,
'
closure-compiler
'
,
'
splitfile
'
,
'
concat
'
,
'
replace
'
,
'
clean
'
]);
grunt
.
registerTask
(
'
default
'
,
[
'
build_all
'
]);
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment