first commit
This commit is contained in:
commit
1c2e952b5a
41 changed files with 1198 additions and 0 deletions
20
config/lambda_config.ads
Normal file
20
config/lambda_config.ads
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- Configuration for lambda generated by Alire
|
||||
pragma Restrictions (No_Elaboration_Code);
|
||||
pragma Style_Checks (Off);
|
||||
|
||||
package Lambda_Config is
|
||||
pragma Pure;
|
||||
|
||||
Crate_Version : constant String := "0.1.0-dev";
|
||||
Crate_Name : constant String := "lambda";
|
||||
|
||||
Alire_Host_OS : constant String := "linux";
|
||||
|
||||
Alire_Host_Arch : constant String := "x86_64";
|
||||
|
||||
Alire_Host_Distro : constant String := "fedora";
|
||||
|
||||
type Build_Profile_Kind is (release, validation, development);
|
||||
Build_Profile : constant Build_Profile_Kind := release;
|
||||
|
||||
end Lambda_Config;
|
||||
24
config/lambda_config.gpr
Normal file
24
config/lambda_config.gpr
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
-- Configuration for lambda generated by Alire
|
||||
abstract project Lambda_Config is
|
||||
Crate_Version := "0.1.0-dev";
|
||||
Crate_Name := "lambda";
|
||||
|
||||
Alire_Host_OS := "linux";
|
||||
|
||||
Alire_Host_Arch := "x86_64";
|
||||
|
||||
Alire_Host_Distro := "fedora";
|
||||
Ada_Compiler_Switches := External_As_List ("ADAFLAGS", " ");
|
||||
Ada_Compiler_Switches := Ada_Compiler_Switches &
|
||||
(
|
||||
"-O3" -- Optimize for performance
|
||||
,"-gnatn" -- Enable inlining
|
||||
,"-ffunction-sections" -- Separate ELF section for each function
|
||||
,"-fdata-sections" -- Separate ELF section for each variable
|
||||
,"-gnatW8" -- UTF-8 encoding for wide characters
|
||||
);
|
||||
|
||||
type Build_Profile_Kind is ("release", "validation", "development");
|
||||
Build_Profile : Build_Profile_Kind := "release";
|
||||
|
||||
end Lambda_Config;
|
||||
20
config/lambda_config.h
Normal file
20
config/lambda_config.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* Configuration for lambda generated by Alire */
|
||||
#ifndef LAMBDA_CONFIG_H
|
||||
#define LAMBDA_CONFIG_H
|
||||
|
||||
#define CRATE_VERSION "0.1.0-dev"
|
||||
#define CRATE_NAME "lambda"
|
||||
|
||||
#define ALIRE_HOST_OS "linux"
|
||||
|
||||
#define ALIRE_HOST_ARCH "x86_64"
|
||||
|
||||
#define ALIRE_HOST_DISTRO "fedora"
|
||||
|
||||
#define BUILD_PROFILE_RELEASE 1
|
||||
#define BUILD_PROFILE_VALIDATION 2
|
||||
#define BUILD_PROFILE_DEVELOPMENT 3
|
||||
|
||||
#define BUILD_PROFILE 1
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue