Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 1.25 KB

README.md

File metadata and controls

45 lines (40 loc) · 1.25 KB

C Build Script

What's this?

This is a Python script to help you build your C simple/mulitfile project.
If you are writing C program in VS Code and you are trapped in the c compilment configuration, this may help you.

How to use

Note: put `compiler-script.py in the root of files.

python3 compiler-script.py

OR

chomd +x ./compiler-script.py
./compiler-script.py

Configurations

We use compiler-script.configuration to configure this script.
This script also has default value.
It only use GCC as compiler, and clang (llvm) has been not support yet.

For example, in Ubuntu:

ProjectName = Test

#You can't change it.(script ignore this option.)
#Compiler = gcc

#Third-party library dependence.
LibraryDependence = ""
#
OptLevel = 0
#LibrarySearchPath should use with LibraryDependence.It means additional path to search.
LibrarySearchPath = .:lib/

Note: misc.h, misc.c test.c was used to test.

Dependence

It only depends on Python Stdand Library.
No third-party libraries are required (thus, this project does't have requirements.txt)

Limitations

It has not been tested fully yet.(I hope you could help me to test this :)

License

We use MIT to release this script.