Home | History | Annotate | Download | only in GLcommon
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 ### EGL host implementation ########################
      4 $(call emugl-begin-host-static-library,libGLcommon)
      5 
      6 $(call emugl-import,libOpenglOsUtils)
      7 
      8 translator_path := $(LOCAL_PATH)/..
      9 
     10 LOCAL_SRC_FILES :=           \
     11      GLDispatch.cpp          \
     12      GLutils.cpp             \
     13      GLEScontext.cpp         \
     14      GLESvalidate.cpp        \
     15      GLESpointer.cpp         \
     16      GLESbuffer.cpp          \
     17      DummyGLfuncs.cpp        \
     18      RangeManip.cpp          \
     19      TextureUtils.cpp        \
     20      PaletteTexture.cpp      \
     21      etc1.cpp                \
     22      objectNameManager.cpp   \
     23      FramebufferData.cpp
     24 
     25 ifeq ($(HOST_OS),linux)
     26 #    $(call emugl-export,LDFLAGS,-Wl,--whole-archive)
     27     $(call emugl-export,LDLIBS,-lGL -ldl)
     28     GL_COMMON_LINKER_FLAGS := -Wl,-Bsymbolic
     29     $(call emugl-export,LDFLAGS,$(GL_COMMON_LINKER_FLAGS))
     30 endif
     31 
     32 ifeq ($(HOST_OS),windows)
     33     $(call emugl-export,LDLIBS,-lopengl32 -lgdi32)
     34     GL_COMMON_LINKER_FLAGS := -Wl,--add-stdcall-alias
     35     $(call emugl-export,LDFLAGS,$(GL_COMMON_LINKER_FLAGS))
     36 endif
     37 
     38 $(call emugl-export,C_INCLUDES,$(LOCAL_PATH)/../include $(EMUGL_PATH)/shared)
     39 $(call emugl-export,STATIC_LIBRARIES, libcutils libutils liblog)
     40 
     41 $(call emugl-end-module)
     42