Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSBuild

Currently it only works on linux!!

What is this?

This is a program like cmake made with python. Its for building c projects.

How to use?

python3 csbuild.py <project directory or current directory>

For more usage type:

python3 csbuild.py -h

CSBuildInfo

This is the info file for CSBuild Example:

COMPILER gcc
EXTRA_COMPILER_FLAGS -Wextra -Wall
OUTPUT_FILE main

SOURCE_DIR src

//SOURCES.
//src/main.c
//src/mymath.c
//.SOURCES

clean:
rm src/*.o
rm %OUTPUT_FILE%
end

runbuild:
BUILD
./%OUTPUT_FILE%
end

run:
./%OUTPUT_FILE%
end

How to use CSBuildInfo

Firstly you set your compiler with:

COMPILER <your complier>

Secondly you set your output file name with:

OUTPUT_FILE <your output file name>

You can also set libs and extra compiler flags with:

LIBS <lib1> <lib2>
COMPILER_EXTRA_FLAGS <flag1> <flag2>

Thirdly you define the source code, there are two ways. First way, you can set a directory for source code Second way, you can set all the source files individually

//First way:
SOURCE_DIR <source code directory>

//Second way:
SOURCES.
<dir/file1>
<dir/file2>
.SOURCES

You can make comments:

//This is a comment

You can also define operations to do different things:

//You can use % for variables like OUTPUT_FILE
run:
./%OUTPUT_FILE%
end

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages