Sfoglia il codice sorgente

* Fixed installation of examples for several packages compiled by fpmake

git-svn-id: trunk@20074 -
joost 13 anni fa
parent
commit
3713cf0d97

+ 2 - 2
packages/gdbm/fpmake.pp

@@ -29,8 +29,8 @@ begin
     T:=P.Targets.AddUnit('gdbm.pp');
     T:=P.Targets.AddUnit('gdbm.pp');
 
 
     P.ExamplePath.Add('examples');
     P.ExamplePath.Add('examples');
-    P.Targets.AddExampleProgram('tests/testgdbm.pp');
-    P.Targets.AddExampleProgram('tests/testgdbm2.pp');
+    P.Targets.AddExampleProgram('testgdbm.pp');
+    P.Targets.AddExampleProgram('testgdbm2.pp');
 
 
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}

+ 3 - 0
packages/gmp/fpmake.pp

@@ -28,6 +28,9 @@ begin
     P.SourcePath.Add('src');
     P.SourcePath.Add('src');
 
 
     T:=P.Targets.AddUnit('gmp.pas');
     T:=P.Targets.AddUnit('gmp.pas');
+
+    P.Sources.AddExampleFiles('examples/*',false,'.');
+
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;
     end;
     end;

+ 11 - 0
packages/gtk2/fpmake.pp

@@ -1263,6 +1263,17 @@ begin
            AddInclude('htmldocument.inc');
            AddInclude('htmldocument.inc');
            AddInclude('htmlview.inc');
            AddInclude('htmlview.inc');
          end;}
          end;}
+    P.Sources.AddExampleFiles('examples/*',false,'.');
+    P.Sources.AddExampleFiles('examples/filechooser/*',false,'filechooser');
+    P.Sources.AddExampleFiles('examples/gettingstarted/*',false,'gettingstarted');
+    P.Sources.AddExampleFiles('examples/gtk_demo/*',false,'gtk_demo');
+    P.Sources.AddExampleFiles('examples/gtkglext/*',false,'gtkglext');
+    P.Sources.AddExampleFiles('examples/helloworld/*',false,'helloworld');
+    P.Sources.AddExampleFiles('examples/helloworld2/*',false,'helloworld2');
+    P.Sources.AddExampleFiles('examples/plugins/*',false,'plugins');
+    P.Sources.AddExampleFiles('examples/scribble_simple/*',false,'scribble_simple');
+
+
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;
     end;
     end;

+ 2 - 1
packages/ibase/fpmake.pp

@@ -40,9 +40,10 @@ begin
           AddInclude('ibase60.inc');
           AddInclude('ibase60.inc');
         end;
         end;
 
 
-    P.ExamplePath.Add('tests');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testib40.pp');
     P.Targets.AddExampleProgram('testib40.pp');
     P.Targets.AddExampleProgram('testib60.pp');
     P.Targets.AddExampleProgram('testib60.pp');
+    P.Sources.AddExampleFiles('examples/*',false,'.');
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 3 - 1
packages/libcurl/fpmake.pp

@@ -30,9 +30,11 @@ begin
 
 
     T:=P.Targets.AddUnit('libcurl.pp');
     T:=P.Targets.AddUnit('libcurl.pp');
 
 
-    P.ExamplePath.Add('tests');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testcurl.pp');
     P.Targets.AddExampleProgram('testcurl.pp');
     P.Targets.AddExampleProgram('teststream.pp');
     P.Targets.AddExampleProgram('teststream.pp');
+    P.Sources.AddExampleFiles('examples/*',false,'.');
+
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 2 - 1
packages/libgd/fpmake.pp

@@ -21,9 +21,10 @@ begin
 
 
     T:=P.Targets.AddUnit('gd.pas');
     T:=P.Targets.AddUnit('gd.pas');
 
 
-    P.ExamplePath.Add('tests');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('gdtestcgi.pp');
     P.Targets.AddExampleProgram('gdtestcgi.pp');
     P.Targets.AddExampleProgram('gdtest.pp');
     P.Targets.AddExampleProgram('gdtest.pp');
+    P.Sources.AddExampleFiles('examples/*',false,'.');
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 1 - 4
packages/libxml/fpmake.pp

