Add init function for cleaner usage
This commit is contained in:
parent
d15b25dba6
commit
af734cda73
12 changed files with 156 additions and 91 deletions
6
make.py
6
make.py
|
|
@ -9,7 +9,7 @@ from umake import get_hash, make
|
|||
|
||||
class Config:
|
||||
CC = 'g++'
|
||||
APPS = ['test/example_gl', 'test/benchmark_text']
|
||||
APPS = ['test/example_gl', 'test/benchmark_text', 'test/sample']
|
||||
IGNORE_APPS = []
|
||||
JOB_COUNT = int(os.cpu_count() * 0.8)
|
||||
|
||||
|
|
@ -19,9 +19,9 @@ class Config:
|
|||
SOURCE_DIR = Path('src')
|
||||
|
||||
COMMON_FLAGS = '-std=c++17 -fno-semantic-interposition'
|
||||
COMMON_DEBUG_FLAGS = '-g -DDEBUG'
|
||||
COMMON_DEBUG_FLAGS = '-g -Og -DDEBUG'
|
||||
COMMON_RELEASE_FLAGS = '-O2 -flto'
|
||||
COMPILE_FLAGS = f'-Wall -Wconversion -I{INCLUDE_DIR} `pkg-config --cflags glfw3 vulkan gl x11 freetype2`'
|
||||
COMPILE_FLAGS = f'-Wall -Wextra -Wpedantic -Wconversion -I{INCLUDE_DIR} `pkg-config --cflags glfw3 vulkan gl x11 freetype2`'
|
||||
LINK_FLAGS = '-lpthread -ldl `pkg-config --libs glfw3 vulkan gl x11 freetype2`'
|
||||
|
||||
PRE_COMPILE_FUNCTION = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue