1 # Build rules for the portable screen library
3 SCREEN_SRC_DIR
= $(SRC
)/Screen
6 $(SCREEN_SRC_DIR
)/Debug.
cpp \
7 $(SCREEN_SRC_DIR
)/ProgressBar.
cpp \
8 $(SCREEN_SRC_DIR
)/RawBitmap.
cpp \
9 $(SCREEN_SRC_DIR
)/Util.
cpp \
10 $(SCREEN_SRC_DIR
)/Icon.
cpp \
11 $(SCREEN_SRC_DIR
)/Brush.
cpp \
12 $(SCREEN_SRC_DIR
)/Canvas.
cpp \
13 $(SCREEN_SRC_DIR
)/Color.
cpp \
14 $(SCREEN_SRC_DIR
)/BufferCanvas.
cpp \
15 $(SCREEN_SRC_DIR
)/Pen.
cpp \
16 $(SCREEN_SRC_DIR
)/Window.
cpp \
17 $(SCREEN_SRC_DIR
)/BufferWindow.
cpp \
18 $(SCREEN_SRC_DIR
)/DoubleBufferWindow.
cpp \
19 $(SCREEN_SRC_DIR
)/ContainerWindow.
cpp \
20 $(SCREEN_SRC_DIR
)/TextWindow.
cpp \
21 $(SCREEN_SRC_DIR
)/SingleWindow.
cpp
23 ifeq ($(ENABLE_SDL
),y
)
25 $(SCREEN_SRC_DIR
)/SDL
/Window.
cpp \
26 $(SCREEN_SRC_DIR
)/SDL
/ContainerWindow.
cpp \
27 $(SCREEN_SRC_DIR
)/SDL
/ButtonWindow.
cpp \
28 $(SCREEN_SRC_DIR
)/SDL
/CheckBox.
cpp \
29 $(SCREEN_SRC_DIR
)/SDL
/EditWindow.
cpp \
30 $(SCREEN_SRC_DIR
)/SDL
/TopCanvas.
cpp \
31 $(SCREEN_SRC_DIR
)/SDL
/TopWindow.
cpp \
32 $(SCREEN_SRC_DIR
)/SDL
/SingleWindow.
cpp \
33 $(SCREEN_SRC_DIR
)/SDL
/Canvas.
cpp
34 ifeq ($(TARGET
),ANDROID
)
36 $(SCREEN_SRC_DIR
)/OpenGL
/EGL.
cpp \
37 $(SCREEN_SRC_DIR
)/Android
/Timer.
cpp \
38 $(SCREEN_SRC_DIR
)/Android
/TopWindow.
cpp \
39 $(SCREEN_SRC_DIR
)/Android
/SingleWindow.
cpp \
40 $(SCREEN_SRC_DIR
)/Android
/Font.
cpp \
41 $(SCREEN_SRC_DIR
)/Android
/Event.
cpp
44 $(SCREEN_SRC_DIR
)/SDL
/Init.
cpp \
45 $(SCREEN_SRC_DIR
)/SDL
/Font.
cpp \
46 $(SCREEN_SRC_DIR
)/SDL
/Event.
cpp \
47 $(SCREEN_SRC_DIR
)/SDL
/Timer.
cpp
51 $(SCREEN_SRC_DIR
)/OpenGL
/Init.
cpp \
52 $(SCREEN_SRC_DIR
)/OpenGL
/Globals.
cpp \
53 $(SCREEN_SRC_DIR
)/OpenGL
/Extension.
cpp \
54 $(SCREEN_SRC_DIR
)/OpenGL
/VertexArray.
cpp \
55 $(SCREEN_SRC_DIR
)/OpenGL
/Bitmap.
cpp \
56 $(SCREEN_SRC_DIR
)/OpenGL
/Cache.
cpp \
57 $(SCREEN_SRC_DIR
)/OpenGL
/Canvas.
cpp \
58 $(SCREEN_SRC_DIR
)/OpenGL
/BufferCanvas.
cpp \
59 $(SCREEN_SRC_DIR
)/OpenGL
/Texture.
cpp \
60 $(SCREEN_SRC_DIR
)/OpenGL
/Buffer.
cpp \
61 $(SCREEN_SRC_DIR
)/OpenGL
/Shapes.
cpp \
62 $(SCREEN_SRC_DIR
)/OpenGL
/Surface.
cpp \
63 $(SCREEN_SRC_DIR
)/OpenGL
/Triangulate.
cpp
66 $(SCREEN_SRC_DIR
)/SDL
/Bitmap.
cpp \
67 $(SCREEN_SRC_DIR
)/VirtualCanvas.
cpp \
68 $(SCREEN_SRC_DIR
)/WindowCanvas.
cpp
72 $(SCREEN_SRC_DIR
)/VirtualCanvas.
cpp \
73 $(SCREEN_SRC_DIR
)/WindowCanvas.
cpp \
74 $(SCREEN_SRC_DIR
)/GDI
/Init.
cpp \
75 $(SCREEN_SRC_DIR
)/GDI
/Font.
cpp \
76 $(SCREEN_SRC_DIR
)/GDI
/AlphaBlend.
cpp \
77 $(SCREEN_SRC_DIR
)/GDI
/Timer.
cpp \
78 $(SCREEN_SRC_DIR
)/GDI
/Window.
cpp \
79 $(SCREEN_SRC_DIR
)/GDI
/PaintWindow.
cpp \
80 $(SCREEN_SRC_DIR
)/GDI
/ContainerWindow.
cpp \
81 $(SCREEN_SRC_DIR
)/GDI
/ButtonWindow.
cpp \
82 $(SCREEN_SRC_DIR
)/GDI
/EditWindow.
cpp \
83 $(SCREEN_SRC_DIR
)/GDI
/SingleWindow.
cpp \
84 $(SCREEN_SRC_DIR
)/GDI
/TopWindow.
cpp \
85 $(SCREEN_SRC_DIR
)/GDI
/Bitmap.
cpp \
86 $(SCREEN_SRC_DIR
)/GDI
/Event.
cpp \
87 $(SCREEN_SRC_DIR
)/GDI
/Transcode.
cpp \
88 $(SCREEN_SRC_DIR
)/GDI
/Canvas.
cpp \
89 $(SCREEN_SRC_DIR
)/GDI
/BufferCanvas.
cpp \
90 $(SCREEN_SRC_DIR
)/GDI
/PaintCanvas.
cpp
91 GDI_CPPFLAGS
= -DUSE_GDI
94 GDI_LDLIBS
= -lcommctrl
96 GDI_LDLIBS
= -lcomctl32
-luser32
-lgdi32
-lmsimg32
100 GDI_LDLIBS
+= -Wl
,-subsystem
,windows
105 # Needed for native VBO support
106 OPENGL_CPPFLAGS
= -DGL_GLEXT_PROTOTYPES
109 SCREEN_CPPFLAGS
= $(SDL_CPPFLAGS
) $(GDI_CPPFLAGS
) $(OPENGL_CPPFLAGS
)
110 SCREEN_LDLIBS
= $(SDL_LDLIBS
) $(GDI_LDLIBS
)
112 ifeq ($(TARGET
),ANDROID
)
113 SCREEN_LDLIBS
+= -lGLESv1_CM
-ldl
115 # for dynamic EGL detection
116 SCREEN_LDLIBS
+= -ldl
117 $(call SRC_TO_OBJ
,$(SCREEN_SRC_DIR
)/OpenGL
/EGL.
cpp): ANDROID_PLATFORM
= android-9
120 $(eval
$(call link-library
,screen
,SCREEN
))
122 SCREEN_LDADD
+= $(SDL_LDADD
)