44 lines
3.1 KiB
Plaintext
44 lines
3.1 KiB
Plaintext
# Unity config file - v1.0
|
|
# - defines 'unity' compilation units for a project/solution.
|
|
#
|
|
# Top Tips
|
|
# Regex
|
|
# - Regexs can be of a form that include folders and exclude specific files / file patterns.
|
|
# - eg. ^(((\.*|\w:)\/)*)(ai|animation)\/(((?!exclusions_can\.|go_here\.).)*)(\.)(cpp|c)$
|
|
# - Interactive regexp help? :- http://www.rubular.com/
|
|
# Commands
|
|
# - In addition to regexs global exclusions are supported making it easy to see what is being excluded.
|
|
# - Ideally nothing should need to be excluded, too many exclusions will lead to a slow build.
|
|
# - Leave a comment why something is excluded.
|
|
# - Comment out 'set enabled' to disable the unity build.
|
|
# Design
|
|
# - Coupling related systems within each compilation unit can lead to better build speed.
|
|
# - Evenly balancing the number of matched files across each compilation is also good practice.
|
|
# https://devstar.rockstargames.com/wiki/index.php/Unity_Build
|
|
|
|
set enabled
|
|
|
|
# compilation units ( unity files ) : unity_id, regexp, regexps_option
|
|
winrt_files.winrt ^.*\.winrt\.(cpp|c)$ i
|
|
scene ^(((\.*|\w:)\/)*)(scene)\/(.*)(\.)(cpp|c)$ i
|
|
script_commands_a_g ^(((\.*|\w:)\/)*)(script)\/(commands_[a-g])(.*)(\.)(cpp|c)$ i
|
|
script_commands_h_m ^(((\.*|\w:)\/)*)(script)\/(commands_[h-m])(.*)(\.)(cpp|c)$ i
|
|
script_commands_n_r ^(((\.*|\w:)\/)*)(script)\/(commands_[n-r])(.*)(\.)(cpp|c)$ i
|
|
script_commands_s_z ^(((\.*|\w:)\/)*)(script)\/(commands_[s-z])(.*)(\.)(cpp|c)$ i
|
|
# NOTE - there's no way to negate an entire sequence (at least not according to
|
|
# the tutorial link above) so script_other is eliminating everything starting
|
|
# with a lowercase c, not commands_ as it should be. This works for now because
|
|
# there's nothing with a lowercase c for a name except commands.
|
|
script_other ^(((\.*|\w:)\/)*)(script)\/([^c])(.*)(\.)(cpp|c)$ i
|
|
security ^(((\.*|\w:)\/)*)(security)\/(.*)(\.)(cpp|c)$ i
|
|
shaders ^(((\.*|\w:)\/)*)(shaders)\/(.*)(\.)(cpp|c)$ i
|
|
# stats ^(((\.*|\w:)\/)*)(stats)\/(.*)(\.)(cpp|c)$ i
|
|
streaming_system ^(((\.*|\w:)\/)*)(streaming|system)\/(.*)(\.)(cpp|c)$ i
|
|
task_a_c ^(((\.*|\w:)\/)*)(task)\/(Animation|Combat|Crimes)\/(.*)(\.)(cpp|c)$ i
|
|
task_d_h ^(((\.*|\w:)\/)*)(task)\/(Debug|Default|General|Helpers)\/(.*)(\.)(cpp|c)$ i
|
|
task_m ^(((\.*|\w:)\/)*)(task)\/(Metadata|Motion|Movement)\/(.*)(\.)(cpp|c)$ i
|
|
task_p_r ^(((\.*|\w:)\/)*)(task)\/(Physics|Response)\/(.*)(\.)(cpp|c)$ i
|
|
task_s ^(((\.*|\w:)\/)*)(task)\/(Scenario|Service)\/(.*)(\.)(cpp|c)$ i
|
|
task_s_v ^(((\.*|\w:)\/)*)(task)\/(System|Vehicle)\/(.*)(\.)(cpp|c)$ i
|
|
task_w ^(((\.*|\w:)\/)*)(task)\/(Weapons)\/(.*)(\.)(cpp|c)$ i
|