Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | import androidx.build.LibraryGroups |
| 18 | import androidx.build.LibraryVersions |
| 19 | import androidx.build.Publish |
Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 20 | |
| 21 | plugins { |
| 22 | id("AndroidXPlugin") |
| 23 | id("com.android.library") |
| 24 | id("kotlin-android") |
| 25 | } |
| 26 | |
| 27 | android { |
Jakub Gielzak | 1488092 | 2021-12-31 16:32:06 +0000 | [diff] [blame] | 28 | externalNativeBuild { |
| 29 | cmake { |
| 30 | path "src/main/cpp/CMakeLists.txt" |
Fred Sladkey | 7c32b45 | 2022-01-20 17:02:09 -0500 | [diff] [blame] | 31 | version libs.versions.cmake.get() |
Jakub Gielzak | 1488092 | 2021-12-31 16:32:06 +0000 | [diff] [blame] | 32 | } |
Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 33 | } |
| 34 | } |
| 35 | |
| 36 | dependencies { |
Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 37 | androidTestImplementation(libs.kotlinStdlib) |
| 38 | androidTestImplementation(libs.testExtJunit) |
Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 39 | androidTestImplementation(libs.testRunner) |
Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | androidx { |
Jakub Gielzak | 8df5007 | 2022-01-13 23:07:07 +0000 | [diff] [blame] | 43 | name = "AndroidX Tracing: Perfetto SDK Native Dependencies" |
Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 44 | publish = Publish.SNAPSHOT_ONLY |
| 45 | mavenVersion = LibraryVersions.TRACING_PERFETTO |
| 46 | mavenGroup = LibraryGroups.TRACING |
| 47 | inceptionYear = "2022" |
Jakub Gielzak | 8df5007 | 2022-01-13 23:07:07 +0000 | [diff] [blame] | 48 | description = "Provides native binaries required by AndroidX Tracing: Perfetto SDK " + |
| 49 | "and is not intended to be used outside of that context." |
Jakub Gielzak | 9155e24 | 2021-12-16 14:40:07 +0000 | [diff] [blame] | 50 | } |