|
5 | 5 | # You can uncomment different sections to set what you want. |
6 | 6 |
|
7 | 7 | # # (Optional) Language of the script |
8 | | -# Language: "c++" |
| 8 | +Language: "c++" |
9 | 9 |
|
10 | | -# # (Optional) Preferred profiles for the script for each platform. |
11 | | -# # Profiles are listed in user config file, |
12 | | -# # which can be retreived by running `runcpp2 --show-config-path` |
13 | | -# # Each of the platform dependent settings can be listed under |
14 | | -# # - Default |
15 | | -# # - Windows |
16 | | -# # - Linux |
17 | | -# # - MacOS |
18 | | -# # - Unix |
19 | | -# RequiredProfiles: |
20 | | -# Windows: ["g++"] |
21 | | -# Linux: ["g++"] |
22 | | -# MacOS: ["g++"] |
| 10 | +# (Optional) Preferred profiles for the script for each platform. |
| 11 | +# Profiles are listed in user config file, |
| 12 | +# which can be retreived by running `runcpp2 --show-config-path` |
| 13 | +# Each of the platform dependent settings can be listed under |
| 14 | +# - Default |
| 15 | +# - Windows |
| 16 | +# - Linux |
| 17 | +# - MacOS |
| 18 | +# - Unix |
| 19 | +RequiredProfiles: |
| 20 | + Windows: ["g++"] |
| 21 | + Linux: ["g++"] |
| 22 | + MacOS: ["g++"] |
23 | 23 |
|
24 | | -# # (Optional) Override the default compile flags for each platform. |
25 | | -# OverrideCompileFlags: |
26 | | -# # Target Platform |
27 | | -# Default: |
28 | | -# # Profile with the respective flags to override. ("Default" for any profile) |
29 | | -# "g++": |
30 | | -# # (Optional) Flags to be removed from the default compile flags, separated by space |
31 | | -# Remove: "" |
32 | | -# |
33 | | -# # (Optional) Additional flags to be appended to the default compile flags, separated by space |
34 | | -# Append: "" |
| 24 | +# (Optional) Override the default compile flags for each platform. |
| 25 | +OverrideCompileFlags: |
| 26 | + # Target Platform |
| 27 | + Default: |
| 28 | + # Profile with the respective flags to override. ("Default" for any profile) |
| 29 | + "g++": |
| 30 | + # (Optional) Flags to be removed from the default compile flags, separated by space |
| 31 | + Remove: "" |
| 32 | + |
| 33 | + # (Optional) Additional flags to be appended to the default compile flags, separated by space |
| 34 | + Append: "" |
35 | 35 |
|
36 | | -# # (Optional) Override the default link flags for each platform. |
37 | | -# OverrideLinkFlags: |
38 | | -# # Target Platform |
39 | | -# Default: |
40 | | -# # Profile with the respective flags to override ("Default" for any profile) |
41 | | -# "g++": |
42 | | -# # (Optional) Flags to be removed from the default link flags, separated by space |
43 | | -# Remove: "" |
44 | | -# |
45 | | -# # (Optional) Additional flags to be appended to the default link flags, |
46 | | -# # separated by space |
47 | | -# Append: "" |
| 36 | +# (Optional) Override the default link flags for each platform. |
| 37 | +OverrideLinkFlags: |
| 38 | + # Target Platform |
| 39 | + Default: |
| 40 | + # Profile with the respective flags to override ("Default" for any profile) |
| 41 | + "g++": |
| 42 | + # (Optional) Flags to be removed from the default link flags, separated by space |
| 43 | + Remove: "" |
| 44 | + |
| 45 | + # (Optional) Additional flags to be appended to the default link flags, |
| 46 | + # separated by space |
| 47 | + Append: "" |
48 | 48 |
|
49 | | -# # (Optional) Other source files (relative to script file path) to be compiled. |
50 | | -# OtherFilesToBeCompiled: |
51 | | -# # Target Platform |
52 | | -# Default: |
53 | | -# # Target Profile |
54 | | -# Default: |
55 | | -# - "./AnotherSourceFile.cpp" |
| 49 | +# (Optional) Other source files (relative to script file path) to be compiled. |
| 50 | +OtherFilesToBeCompiled: |
| 51 | + # Target Platform |
| 52 | + Default: |
| 53 | + # Target Profile |
| 54 | + Default: |
| 55 | + - "./AnotherSourceFile.cpp" |
56 | 56 |
|
57 | | -# # (Optional) Define cross-compiler defines for each platform and profile. |
58 | | -# # Defines can be specified as just a name or as a name-value pair. |
59 | | -# Defines: |
60 | | -# # Target Platform (Default, Windows, Linux, MacOS, or Unix) |
61 | | -# Default: |
62 | | -# # Profile name (e.g., "g++", "clang++", "msvc", or "Default" for any profile) |
63 | | -# "Default": |
64 | | -# - "EXAMPLE_DEFINE" # Define without a value |
65 | | -# - "VERSION_MAJOR=1" # Define with a value |
| 57 | +# (Optional) Define cross-compiler defines for each platform and profile. |
| 58 | +# Defines can be specified as just a name or as a name-value pair. |
| 59 | +Defines: |
| 60 | + # Target Platform (Default, Windows, Linux, MacOS, or Unix) |
| 61 | + Default: |
| 62 | + # Profile name (e.g., "g++", "clang++", "msvc", or "Default" for any profile) |
| 63 | + "Default": |
| 64 | + - "EXAMPLE_DEFINE" # Define without a value |
| 65 | + - "VERSION_MAJOR=1" # Define with a value |
66 | 66 |
|
67 | | -# # (Optional) The list of dependencies needed by the script |
68 | | -# Dependencies: |
69 | | -# # Dependency name |
70 | | -# - Name: MyLibrary |
71 | | -# |
72 | | -# # Supported platforms of the dependency |
73 | | -# Platforms: [Windows, Linux, MacOS] |
74 | | -# |
75 | | -# # The source of getting the dependency (Git, Local) |
76 | | -# Source: |
77 | | -# # Git: Dependency exists in a git server, and needs to be cloned |
78 | | -# # Local: Dependency exists in local filesystem |
79 | | -# Type: Git |
80 | | -# |
81 | | -# # Git URL for Git type, path to a directory for Local type |
82 | | -# Value: "https://github.com/MyUser/MyLibrary.git" |
83 | | -# |
84 | | -# # Library Type (Static, Object, Shared, Header) |
85 | | -# LibraryType: Static |
86 | | -# |
87 | | -# # (Optional) Paths to be added to the include paths, relative to the dependency folder |
88 | | -# IncludePaths: |
89 | | -# - "src/include" |
90 | | -# |
91 | | -# # (Optional if LibraryType is Header) Link properties of the dependency |
92 | | -# LinkProperties: |
93 | | -# # Properties for searching the library binary for the profile |
94 | | -# # You can also use "Default" if all compilers use the same values |
95 | | -# "g++": |
96 | | -# # The library names to be searched for when linking against the script. |
97 | | -# # Binaries with linkable extension that contains one of the names will be linked |
98 | | -# SearchLibraryNames: ["MyLibrary"] |
99 | | -# |
100 | | -# # (Optional) The library names to be excluded from being searched. |
101 | | -# # Works the same as SearchLibraryNames but will NOT be linked instead |
102 | | -# ExcludeLibraryNames: [] |
103 | | -# |
104 | | -# # The path (relative to the dependency folder) to be searched for the dependency binaries |
105 | | -# SearchDirectories: ["./build"] |
106 | | -# |
107 | | -# # (Optional) Additional link flags for this dependency for each platform |
108 | | -# AdditionalLinkOptions: |
109 | | -# Default: [] |
110 | | -# |
111 | | -# # (Optional) Setup commands are run once when the dependency is populated |
112 | | -# Setup: |
113 | | -# # Target Platform |
114 | | -# Default: |
115 | | -# # Setup shell commands for the specified profile. |
116 | | -# # Default commands are run in the dependency folder |
117 | | -# # You can also use "Default" if all the compilers run the same setup commands |
118 | | -# "g++": |
119 | | -# - "mkdir build" |
120 | | -# |
121 | | -# |
122 | | -# # (Optional) Build commands are run every time before the script is being built |
123 | | -# Build: |
124 | | -# # Target Platform |
125 | | -# Default: |
126 | | -# # Target Profile ("Default" for any profile) |
127 | | -# "g++": |
128 | | -# - "cd build && cmake .." |
129 | | -# - "cd build && cmake --build ." |
130 | | -# |
131 | | -# # (Optional) Cleanup commands are run when the reset option is present. Normally nothing needs |
132 | | -# # to be done since the dependency folder will be removed automatically. |
133 | | -# Cleanup: |
134 | | -# Linux: |
135 | | -# "g++": |
136 | | -# - "sudo apt purge MyLibrary" |
137 | | -# |
138 | | -# # (Optional) Files to be copied for each platform and profile |
139 | | -# FilesToCopy: |
140 | | -# # Target Platform (Default, Windows, Linux, MacOS, or Unix) |
141 | | -# Default: |
142 | | -# # Profile name (e.g., "g++", "clang++", "msvc", or "Default" for any profile) |
143 | | -# "Default": |
144 | | -# # List of files to copy (relative to the dependency folder) |
145 | | -# - "assets/textures/sprite.png" |
146 | | -# Windows: |
147 | | -# "msvc": |
148 | | -# - "assets/textures/sprite.png" |
149 | | -# - "assets/fonts/windows_specific_font.ttf" |
150 | | -# Linux: |
151 | | -# "g++": |
152 | | -# - "assets/textures/sprite.png" |
153 | | -# - "assets/shaders/linux_optimized_shader.glsl" |
| 67 | +# (Optional) The list of dependencies needed by the script |
| 68 | +Dependencies: |
| 69 | + # Dependency name |
| 70 | +- Name: MyLibrary |
| 71 | + |
| 72 | + # Supported platforms of the dependency |
| 73 | + Platforms: [Windows, Linux, MacOS] |
| 74 | + |
| 75 | + # The source of getting the dependency (Git, Local) |
| 76 | + Source: |
| 77 | + # Git: Dependency exists in a git server, and needs to be cloned |
| 78 | + # Local: Dependency exists in local filesystem |
| 79 | + Type: Git |
| 80 | + |
| 81 | + # Git URL for Git type, path to a directory for Local type |
| 82 | + Value: "https://github.com/MyUser/MyLibrary.git" |
| 83 | + |
| 84 | + # Library Type (Static, Object, Shared, Header) |
| 85 | + LibraryType: Static |
| 86 | + |
| 87 | + # (Optional) Paths to be added to the include paths, relative to the dependency folder |
| 88 | + IncludePaths: |
| 89 | + - "src/include" |
| 90 | + |
| 91 | + # (Optional if LibraryType is Header) Link properties of the dependency |
| 92 | + LinkProperties: |
| 93 | + # Properties for searching the library binary for the profile |
| 94 | + # You can also use "Default" if all compilers use the same values |
| 95 | + "g++": |
| 96 | + # The library names to be searched for when linking against the script. |
| 97 | + # Binaries with linkable extension that contains one of the names will be linked |
| 98 | + SearchLibraryNames: ["MyLibrary"] |
| 99 | + |
| 100 | + # (Optional) The library names to be excluded from being searched. |
| 101 | + # Works the same as SearchLibraryNames but will NOT be linked instead |
| 102 | + ExcludeLibraryNames: [] |
| 103 | + |
| 104 | + # The path (relative to the dependency folder) to be searched for the dependency binaries |
| 105 | + SearchDirectories: ["./build"] |
| 106 | + |
| 107 | + # (Optional) Additional link flags for this dependency for each platform |
| 108 | + AdditionalLinkOptions: |
| 109 | + Default: [] |
| 110 | + |
| 111 | + # (Optional) Setup commands are run once when the dependency is populated |
| 112 | + Setup: |
| 113 | + # Target Platform |
| 114 | + Default: |
| 115 | + # Setup shell commands for the specified profile. |
| 116 | + # Default commands are run in the dependency folder |
| 117 | + # You can also use "Default" if all the compilers run the same setup commands |
| 118 | + "g++": |
| 119 | + - "mkdir build" |
| 120 | + |
| 121 | + |
| 122 | + # (Optional) Build commands are run every time before the script is being built |
| 123 | + Build: |
| 124 | + # Target Platform |
| 125 | + Default: |
| 126 | + # Target Profile ("Default" for any profile) |
| 127 | + "g++": |
| 128 | + - "cd build && cmake .." |
| 129 | + - "cd build && cmake --build ." |
| 130 | + |
| 131 | + # (Optional) Cleanup commands are run when the reset option is present. Normally nothing needs |
| 132 | + # to be done since the dependency folder will be removed automatically. |
| 133 | + Cleanup: |
| 134 | + Linux: |
| 135 | + "g++": |
| 136 | + - "sudo apt purge MyLibrary" |
| 137 | + |
| 138 | + # (Optional) Files to be copied to next to output binary for each platform and profile |
| 139 | + FilesToCopy: |
| 140 | + # Target Platform (Default, Windows, Linux, MacOS, or Unix) |
| 141 | + Default: |
| 142 | + # Profile name (e.g., "g++", "clang++", "msvc", or "Default" for any profile) |
| 143 | + "Default": |
| 144 | + # List of files to copy (relative to the dependency folder) |
| 145 | + - "assets/textures/sprite.png" |
| 146 | + Windows: |
| 147 | + "msvc": |
| 148 | + - "assets/textures/sprite.png" |
| 149 | + - "assets/fonts/windows_specific_font.ttf" |
| 150 | + Linux: |
| 151 | + "g++": |
| 152 | + - "assets/textures/sprite.png" |
| 153 | + - "assets/shaders/linux_optimized_shader.glsl" |
0 commit comments