Add initial prototype.

This commit is contained in:
Rod Kay
2022-07-31 17:34:54 +10:00
commit 54a53b2ac0
1421 changed files with 358874 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
with
"bullet_thin_cxx",
"c_math_thin",
"swig",
"math",
"lace_shared";
--library
project Bullet_thin
is
for Languages use ("Ada");
for Source_Dirs use ("../source/thin");
for Object_Dir use "build";
for Library_Dir use "lib";
for Library_Ali_Dir use "objects";
-- for Library_Name use "Bullet_thin";
package Ide renames Lace_shared.Ide;
package Builder renames Lace_shared.Builder;
package Compiler renames Lace_shared.Compiler;
package Binder renames Lace_shared.Binder;
end Bullet_thin;

View File

@@ -0,0 +1,41 @@
with
"c_math_thin_c",
"lace_shared";
--library
project Bullet_Thin_C
is
for Languages use ("c++");
for Source_Dirs use ("../source/c");
for Object_Dir use "build";
for Library_Dir use "lib";
for Library_Ali_Dir use "objects";
-- for Library_Name use "Bullet_Thin_C";
package Ide renames Lace_shared.Ide;
package Builder renames Lace_shared.Builder;
package Naming is
for Spec_Suffix ("c++") use ".h";
for Body_Suffix ("c++") use ".cpp";
end Naming;
package Compiler is
for Default_Switches ("c++") use ("-g",
"-Wno-return-type-c-linkage",
"-I../../../c_math/source/c",
"-I/usr/include/bullet",
"-I" & External ("LIBRARY_PATH", "/usr/include") & "/../include/bullet");
--
-- TODO: Find out why Alires 'C_INCLUDE_PATH' append is not working on Windows, so that
-- the above 'External ("LIBRARY_PATH")' workaround can be removed.
end Compiler;
package Linker is
for Linker_Options use ("-lBulletSoftBody",
"-lBulletDynamics",
"-lBulletCollision",
"-lLinearMath");
end Linker;
end Bullet_Thin_C;

View File

@@ -0,0 +1,29 @@
with
"bullet_thin_c",
"lace_shared";
--library
project Bullet_Thin_Cxx
is
for Languages use ("c++");
for Source_Dirs use ("../source/thin");
for Object_Dir use "build";
for Library_Dir use "lib";
for Library_Ali_Dir use "objects";
-- for Library_Name use "bullet_thin_cxx";
package Naming is
for Spec_Suffix ("c++") use ".h";
for Body_Suffix ("c++") use ".cxx";
end Naming;
package Compiler is
for Default_Switches ("c++") use ("-g",
"-I../../../c_math/source/c",
"-Wno-return-type-c-linkage");
end Compiler;
package Ide renames Lace_shared.Ide;
package Builder renames Lace_shared.Builder;
end Bullet_Thin_Cxx;