Debian Codegraph @

examples/android/jni/Android.mk

raw symbols SCIP
1 # Copyright (C) 2009 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 BASE_PATH := $(call my-dir)
16
17 include $(CLEAR_VARS)
18 ECL_HOME := ../ecl-android
19 LOCAL_MODULE := ecl_lib
20 LOCAL_PATH := $(BASE_PATH)
21 LOCAL_SRC_FILES := $(ECL_HOME)/lib/libecl.so
22 include $(PREBUILT_SHARED_LIBRARY)
23
24 # ecl_android shared object
25 include $(CLEAR_VARS)
26 ifeq ($(TARGET_ARCH),x86)
27 PLATFORM := androidx86
28 else
29 PLATFORM := android
30 endif
31
32 ECL_HOME := ecl-android
33 LOCAL_MODULE := ecl_android
34 LOCAL_PATH := $(BASE_PATH)
35 LOCAL_SRC_FILES := org_lisp_ecl_EmbeddedCommonLisp.c ecl_boot.c
36 LOCAL_CFLAGS += -I$(ECL_HOME)/include
37 LOCAL_CFLAGS += -g -Wall -DANDROID
38 LOCAL_SHARED_LIBRARIES := ecl_lib
39 LOCAL_LDLIBS += -llog # -lecl
40 include $(BUILD_SHARED_LIBRARY)