blob: 2066ecd60c8b055719ab01771f444de2afebd8e3 (
plain)
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
|
add_rules("mode.debug", "mode.release")
set_languages("cxx11")
-- Target 1: main executable
target("main")
set_kind("binary")
set_pcxxheader("src/common.h")
add_files("src/main.cpp")
add_deps("lib1", "lib2")
-- Target 2: static library 1
target("lib1")
set_kind("static")
set_pcxxheader("src/lib1_pch.h")
add_files("src/lib1.cpp")
-- Target 3: static library 2
target("lib2")
set_kind("static")
set_pcxxheader("src/lib2_pch.h")
add_files("src/lib2.cpp")
-- Target 4: another executable with different PCH
target("tool")
set_kind("binary")
set_pcxxheader("src/tool_pch.h")
add_files("src/tool.cpp")
-- Target 5: executable without PCH
target("simple")
set_kind("binary")
add_files("src/simple.cpp")
-- Target 6: executable without PCH but depends on PCH library
target("consumer")
set_kind("binary")
add_files("src/consumer.cpp")
add_deps("lib1")
-- Target 7: PCH with .ipp extension
target("test_ipp_pch")
set_kind("binary")
set_pcxxheader("src/pch_test.ipp")
add_files("src/test_ipp.cpp")
-- Target 8: PCH with .inc extension
target("test_inc_pch")
set_kind("binary")
set_pcxxheader("src/pch_test.inc")
add_files("src/test_inc.cpp")
-- Target 9: PCH with .inl extension
target("test_inl_pch")
set_kind("binary")
set_pcxxheader("src/pch_test.inl")
add_files("src/test_inl.cpp")
-- Target 10: PCH with .tcc extension
target("test_tcc_pch")
set_kind("binary")
set_pcxxheader("src/pch_test.tcc")
add_files("src/test_tcc.cpp")
-- Target 11: PCH with .tpl extension
target("test_tpl_pch")
set_kind("binary")
set_pcxxheader("src/pch_test.tpl")
add_files("src/test_tpl.cpp")
|