Colin Cross | 4c60995 | 2017-10-18 13:00:01 -0700 | [diff] [blame^] | 1 | // Copyright (C) 2011 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | java_library_static { |
| 16 | name: "dexmaker", |
| 17 | |
| 18 | // Include all the java files. |
| 19 | srcs: ["dexmaker/src/main/java/**/*.java"], |
| 20 | |
| 21 | static_libs: [ |
| 22 | "dexmaker-dx-target", |
| 23 | "dexmaker-dex-target", |
| 24 | ], |
| 25 | |
| 26 | sdk_version: "10", |
| 27 | } |
| 28 | |
| 29 | // Build Dexmaker's MockMaker, a plugin to Mockito |
| 30 | java_library_static { |
| 31 | name: "dexmaker-mockmaker", |
| 32 | sdk_version: "10", |
| 33 | srcs: ["dexmaker-mockito/src/main/java/**/*.java"], |
| 34 | java_resource_dirs: ["dexmaker-mockito/src/main/resources"], |
| 35 | libs: [ |
| 36 | "dexmaker", |
| 37 | "mockito-api", |
| 38 | ], |
| 39 | } |
| 40 | |
| 41 | java_import { |
| 42 | name: "dexmaker-dx-target", |
| 43 | jars: ["lib/dalvik-dx-1.jar"], |
| 44 | } |
| 45 | |
| 46 | java_import { |
| 47 | name: "dexmaker-dex-target", |
| 48 | jars: ["lib/libcore-dex-2.jar"], |
| 49 | } |