From 5b80eef3816daa69a12cb7fc7befa0b4c78f3560 Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Tue, 18 Mar 2014 21:44:31 +0400 Subject: [PATCH] Added ant step for compilation Kotlin stdlib to JS. --- build.xml | 44 +++++++++++++++++++++++----- js/js.translator/testData/externs.js | 20 +++++++++++++ 2 files changed, 56 insertions(+), 8 deletions(-) create mode 100644 js/js.translator/testData/externs.js diff --git a/build.xml b/build.xml index df27f4fc301..8b6fbabb726 100644 --- a/build.xml +++ b/build.xml @@ -216,17 +216,42 @@ - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -247,16 +272,19 @@ prettyprint="true" languagein="ECMASCRIPT5_STRICT" warning="verbose" - debug="false" - output="${kotlin-home}/lib/kotlin.js"> + output="${kotlin-home}/lib/kotlin.js" > + + + + diff --git a/js/js.translator/testData/externs.js b/js/js.translator/testData/externs.js new file mode 100644 index 00000000000..06f2f460c4b --- /dev/null +++ b/js/js.translator/testData/externs.js @@ -0,0 +1,20 @@ +/* + * Copyright 2010-2014 JetBrains s.r.o. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Externs for closure compiler + +// from QUnit +function ok() {}