1/* 2 * Copyright 2018 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 17package { 18 // Inherits all licenses from parent to get Apache 2.0 and package name 19 default_applicable_licenses: [ 20 "packages_modules_NeuralNetworks_license", 21 ], 22} 23 24cc_library_headers { 25 name: "philox_random_headers", 26 host_supported: true, 27 vendor_available: true, 28 export_include_dirs: ["."], 29 apex_available: [ 30 "//apex_available:platform", 31 "com.android.neuralnetworks", 32 "test_com.android.neuralnetworks", 33 ], 34 min_sdk_version: "30", 35 sdk_version: "current", 36} 37 38cc_library_static { 39 name: "philox_random", 40 host_supported: true, 41 vendor_available: true, 42 min_sdk_version: "30", 43 apex_available: [ 44 "//apex_available:platform", 45 "com.android.neuralnetworks", 46 "test_com.android.neuralnetworks", 47 ], 48 srcs: [ 49 "guarded_philox_random.cc", 50 "random.cc", 51 "simple_philox.cc", 52 ], 53 cflags: [ 54 "-DLOG_TAG=\"Random\"", 55 ], 56 header_libs: [ 57 "libeigen", 58 "philox_random_headers", 59 "tensorflow_headers", 60 ], 61 shared_libs: [ 62 "libbase", 63 ], 64} 65 66cc_library_static { 67 name: "philox_random_cl", 68 apex_available: [ 69 "//apex_available:platform", 70 "com.android.neuralnetworks", 71 "test_com.android.neuralnetworks", 72 ], 73 srcs: [ 74 "guarded_philox_random.cc", 75 "random.cc", 76 "simple_philox.cc", 77 ], 78 cflags: [ 79 "-DLOG_TAG=\"Random\"", 80 ], 81 header_libs: [ 82 "libeigen", 83 "philox_random_headers", 84 "tensorflow_headers", 85 ], 86 static_libs: [ 87 "libbase_ndk", 88 ], 89 sdk_version: "current", 90 stl: "libc++_static", 91} 92