This repository has been archived by the owner on May 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
import_vrlib.mk
executable file
·59 lines (43 loc) · 1.57 KB
/
import_vrlib.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#
# import_vrlib.mk
#
# Common settings used by all VRLib based projects. Import at the stat of any module using VRLib.
#
# use += instead of := when defining the following variables after including this file:
# LOCAL_LDLIBS
# LOCAL_CFLAGS
# LOCAL_C_INCLUDES
# LOCAL_STATIC_LIBRARIES
#
# save off the local path
LOCAL_PATH_TEMP := $(LOCAL_PATH)
LOCAL_PATH := $(call my-dir)
# oculus
include $(CLEAR_VARS)
LOCAL_MODULE := oculus
LOCAL_SRC_FILES := obj/local/armeabi-v7a/liboculus.a
include $(PREBUILT_STATIC_LIBRARY)
# jpeg
include $(CLEAR_VARS)
LOCAL_MODULE := jpeg
LOCAL_SRC_FILES := jni/3rdParty/libjpeg.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_LDLIBS += -lGLESv3 # OpenGL ES 3.0
LOCAL_LDLIBS += -lEGL # GL platform interface
LOCAL_LDLIBS += -lOpenMAXAL # native multimedia
LOCAL_LDLIBS += -llog # logging
LOCAL_LDLIBS += -landroid # native windows
LOCAL_LDLIBS += -lz # For minizip
LOCAL_LDLIBS += -lOpenSLES # audio
# native activities need this, regular java projects don't
# LOCAL_STATIC_LIBRARIES := android_native_app_glue
LOCAL_C_INCLUDES := $(LOCAL_PATH)/jni/LibOVR/Include \
$(LOCAL_PATH)/jni/LibOVR/Src \
$(LOCAL_PATH)/jni/3rdParty/TinyXml \
$(LOCAL_PATH)/jni/3rdParty/minizip \
$(LOCAL_PATH)/jni \
LOCAL_ARM_MODE := arm # full speed arm instead of thumb
LOCAL_STATIC_LIBRARIES := oculus jpeg
# Restore the local path since we overwrote it when we started
LOCAL_PATH := $(LOCAL_PATH_TEMP)