1 |
Dear Gentoo Users Developers! |
2 |
|
3 |
I would like to send a little python program that runs GCC to compile the C |
4 |
code. The C Code can put multiple sub directories in the main SRC |
5 |
directory. The python code uses os.walk method to find all C Code files and |
6 |
pass it to GCC. |
7 |
|
8 |
The pkg-config program used to find out how to name the library to pass it |
9 |
to the GCC compiler. |
10 |
|
11 |
The program builds only one binary with the one build file. |
12 |
|
13 |
The build file have to be the following configuration options: |
14 |
[ConfigSection] |
15 |
ProjectName="MariaDB-C-Connect-2" |
16 |
LinkLibrary=["libmariadb"] |
17 |
SourceDirectory="SRC_DIR_MDB_1" |
18 |
BuildBinaryName="execute-MariaDB-C-1" |
19 |
=== |
20 |
|
21 |
I think this is so minimal. :) |
22 |
|
23 |
See the attached file for the program. |
24 |
|
25 |
Sincerely xbx. |