OLD | NEW |
(Empty) | |
| 1 {# Copyright 2016 The Chromium Authors. All rights reserved. #} |
| 2 {# Use of this source code is governed by a BSD-style license that can be #} |
| 3 {# found in the LICENSE file. #} |
| 4 // Generated by //build/android/generate_gradle.py |
| 5 |
| 6 apply plugin: "java" |
| 7 {% if template_type == 'java_binary' %} |
| 8 apply plugin: "application" |
| 9 {% endif %} |
| 10 |
| 11 sourceSets { |
| 12 main { |
| 13 java.srcDirs = [ |
| 14 {% for path in java_dirs %} |
| 15 "{{ path }}", |
| 16 {% endfor %} |
| 17 ] |
| 18 } |
| 19 } |
| 20 |
| 21 sourceCompatibility = JavaVersion.VERSION_1_7 |
| 22 targetCompatibility = JavaVersion.VERSION_1_7 |
| 23 |
| 24 {% if template_type == 'java_binary' %} |
| 25 mainClassName = "{{ main_class }}" |
| 26 applicationName = "{{ target_name }}" |
| 27 {% endif %} |
| 28 {% if template_type in ('java_binary', 'java_library') %} |
| 29 archivesBaseName = "{{ target_name }}" |
| 30 {% endif %} |
| 31 |
| 32 {% include 'dependencies.jinja' %} |
OLD | NEW |