Files
gerrit/tools/bzl/gwt.bzl
David Ostrovsky 013af9ec3f Bazel: Build GWT UI
Port Buck gwt_binary() native rule: [1] to Skylark.

TEST PLAN:

  bazel build gerrit-gwtui:ui_optdbg

* [1] https://github.com/facebook/buck/issues/109

Change-Id: I24d11f10928a8000304bc4233156ddc50fad8931
2016-09-20 13:47:12 +02:00

27 lines
919 B
Python

# Copyright (C) 2016 The Android Open Source Project
#
# 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.
# GWT Rules Skylark rules for building [GWT](http://www.gwtproject.org/)
# modules using Bazel.
load('//tools/bzl:java.bzl', 'java_library2')
def gwt_module(gwt_xml=None, resources=[], srcs=[], **kwargs):
if gwt_xml:
resources += [gwt_xml]
java_library2(
srcs = srcs,
resources = resources,
**kwargs)