ecere/ecere.epj: Excluding things from StaticGLES Config
authorJerome St-Louis <jerome@ecere.com>
Thu, 10 Dec 2015 01:18:11 +0000 (20:18 -0500)
committerJerome St-Louis <jerome@ecere.com>
Sat, 2 Jul 2016 20:42:00 +0000 (16:42 -0400)
- SSE3 optimizations

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

index 8424c2d..d332271 100644 (file)
@@ -468,6 +468,7 @@ if distributed with the Ecere SDK Windows installer.
             "TargetFileName" : "ecereStatic",
             "CompilerOptions" : [
                "-mmmx",
+               "-msse3",
                "-msse4"
             ],
             "FastMath" : true
@@ -974,6 +975,17 @@ if distributed with the Ecere SDK Windows installer.
                                        }
                                     }
                                  ]
+                              },
+                              {
+                                 "Name" : "StaticGLES",
+                                 "Platforms" : [
+                                    {
+                                       "Name" : "win32",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
+                                    }
+                                 ]
                               }
                            ]
                         },
@@ -1042,6 +1054,17 @@ if distributed with the Ecere SDK Windows installer.
                                        }
                                     }
                                  ]
+                              },
+                              {
+                                 "Name" : "StaticGLES",
+                                 "Platforms" : [
+                                    {
+                                       "Name" : "win32",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
+                                    }
+                                 ]
                               }
                            ]
                         },
@@ -1110,6 +1133,17 @@ if distributed with the Ecere SDK Windows installer.
                                        }
                                     }
                                  ]
+                              },
+                              {
+                                 "Name" : "StaticGLES",
+                                 "Platforms" : [
+                                    {
+                                       "Name" : "win32",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
+                                    }
+                                 ]
                               }
                            ]
                         },
@@ -1340,6 +1374,17 @@ if distributed with the Ecere SDK Windows installer.
                                        }
                                     }
                                  ]
+                              },
+                              {
+                                 "Name" : "StaticGLES",
+                                 "Platforms" : [
+                                    {
+                                       "Name" : "win32",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
+                                    }
+                                 ]
                               }
                            ]
                         },
@@ -1451,6 +1496,17 @@ if distributed with the Ecere SDK Windows installer.
                                        }
                                     }
                                  ]
+                              },
+                              {
+                                 "Name" : "StaticGLES",
+                                 "Platforms" : [
+                                    {
+                                       "Name" : "win32",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
+                                    }
+                                 ]
                               }
                            ]
                         },
@@ -1508,6 +1564,17 @@ if distributed with the Ecere SDK Windows installer.
                                        }
                                     }
                                  ]
+                              },
+                              {
+                                 "Name" : "StaticGLES",
+                                 "Platforms" : [
+                                    {
+                                       "Name" : "win32",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
+                                    }
+                                 ]
                               }
                            ]
                         },
@@ -1830,6 +1897,17 @@ if distributed with the Ecere SDK Windows installer.
                                        }
                                     }
                                  ]
+                              },
+                              {
+                                 "Name" : "StaticGLES",
+                                 "Platforms" : [
+                                    {
+                                       "Name" : "win32",
+                                       "Options" : {
+                                          "ExcludeFromBuild" : true
+                                       }
+                                    }
+                                 ]
                               }
                            ]
                         },
index f3e320a..ed31646 100644 (file)
@@ -56,10 +56,14 @@ import "lfbConvert"
 
 #if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA) && defined(__WIN32__)
 import "OpenGLDisplayDriver"
+
+#if !defined(_GLES) || !defined(ECERE_STATIC)
 import "Direct3D8DisplayDriver"
 import "Direct3D9DisplayDriver"
 #endif
 
+#endif
+
 #if !defined(ECERE_NOTRUETYPE)
 
 #define MAX_FONT_LINK_ENTRIES   10
@@ -609,9 +613,13 @@ class GlyphPack : BTNode
             displaySystem.Lock();
 #if defined(__WIN32__)
             // Is this check still required?
-            if(displaySystem.driver == class(OpenGLDisplayDriver) ||
-               displaySystem.driver == class(Direct3D8DisplayDriver) ||
-               displaySystem.driver == class(Direct3D9DisplayDriver))
+            if(displaySystem.driver == class(OpenGLDisplayDriver)
+
+#if !defined(_GLES) || !defined(ECERE_STATIC)
+            || displaySystem.driver == class(Direct3D8DisplayDriver)
+            || displaySystem.driver == class(Direct3D9DisplayDriver)
+#endif
+            )
 #endif
                bitmap.MakeDD(displaySystem);
             displaySystem.Unlock();