diff -u --recursive aws-gpl-2016-src.ref/aws.gpr aws-gpl-2016-src/aws.gpr
--- aws-gpl-2016-src.ref/aws.gpr 2016-05-16 11:21:11.000000000 +0200
+++ aws-gpl-2016-src/aws.gpr 2016-08-09 16:57:31.402459708 +0200
@@ -17,23 +17,20 @@
------------------------------------------------------------------------------
with "shared";
-with "include/zlib/zlib.gpr";
+with "zlib_ada";
+with "templates_parser";
+with "xmlada";
+with "directories";
aggregate library project AWS is
for Project_Files use ("include/include.gpr", "src/src.gpr", "ssl/ssl.gpr");
- case ZLib.Zlib_Activated is
- when "Yes" =>
- for Project_Files
- use Project'Project_Files & ("include/zlib/zlib.gpr");
- when "No" =>
- null;
- end case;
-
for Library_Name use "aws";
for Library_Kind use Shared.Library_Type;
for Library_Dir use Shared'Library_Dir & "/aws";
+ for Library_Options use ("-L", "-lzlib_ada", "-ltemplates_parser");
+ for Library_Version use "lib" & Project'Library_Name & "-2017.so";
case Shared.Library_Type is
when "static" =>
@@ -76,6 +73,7 @@
package Install is
-- examples
+ for Lib_Subdir use Directories.Lib & "/aws/";
for Artifacts ("share/examples/aws/images")
use ("demos/runme/aws_*.png");
for Artifacts ("share/examples/aws/templates")
@@ -83,8 +81,6 @@
-- support files (templates)
- for Artifacts ("share/examples/aws/templates")
- use ("templates_parser/tools/templates.tads");
for Artifacts ("share/examples/aws/web_elements")
use ("web_elements/menu_css", "web_elements/notebook",
"web_elements/rounded_boxes", "web_elements/icons",
@@ -103,10 +99,6 @@
for Artifacts ("share/doc/aws") use ("docs/build/html");
for Artifacts ("share/doc/aws/pdf") use ("docs/build/latex/*.pdf");
- for Artifacts ("share/doc/aws/templates_parser")
- use ("templates_parser/docs/build/html");
- for Artifacts ("share/doc/aws/templates_parser/pdf")
- use ("templates_parser/docs/build/latex/*.pdf");
-- gps plug-ins
diff -u --recursive aws-gpl-2016-src.ref/include/include.gpr aws-gpl-2016-src/include/include.gpr
--- aws-gpl-2016-src.ref/include/include.gpr 2016-05-16 11:21:11.000000000 +0200
+++ aws-gpl-2016-src/include/include.gpr 2016-08-09 16:57:13.237741160 +0200
@@ -18,7 +18,7 @@
with "../shared";
-with "zlib/zlib";
+with "zlib_ada";
library project Include is
diff -u --recursive aws-gpl-2016-src.ref/Makefile aws-gpl-2016-src/Makefile
--- aws-gpl-2016-src.ref/Makefile 2016-04-25 16:20:39.000000000 +0200
+++ aws-gpl-2016-src/Makefile 2016-08-09 16:57:13.237741160 +0200
@@ -69,7 +69,6 @@
echo ""
echo "=== Build doc"
${MAKE} -C docs html latexpdf
- ${MAKE} -C templates_parser/docs html latexpdf
run_regtests:
echo ""
@@ -147,6 +146,7 @@
# Install directories
I_INC = $(TPREFIX)/include/aws
+I_LIB ?= ${TPREFIX}/lib
GALL_OPTIONS := $(ALL_OPTIONS) \
PRJ_BUILD="$(PRJ_BUILD)" \
@@ -182,7 +182,7 @@
# build
build-native:
- $(GPRBUILD) -p $(GPROPTS) $(GPR_STATIC) tools/tools.gpr
+ $(GPRBUILD) -p $(GPROPTS) $(GPR_SHARED) tools/tools.gpr
ifeq (${ENABLE_SHARED}, true)
$(GPRBUILD) -p $(GPROPTS) $(GPR_SHARED) aws.gpr
endif
@@ -239,14 +239,11 @@
install-native: install-clean
$(GPRINSTALL) $(GPROPTS) -p -f --prefix=$(TPREFIX) \
+ --link-lib-subdir=${I_LIB} --lib-subdir=${I_LIB}/aws/ \
-XLIBRARY_TYPE=$(DEFAULT_LIBRARY_TYPE) aws.gpr
$(GPRINSTALL) $(GPROPTS) -p -f --prefix=$(TPREFIX) \
$(GPR_STATIC) --mode=usage \
--install-name=aws tools/tools.gpr
-ifeq (${ENABLE_SHARED}, true)
- $(GPRINSTALL) $(GPROPTS) -p -f --prefix=$(TPREFIX) \
- $(GPR_OTHER) --build-name=$(OTHER_LIBRARY_TYPE) aws.gpr
-endif
install-cross: install-clean
$(GPRINSTALL) $(GPROPTS) -p -f --prefix=$(TPREFIX) \
@@ -343,7 +340,5 @@
echo "TARGET=$(TARGET)" >> makefile.setup
echo "GSOAP=false" >> makefile.setup
-setup: gen_setup setup_dir setup_modules setup_config setup_tp $(GEXT_MODULE)
+setup: gen_setup setup_dir setup_modules setup_config $(GEXT_MODULE)
-setup_tp:
- $(MAKE) -C templates_parser setup $(GALL_OPTIONS)
diff -u --recursive aws-gpl-2016-src.ref/src/src.gpr aws-gpl-2016-src/src/src.gpr
--- aws-gpl-2016-src.ref/src/src.gpr 2016-05-16 11:21:11.000000000 +0200
+++ aws-gpl-2016-src/src/src.gpr 2016-08-09 16:57:13.237741160 +0200
@@ -21,13 +21,14 @@
with "../shared";
with "../include/include";
with "../ssl/ssl";
+with "templates_parser";
library project Src is
for Languages use ("Ada", "Project file", "Makefile");
for Source_Dirs use
- ("core", "extended", "../templates_parser/src", "../config/src",
+ ("core", "extended", "../config/src",
"../config/ssl", "../" & Shared.Target_Dir & "/setup/src", ".");
-- XMLAda Installed, add xsrc and soap directories
@@ -35,7 +36,7 @@
case Shared.XMLAda is
when "Installed" =>
for Source_Dirs use project'Source_Dirs &
- ("xsrc", "soap", "../templates_parser/xsrc");
+ ("xsrc", "soap");
when "Disabled" =>
null;
end case;
@@ -124,17 +125,6 @@
for Implementation_Suffix ("Makefile") use ".txt";
for Implementation_Exceptions ("Makefile") use ("Makefile");
- -- Templates Parser
-
- for Specification ("Templates_Parser.Configuration")
- use "templates_parser-configuration__aws.ads";
-
- for Implementation ("Templates_Parser.Input")
- use "templates_parser-input__aws.adb";
-
- for Implementation ("Templates_Parser_Tasking")
- use "templates_parser_tasking__standard_tasking.adb";
-
-- SOCKLIB
case Shared.SOCKLIB is
diff -u --recursive aws-gpl-2016-src.ref/tools/tools.gpr aws-gpl-2016-src/tools/tools.gpr
--- aws-gpl-2016-src.ref/tools/tools.gpr 2016-05-16 11:21:11.000000000 +0200
+++ aws-gpl-2016-src/tools/tools.gpr 2016-08-09 16:57:13.238741145 +0200
@@ -20,15 +20,16 @@
with "../shared";
with "../aws";
with "../win32/win32";
+with "templates_parser";
project Tools is
for Languages use ("Ada", "Project file");
- for Source_Dirs use (".", "../templates_parser/tools");
+ for Source_Dirs use ("." );
- for Main use ("awsres.adb", "aws_password.adb", "templates2ada.adb",
- "webxref.adb", "templatespp.adb");
+ for Main use ("awsres.adb", "aws_password.adb",
+ "webxref.adb");
case Shared.XMLAda is
when "Installed" =>
@@ -71,7 +72,7 @@
package Binder is
for Default_Switches ("Ada")
- use Shared.Builder'Default_Switches ("Ada") & ("-static");
+ use Shared.Builder'Default_Switches ("Ada") & ("-shared");
end Binder;
-------------
--- a/Makefile 2017-07-10 10:13:26.380165218 +0200
+++ b/Makefile 2017-07-10 10:13:36.878147739 +0200
@@ -83,7 +83,7 @@
MODULES = config include ssl src gps regtests demos
-MODULES_SETUP = ${MODULES:%=%_setup} templates_parser_setup
+MODULES_SETUP = ${MODULES:%=%_setup}
MODULES_INSTALL = ${MODULES:%=%_install}
--- a/ssl/ssl.gpr 2017-07-10 11:26:14.515515057 +0200
+++ b/ssl/ssl.gpr 2017-07-10 11:27:32.255375589 +0200
@@ -39,6 +39,7 @@
for Library_Dir use "../" & Shared'Library_Dir & "/ssl";
for Library_Name use "aws_ssl";
+ for Library_Version use "lib" & Project'Library_Name & "-2017.so";
for Library_Kind use Shared.Library_Type;
for Leading_Library_Options use Shared.Leading_Library_Options;