eda/sqlite: Building EDASQLite statically (ecc/.imp bug: import "EDASQLite" is not...
authorJerome St-Louis <jerome@ecere.com>
Fri, 30 Sep 2011 07:23:11 +0000 (03:23 -0400)
committerJerome St-Louis <jerome@ecere.com>
Fri, 30 Sep 2011 07:26:59 +0000 (03:26 -0400)
eda/drivers/sqlite/EDASQLite.ec
eda/drivers/sqlite/EDASQLite.epj

index e40ea16..7dea09b 100644 (file)
@@ -80,6 +80,8 @@ int CollationCompare(Class type, int count1, void * data1, int count2, void * da
       return type._vTbl[__ecereVMethodID_class_OnCompare](type, data1, data2);
 }
 
+public class SQLiteStaticLink { }   // Until .imp generation is fixed
+
 class SQLiteDataSource : DataSourceDriver
 {
    class_property(name) = "SQLite";
@@ -335,7 +337,7 @@ class SQLiteDatabase : Database
                            char dataType[256];
                            int d;
                            int start = c;
-                           int sqliteType;
+                           int sqliteType = SQLITE_BLOB;
                            Class type = class(int);
                            fieldName[0] = 0;
                            dataType[0] = 0;
@@ -388,7 +390,7 @@ class SQLiteDatabase : Database
                      char * typeName = sqlite3_column_text(statement, 1);
                      int length = sqlite3_column_int(statement, 2);
                      Class type = null;
-                     int sqliteType;
+                     int sqliteType = SQLITE_BLOB;
 
                      ((Class)(&type)).OnGetDataFromString(typeName);    // TODO: THIS REQUIRES A FIX SOMEWHERE ELSE
 
index db95e04..2fedab4 100644 (file)
                "_DEBUG"
             ]
          }
+      },
+      {
+         "Name" : "Static",
+         "Options" : {
+            "NoLineNumbers" : true,
+            "Optimization" : "Speed",
+            "PreprocessorDefinitions" : [
+               "ECERE_STATIC"
+            ],
+            "TargetType" : "StaticLibrary",
+            "TargetFileName" : "EDASQLiteStatic"
+         }
       }
    ],
    "Files" : [