2013-12-10 16:14:06 +00:00
|
|
|
project Lib is
|
|
|
|
|
2014-06-05 15:26:37 +00:00
|
|
|
type Platform_Type is ("posix", "win32");
|
|
|
|
Platform: Platform_Type := external ("platform", "posix");
|
|
|
|
|
2014-05-30 03:20:24 +00:00
|
|
|
for Source_Dirs use (
|
|
|
|
"@abs_srcdir@",
|
2014-06-05 15:26:37 +00:00
|
|
|
"@abs_srcdir@/" & Platform,
|
|
|
|
"@abs_builddir@/" & Platform
|
2014-05-30 03:20:24 +00:00
|
|
|
);
|
2014-06-05 15:26:37 +00:00
|
|
|
|
2013-12-10 16:14:06 +00:00
|
|
|
for Library_Name use "h2";
|
|
|
|
for Library_Kind use "dynamic";
|
|
|
|
for Library_Dir use ".";
|
|
|
|
--for Library_Src_Dir use ".";
|
|
|
|
for Object_Dir use "@ADA_OBJDIR@";
|
|
|
|
|
|
|
|
for Source_Files use (
|
|
|
|
"h2.ads",
|
2014-01-09 15:32:36 +00:00
|
|
|
"h2-ascii.ads",
|
2013-12-10 16:14:06 +00:00
|
|
|
"h2-pool.adb",
|
|
|
|
"h2-pool.ads",
|
2014-06-05 15:26:37 +00:00
|
|
|
"h2-os.adb",
|
|
|
|
"h2-os.ads",
|
|
|
|
"h2-os-file.adb",
|
|
|
|
"h2-sysdef.ads",
|
2014-06-04 17:15:52 +00:00
|
|
|
"h2-io.ads",
|
|
|
|
"h2-io.adb",
|
|
|
|
"h2-io-file.adb",
|
2014-06-17 15:23:35 +00:00
|
|
|
"h2-io-get_line_terminator.adb",
|
2013-12-10 16:14:06 +00:00
|
|
|
"h2-scheme.adb",
|
2014-01-04 06:31:14 +00:00
|
|
|
"h2-scheme.ads",
|
2014-02-20 14:51:53 +00:00
|
|
|
"h2-scheme-bigint.adb",
|
2014-01-16 16:52:18 +00:00
|
|
|
"h2-scheme-execute.adb",
|
2014-01-19 06:40:23 +00:00
|
|
|
"h2-scheme-execute-apply.adb",
|
2014-01-19 15:47:45 +00:00
|
|
|
"h2-scheme-execute-evaluate.adb",
|
2014-01-14 14:22:06 +00:00
|
|
|
"h2-scheme-token.adb",
|
2014-03-26 14:28:41 +00:00
|
|
|
"h2-slim.ads",
|
2014-01-14 14:22:06 +00:00
|
|
|
"h2-utf8.adb",
|
2014-01-17 14:15:08 +00:00
|
|
|
"h2-utf8.ads",
|
2014-05-30 03:20:24 +00:00
|
|
|
"h2-wide.ads",
|
|
|
|
"h2-wide_wide.ads"
|
2013-12-10 16:14:06 +00:00
|
|
|
);
|
|
|
|
for Library_Interface use (
|
|
|
|
"h2",
|
2014-01-09 15:32:36 +00:00
|
|
|
"h2.ascii",
|
2014-06-04 17:15:52 +00:00
|
|
|
"h2.io",
|
2013-12-10 16:14:06 +00:00
|
|
|
"h2.pool",
|
2014-01-14 14:22:06 +00:00
|
|
|
"h2.scheme",
|
2014-03-26 14:28:41 +00:00
|
|
|
"h2.slim",
|
2014-06-04 17:15:52 +00:00
|
|
|
"h2.sysdef",
|
2014-06-05 15:26:37 +00:00
|
|
|
"h2.os",
|
2014-01-17 14:15:08 +00:00
|
|
|
"h2.utf8",
|
2014-05-30 03:20:24 +00:00
|
|
|
"h2.wide",
|
|
|
|
"h2.wide_wide"
|
2013-12-10 16:14:06 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
package Compiler is
|
|
|
|
for Default_Switches ("Ada") use (
|
2014-01-16 16:52:18 +00:00
|
|
|
"-gnata", "-gnato", "-gnatN", "-gnatwl", "-gnat95", "-gnatW8", "-g"
|
2013-12-10 16:14:06 +00:00
|
|
|
);
|
|
|
|
end Compiler;
|
|
|
|
|
2014-06-05 15:26:37 +00:00
|
|
|
--package Naming is
|
|
|
|
-- case Platform is
|
|
|
|
-- when "posix" =>
|
|
|
|
-- for Body ("H2.OS.File") use "h2-os-file-posix.adb";
|
|
|
|
-- when "win32" =>
|
|
|
|
-- for Body ("H2.OS.File") use "h2-os-file-win32.adb";
|
|
|
|
-- end case;
|
|
|
|
--end Naming;
|
|
|
|
|
2013-12-10 16:14:06 +00:00
|
|
|
--package Install is
|
|
|
|
-- for Prefix use "@prefix@";
|
|
|
|
--end Install;
|
|
|
|
end Lib;
|
|
|
|
|