@@ -85,10 +85,7 @@ begin
     P.Targets.AddExampleProgram('tree2.pas');
     P.Targets.AddExampleProgram('tree2.pas');
     P.Targets.AddExampleProgram('exutils.pas');
     P.Targets.AddExampleProgram('exutils.pas');
     P.Targets.AddExampleProgram('reader2.pas');
     P.Targets.AddExampleProgram('reader2.pas');
-    // 'Makefile
-    // 'Makefile.fpc
-    // 'test1.xml
-    // 'test2.xml
+    P.Sources.AddExampleFiles('examples/*',false,'.');
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 1 - 1
packages/mysql/fpmake.pp

@@ -122,7 +122,7 @@ begin
         end;
         end;
     T.ResourceStrings := True;
     T.ResourceStrings := True;
 
 
-    P.ExamplePath.Add('tests');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testdb3.pp');
     P.Targets.AddExampleProgram('testdb3.pp');
     P.Targets.AddExampleProgram('testdb4.pp');
     P.Targets.AddExampleProgram('testdb4.pp');
     P.Targets.AddExampleProgram('mysqls.pp');
     P.Targets.AddExampleProgram('mysqls.pp');

+ 2 - 2
packages/odbc/fpmake.pp

@@ -31,9 +31,9 @@ begin
           AddInclude('odbcsql.inc');
           AddInclude('odbcsql.inc');
         end;
         end;
 
 
-    P.ExamplePath.Add('tests');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testodbc.pp');
     P.Targets.AddExampleProgram('testodbc.pp');
-    // 'testodbc.mdb
+    P.Sources.AddExampleFiles('examples/*',false,'.');
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 3 - 2
packages/postgres/fpmake.pp

@@ -51,10 +51,11 @@ begin
 
 
     P.Sources.AddSrc('README.txt');
     P.Sources.AddSrc('README.txt');
 
 
-    P.ExamplePath.Add('tests/');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testpg2.pp');
     P.Targets.AddExampleProgram('testpg2.pp');
     P.Targets.AddExampleProgram('testpg1.pp');
     P.Targets.AddExampleProgram('testpg1.pp');
-  
+    P.Sources.AddExampleFiles('examples/*',false,'.');
+
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;
     end;
     end;

+ 2 - 1
packages/regexpr/fpmake.pp

@@ -28,8 +28,9 @@ begin
 
 
     T.ResourceStrings := True;
     T.ResourceStrings := True;
 
 
-    P.ExamplePath.Add('tests');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testreg1.pp');
     P.Targets.AddExampleProgram('testreg1.pp');
+    P.Sources.AddExampleFiles('examples/*',false,'.');
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 2 - 1
packages/svgalib/fpmake.pp

@@ -24,9 +24,10 @@ begin
 
 
     P.Sources.AddSrc('README.txt');
     P.Sources.AddSrc('README.txt');
  
  
-    P.ExamplePath.Add('tests/');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testvga.pp');
     P.Targets.AddExampleProgram('testvga.pp');
     P.Targets.AddExampleProgram('vgatest.pp');
     P.Targets.AddExampleProgram('vgatest.pp');
+    P.Sources.AddExampleFiles('examples/*',false,'.');
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 2 - 1
packages/syslog/fpmake.pp

@@ -21,8 +21,9 @@ begin
 
 
     T:=P.Targets.AddUnit('systemlog.pp');
     T:=P.Targets.AddUnit('systemlog.pp');
 
 
-    P.ExamplePath.Add('tests/');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testlog.pp');
     P.Targets.AddExampleProgram('testlog.pp');
+    P.Sources.AddExampleFiles('examples/*',false,'.');
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;

+ 3 - 1
packages/uuid/fpmake.pp

@@ -25,9 +25,11 @@ begin
 
 
     P.Sources.AddSrc('README.txt');
     P.Sources.AddSrc('README.txt');
 
 
-    P.ExamplePath.Add('tests/');
+    P.ExamplePath.Add('examples');
     P.Targets.AddExampleProgram('testlibuid.pp');
     P.Targets.AddExampleProgram('testlibuid.pp');
     P.Targets.AddExampleProgram('testuid.pp');
     P.Targets.AddExampleProgram('testuid.pp');
+    P.Sources.AddExampleFiles('examples/*',false,'.');
+
 
 
 {$ifndef ALLPACKAGES}
 {$ifndef ALLPACKAGES}
     Run;
     Run;