-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild_master.json
More file actions
77 lines (77 loc) · 2.69 KB
/
build_master.json
File metadata and controls
77 lines (77 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"project_name": "SGE",
"description" : "Low level 2D and 3D Rendering Framework",
"canonical_name": "sge",
"dependencies" : [
"shader_compiler",
"common",
"glslcommon",
"hpml",
"meshlib",
"vulkanheaders",
"freetype2",
"glfw3",
"ttf2mesh",
"shaderc"
],
"install_header_dirs" : ["include/sge", "include/sge-cpp"],
"include_dirs": "include",
"defines" : [
"-DSGE_VULKAN_DRIVER"
],
"debug_defines" : [
"-DGLOBAL_DEBUG",
"-DDEBUG",
"-DSGE_DEBUG",
"-DLOG_DEBUG"
],
"release_defines" : [
"-DGLOBAL_RELEASE",
"-DRELEASE",
"-DSGE_RELEASE",
"-DLOG_RELEASE"
],
"vars" :
{
"test_sources" : "run_command('find', 'source/tests', '-maxdepth', '1', '-type', 'f', check : false).stdout().strip().split()",
"sge_sources" : "run_command('find', 'source/sge', '-maxdepth', '3', '-type', 'f', check : false).stdout().strip().split()",
"sge_cpp_sources" : "run_command('find', 'source/sge-cpp', '-maxdepth', '3', '-type', 'f', check : false).stdout().strip().split()",
"stb_sources" : "run_command('find', 'source/stb', '-maxdepth', '1', '-type', 'f', check : false).stdout().strip().split()",
"vulkan_sdk_path" : "run_command(find_program('python'), '-c', 'import os; print(os.environ[\"VK_SDK_PATH\"])', check : false).stdout().strip()",
"vulkan_libs_path" : "vulkan_sdk_path + '/Lib/'"
},
"windows_link_args" : ["link_dir: $vulkan_libs_path", "-lvulkan-1"],
"linux_link_args" : ["link_dir: $vulkan_libs_path", "-lvulkan-1"],
"targets": [
{
"name": "main_test",
"description" : "Test Executable for SGE",
"is_executable": true,
"sources": [
"source/main.c",
"source/test.c",
"source/legal/legal.c",
"$test_sources"
]
},
{
"name" : "sge_static",
"description" : "Static Library for SGE",
"is_static_library" : true,
"build_defines" : [ "-DSGE_BUILD_STATIC_LIBRARY" ],
"use_defines" : [ "-DSGE_USE_STATIC_LIBRARY" ]
},
{
"name" : "sge_shared",
"description" : "Shared Library for SGE",
"is_shared_library" : true,
"build_defines" : [ "-DSGE_BUILD_DYNAMIC_LIBRARY" ],
"use_defines" : [ "-DSGE_USE_DYNAMIC_LIBRARY" ]
}
],
"sources" : [
"$sge_sources",
"$sge_cpp_sources",
"$stb_sources"
]
}