xref: /aosp_15_r20/external/walt/android/WALT/app/src/main/jni/Android.mk (revision bf47c6829f95be9dd55f4c5bbc44a71c90aad403)
1# Copyright (C) 2015 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
16# Note that the platform modules are defined in the Android.bp. This file is
17# used for the NDK.
18
19# If we're being invoked from ndk-build, we'll have NDK_ROOT defined.
20ifdef NDK_ROOT
21
22LOCAL_PATH := $(call my-dir)
23
24include $(CLEAR_VARS)
25
26LOCAL_MODULE    := sync_clock_jni
27LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
28LOCAL_LICENSE_CONDITIONS := notice
29LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../../../LICENSE
30LOCAL_SRC_FILES := sync_clock_jni.c sync_clock.c player.c
31
32LOCAL_CFLAGS := -g -DUSE_LIBLOG -Werror -Wno-deprecated-declarations
33
34LOCAL_LDLIBS := -lOpenSLES -llog
35
36include $(BUILD_SHARED_LIBRARY)
37
38endif
39