Files
android_development/tools/emulator/opengl/shared/OpenglOsUtils/Android.mk
Guy Zadikario 20368d96e0 emulator opengl: add OpenglOsUtils library, a set of OS utils.
This is just a set of OS dependant functionality needed by the
emulator OpenGL host renderer. It currently has implementation for
Linux and Windows only.

osDynLibrary - dlopen/dlsym abstraction
osProcess    - interface to launch a new process, wait and kill it.
osThread     - abstraction interface for creating a thread.

Change-Id: Ib0264592d8c87e865da87acf5c94e2b331801ca4
2011-04-16 10:42:43 +03:00

51 lines
978 B
Makefile

LOCAL_PATH := $(call my-dir)
emulatorOpengl := $(LOCAL_PATH)/../..
### OpenglOsUtils ##############################################
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
osProcessUnix.cpp \
osThreadUnix.cpp \
osDynLibrary.cpp
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := libOpenglOsUtils
include $(BUILD_STATIC_LIBRARY)
### OpenglOsUtils host ##############################################
include $(CLEAR_VARS)
ifeq ($(HOST_OS),linux)
LOCAL_SRC_FILES := \
osProcessUnix.cpp \
osThreadUnix.cpp \
osDynLibrary.cpp
else # !linux
ifeq ($(HOST_OS),windows)
LOCAL_SRC_FILES := \
osProcessWin.cpp \
osThreadWin.cpp \
osDynLibrary.cpp
else # !windows
LOCAL_SRC_FILES :=
endif # windows
endif # linux
ifneq (,$(LOCAL_SRC_FILES)) # do not build if host platform not supported
LOCAL_MODULE_TAGS := debug
LOCAL_MODULE := libOpenglOsUtils
include $(BUILD_HOST_STATIC_LIBRARY)
endif