diff options
-rw-r--r-- | build_system_log.gpr | 39 | ||||
-rw-r--r-- | directories.gpr | 18 | ||||
-rw-r--r-- | system_log.gpr | 18 |
3 files changed, 75 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; diff --git a/directories.gpr b/directories.gpr new file mode 100644 index 0000000..689d436 --- /dev/null +++ b/directories.gpr @@ -0,0 +1,18 @@ +-- Default directories +-- Copyright 2012 B. Persson, Bjorn@Rombobeorn.se +-- You may do whatever you want with this file as long as you acknowledge the +-- author's copyright. + +-- If your system has a global directories.gpr and you want to install to the +-- directories it specifies, then just delete this file and let the build use +-- the global one. Otherwise edit the paths below to your liking. + + +project Directories is + Hardware_Platform := ""; + Libdir := "/usr/local/lib"; + Bindir := "/usr/local/bin"; + Libexecdir := "/usr/local/libexec"; + Includedir := "/usr/local/include"; + for Source_Files use (); +end Directories; diff --git a/system_log.gpr b/system_log.gpr new file mode 100644 index 0000000..3b37702 --- /dev/null +++ b/system_log.gpr @@ -0,0 +1,18 @@ +-- Projects that use System_Log should import this file. +-- 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 System_Log is + for Library_Name use "adasyslog"; + for Library_Kind use "relocatable"; + for Source_Dirs use (Directories.Includedir & "/adasyslog"); + for Library_Dir use Directories.Libdir; + for Library_ALI_Dir use Directories.Libdir & "/adasyslog"; + for Externally_Built use "true"; +end System_Log; |