ecere: Excluding OpenGL dependency for installer configuration
authorJerome St-Louis <jerome@ecere.com>
Wed, 3 Aug 2016 23:42:07 +0000 (19:42 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 4 Aug 2016 00:25:12 +0000 (20:25 -0400)
- No OpenGL / Shader support for ECERE_ONEDRIVER

ecere/ecere.epj
ecere/src/gfx/Display.ec
ecere/src/gfx/drivers/LFBDisplayDriver.ec
ecere/src/gfx/fontRendering.ec

index 2f8cbfa..9bef4bb 100644 (file)
@@ -1248,6 +1248,12 @@ if distributed with the Ecere SDK Windows installer.
                                        "Options" : {
                                           "ExcludeFromBuild" : false
                                        }
+                                    },
+                                    {
+                                       "Name" : "Installer",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
                                     }
                                  ]
                               },
@@ -1274,6 +1280,12 @@ if distributed with the Ecere SDK Windows installer.
                                        "Options" : {
                                           "ExcludeFromBuild" : false
                                        }
+                                    },
+                                    {
+                                       "Name" : "Installer",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
                                     }
                                  ]
                               }
index 217a181..c466694 100644 (file)
@@ -1281,7 +1281,7 @@ public:
    property bool useSharedMemory { set { useSharedMemory = value; } get { return useSharedMemory; } };
    property void * systemWindow { get { return window; } };
    property DisplaySystem displaySystem { get { return displaySystem; } };
-#ifndef ECERE_VANILLA
+#if !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER)
    property GLCapabilities glCapabilities
    {
       get { return ((OGLDisplay)driverData).capabilities; }
index 89a45d3..6b22f7f 100644 (file)
@@ -35,7 +35,7 @@ public class Font : struct { }
 import "lfbBlit"
 import "lfbConvert"
 
-#if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA) && defined(__WIN32__)
+#if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA) && !defined(ECERE_ONEDRIVER) && defined(__WIN32__)
 import "OpenGLDisplayDriver"
 
 #if !defined(_GLES) && !defined(ECERE_STATIC)
index 64399ce..f94edda 100644 (file)
@@ -805,18 +805,16 @@ public class Font : struct
 
    ~Font()
    {
+#if !defined(ECERE_NOTRUETYPE)
       int entry;
 
-#if !defined(ECERE_NOTRUETYPE)
       GlyphPack pack;
       while((pack = (GlyphPack)glyphPacks.root))
       {
          glyphPacks.Remove(pack);
          delete pack;
       }
-#endif
 
-#if !defined(ECERE_NOTRUETYPE)
       for(entry = 0; entry<MAX_FONT_LINK_ENTRIES; entry++)
       {
          FontEntry fontEntry = fontEntries[entry];
@@ -854,6 +852,7 @@ public class Font : struct
    bool LoadEntry(FaceInfo info)
    {
       bool result = false;
+#if !defined(ECERE_NOTRUETYPE)
       if(numEntries < MAX_FONT_LINK_ENTRIES)
       {
          FontEntry fontEntry = FontEntry::Load(info);
@@ -889,6 +888,7 @@ public class Font : struct
             result = true;
          }
       }
+#endif
       return result;
    }