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 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library_headers { 22 name: "philox_random_headers", 23 host_supported: false, 24 vendor_available: true, 25 export_include_dirs: ["."], 26 apex_available: [ 27 "//apex_available:platform", 28 "com.android.neuralnetworks", 29 "test_com.android.neuralnetworks", 30 ], 31} 32 33cc_library_static { 34 name: "philox_random", 35 host_supported: false, 36 vendor_available: true, 37 apex_available: [ 38 "//apex_available:platform", 39 "com.android.neuralnetworks", 40 "test_com.android.neuralnetworks", 41 ], 42 srcs: [ 43 "guarded_philox_random.cc", 44 "random.cc", 45 "simple_philox.cc", 46 ], 47 cflags: [ 48 "-DLOG_TAG=\"Random\"", 49 "-Wno-invalid-partial-specialization", 50 "-Wno-unused-parameter", 51 ], 52 header_libs: [ 53 "libeigen", 54 "philox_random_headers", 55 "tensorflow_headers", 56 ], 57 shared_libs: [ 58 "libbase", 59 ], 60} 61