Rombobjörn

summaryrefslogtreecommitdiff
path: root/build_system_log.gpr
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2013-02-13 23:23:53 +0100
committerBjörn Persson <bjorn@rombobjörn.se>2013-02-13 23:23:53 +0100
commit41cf063931a6d818ba66b95283392ac8a6e48022 (patch)
treeaff70df494543ac52eca48f57eb9cc37d852fe6b /build_system_log.gpr
parent8d23905093ecf9f9e008c189b51714b5a8c2ca08 (diff)
Added a convenient and flexible build system.
Diffstat (limited to 'build_system_log.gpr')
-rw-r--r--build_system_log.gpr29
1 files changed, 12 insertions, 17 deletions
diff --git a/build_system_log.gpr b/build_system_log.gpr
index b0d6dd7..df98c7f 100644
--- a/build_system_log.gpr
+++ b/build_system_log.gpr
@@ -1,37 +1,32 @@
--- Use this project file to compile System_Log into a shared library.
--- Copyright 2012 B. Persson, Bjorn@Rombobeorn.se
+-- project file to compile System_Log into a shared library
+-- Copyright 2012 - 2013 B. Persson, Bjorn@Rombobeorn.se
--
-- This project file is free software: you can redistribute it and/or modify it
-- under the terms of the GNU General Public License version 3, as published
-- by the Free Software Foundation.
-with "directories";
+with "comfignat.gpr";
-project Build_System_Log is
+library project Build_System_Log is
Version := "1.2";
- Destdir := external("DESTDIR", "");
-
- for Library_Name use "adasyslog";
- for Library_Kind use "relocatable";
- for Library_Version use "libadasyslog.so." & Version;
- for Library_Src_Dir use Destdir & Directories.Includedir & "/adasyslog";
- for Library_Dir use Destdir & Directories.Libdir;
- for Library_ALI_Dir use Destdir & Directories.Libdir & "/adasyslog";
-
- -- Put the binder files for different architectures in subdirectories where
- -- they won't conflict with each other.
- for Object_Dir use "obj/" & Directories.Hardware_Platform;
+ for Library_Name use "adasyslog";
+ for Library_Kind use "dynamic";
+ for Library_Version use "libadasyslog.so." & Version;
for Library_Interface use ("System_Log");
+ for Object_Dir use Comfignat.Objdir;
+ for Library_Src_Dir use Comfignat.Stage_Includedir & "/adasyslog";
+ for Library_Dir use Comfignat.Stage_Libdir;
+ for Library_ALI_Dir use Comfignat.Stage_Libdir & "/adasyslog";
package Compiler is
for Default_Switches ("Ada") use ("-gnato");
end Compiler;
-- Ensure that the shared library will be initialized. GPRbuild 2010 doesn't
- -- pass -a automatically.
+ -- pass -a automatically. (Fixed in GPRbuild 2012.)
package Binder is
for Default_Switches ("Ada") use ("-a");
end Binder;