Rombobjörn

summaryrefslogtreecommitdiff
path: root/build_system_log.gpr
diff options
context:
space:
mode:
authorBjörn Persson <bjorn@rombobjörn.se>2012-01-08 08:23:22 +0000
committerBjörn Persson <bjorn@rombobjörn.se>2012-01-08 08:23:22 +0000
commit67bda4b246ee01749b68172affe2d1cbf0193502 (patch)
tree88f5c491b0193ca8c4e470346c0ad16ec6cf7b54 /build_system_log.gpr
parentfb44df9efb6ff928b86df3704b827bd97c2f980c (diff)
Added project files.
Diffstat (limited to 'build_system_log.gpr')
-rw-r--r--build_system_log.gpr39
1 files changed, 39 insertions, 0 deletions
diff --git a/build_system_log.gpr b/build_system_log.gpr
new file mode 100644
index 0000000..b0d6dd7
--- /dev/null
+++ b/build_system_log.gpr
@@ -0,0 +1,39 @@
+-- Use this project file to compile System_Log into a shared library.
+-- Copyright 2012 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";
+
+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_Interface use ("System_Log");
+
+ 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.
+ package Binder is
+ for Default_Switches ("Ada") use ("-a");
+ end Binder;
+
+end Build_System_Log;