Browse Source

* Fixed compilation of mssql

git-svn-id: trunk@20618 -
michael 13 years ago
parent
commit
8799956817
1 changed files with 12 additions and 0 deletions
  1. 12 0
      packages/fcl-db/fpmake.pp

+ 12 - 0
packages/fcl-db/fpmake.pp

@@ -13,6 +13,7 @@ const
   SqldbConnectionOSes = [beos,linux,freebsd,win32,win64,wince,darwin,iphonesim,netbsd,openbsd];
   SqldbConnectionOSes = [beos,linux,freebsd,win32,win64,wince,darwin,iphonesim,netbsd,openbsd];
   SqliteOSes          = [beos,haiku,linux,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,win32,wince];
   SqliteOSes          = [beos,haiku,linux,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,win32,wince];
   DBaseOSes           = [beos,haiku,linux,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,win32,win64,wince];
   DBaseOSes           = [beos,haiku,linux,freebsd,darwin,iphonesim,solaris,netbsd,openbsd,win32,win64,wince];
+  MSSQLOSes           = [beos,haiku,linux,freebsd,netbsd,openbsd,win32];
   SqldbWithoutPostgresOSes = [win64];
   SqldbWithoutPostgresOSes = [win64];
 
 
 Var
 Var
@@ -46,6 +47,7 @@ begin
     P.SourcePath.Add('src/sqldb/odbc', SqldbConnectionOSes);
     P.SourcePath.Add('src/sqldb/odbc', SqldbConnectionOSes);
     P.SourcePath.Add('src/sqldb/examples', SqldbConnectionOSes);
     P.SourcePath.Add('src/sqldb/examples', SqldbConnectionOSes);
     P.SourcePath.Add('src/sqldb/oracle', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
     P.SourcePath.Add('src/sqldb/oracle', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
+    P.SourcePath.Add('src/sqldb/mssql', MSSQlOSes);
     P.SourcePath.Add('src/sdf');
     P.SourcePath.Add('src/sdf');
     P.SourcePath.Add('src/json');
     P.SourcePath.Add('src/json');
     P.SourcePath.Add('src/datadict', DatadictOSes);
     P.SourcePath.Add('src/datadict', DatadictOSes);
@@ -72,6 +74,7 @@ begin
     P.Dependencies.Add('oracle', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
     P.Dependencies.Add('oracle', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
     P.Dependencies.Add('postgres', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
     P.Dependencies.Add('postgres', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
     P.Dependencies.Add('sqlite', SqldbConnectionOSes+SqliteOSes);
     P.Dependencies.Add('sqlite', SqldbConnectionOSes+SqliteOSes);
+    P.Dependencies.Add('dblib', MSSQLOses);
     P.Dependencies.Add('pxlib',ParadoxOSes);
     P.Dependencies.Add('pxlib',ParadoxOSes);
     P.Dependencies.Add('fcl-json');
     P.Dependencies.Add('fcl-json');
 
 
@@ -631,6 +634,15 @@ begin
           AddUnit('bufdataset_parser');
           AddUnit('bufdataset_parser');
         end;
         end;
     T:=P.Targets.AddUnit('pqconnection.pp', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
     T:=P.Targets.AddUnit('pqconnection.pp', SqldbConnectionOSes-SqldbWithoutPostgresOSes);
+    T.ResourceStrings:=true;
+      with T.Dependencies do
+        begin
+          AddUnit('sqldb');
+          AddUnit('db');
+          AddUnit('dbconst');
+          AddUnit('bufdataset');
+        end;
+    T:=P.Targets.AddUnit('mssqlconn.pp', mssqlOSes);
     T.ResourceStrings:=true;
     T.ResourceStrings:=true;
       with T.Dependencies do
       with T.Dependencies do
         begin
         begin