Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
211caf06
Commit
211caf06
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Add support for setting channel via environmental vars
parent
b97b3622
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/cmake/Variables.cmake
+40
-4
40 additions, 4 deletions
indra/cmake/Variables.cmake
with
40 additions
and
4 deletions
indra/cmake/Variables.cmake
+
40
−
4
View file @
211caf06
...
...
@@ -23,9 +23,23 @@ set(LIBS_OPEN_PREFIX)
set
(
SCRIPTS_PREFIX ../scripts
)
set
(
VIEWER_PREFIX
)
set
(
INTEGRATION_TESTS_PREFIX
)
set
(
LL_TESTS ON CACHE BOOL
"Build and run unit and integration tests (disable for build timing runs to reduce variation"
)
set
(
INCREMENTAL_LINK OFF CACHE BOOL
"Use incremental linking on win32 builds (enable for faster links on some machines)"
)
set
(
ENABLE_MEDIA_PLUGINS ON CACHE BOOL
"Turn off building media plugins if they are imported by third-party library mechanism"
)
option
(
LL_TESTS
"Build and run unit and integration tests (disable for build timing runs to reduce variation"
ON
)
option
(
ENABLE_MEDIA_PLUGINS
"Turn off building media plugins if they are imported by third-party library mechanism"
ON
)
# Compiler and toolchain options
option
(
INCREMENTAL_LINK
"Use incremental linking on win32 builds (enable for faster links on some machines)"
OFF
)
option
(
USE_LTO
"Enable global and interprocedural optimizations"
OFF
)
option
(
FULL_DEBUG_SYMS
"Enable Generation of full pdb on msvc"
OFF
)
option
(
USE_ASAN
"Enable address sanitizer for detection of memory issues"
OFF
)
option
(
USE_LEAKSAN
"Enable address sanitizer for detection of memory leaks"
OFF
)
option
(
USE_UBSAN
"Enable undefined behavior sanitizer"
OFF
)
option
(
USE_THDSAN
"Enable thread sanitizer for detection of thread data races and mutexing issues"
OFF
)
if
(
USE_ASAN AND USE_LEAKSAN
)
message
(
FATAL_ERROR
"You may only enable either USE_ASAN or USE_LEAKSAN not both"
)
elseif
((
USE_ASAN OR USE_LEAKSAN
)
AND USE_THDSAN
)
message
(
FATAL_ERROR
"Address and Leak sanitizers are incompatible with thread sanitizer"
)
endif
(
USE_ASAN AND USE_LEAKSAN
)
set
(
VIEWER_SYMBOL_FILE
""
CACHE STRING
"Name of tarball into which to place symbol files"
)
set
(
BUGSPLAT_DB
""
CACHE STRING
"BugSplat database name, if BugSplat crash reporting is desired"
)
...
...
@@ -199,7 +213,29 @@ endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Default deploy grid
set
(
GRID agni CACHE STRING
"Target Grid"
)
set
(
VIEWER_CHANNEL
"Alchemy Test"
CACHE STRING
"Viewer Channel Name"
)
if
(
DEFINED ENV{VIEWER_CHANNEL_BASE}
)
set
(
VIEWER_CHANNEL_BASE $ENV{VIEWER_CHANNEL_BASE} CACHE STRING
"Viewer Channel Base Name"
FORCE
)
else
()
set
(
VIEWER_CHANNEL_BASE
"Alchemy"
CACHE STRING
"Viewer Channel Base Name"
)
endif
()
if
(
DEFINED ENV{VIEWER_CHANNEL_TYPE}
)
set
(
VIEWER_CHANNEL_TYPE $ENV{VIEWER_CHANNEL_TYPE} CACHE STRING
"Viewer Channel Type Name"
FORCE
)
else
()
set
(
VIEWER_CHANNEL_TYPE
"Test"
CACHE STRING
"Viewer Channel Type Name"
)
endif
()
if
(
DEFINED ENV{VIEWER_CHANNEL_CODENAME}
)
set
(
VIEWER_CHANNEL_CODENAME $ENV{VIEWER_CHANNEL_CODENAME} CACHE STRING
"Viewer Channel Code Name for Project type"
FORCE
)
else
()
set
(
VIEWER_CHANNEL_CODENAME
"Default"
CACHE STRING
"Viewer Channel Code Name for Project type"
)
endif
()
if
(
"
${
VIEWER_CHANNEL_TYPE
}
"
STREQUAL
"Project"
)
set
(
VIEWER_CHANNEL
"
${
VIEWER_CHANNEL_BASE
}
${
VIEWER_CHANNEL_TYPE
}
${
VIEWER_CHANNEL_CODENAME
}
"
)
else
()
set
(
VIEWER_CHANNEL
"
${
VIEWER_CHANNEL_BASE
}
${
VIEWER_CHANNEL_TYPE
}
"
)
endif
()
set
(
ENABLE_SIGNING OFF CACHE BOOL
"Enable signing the viewer"
)
set
(
SIGNING_IDENTITY
""
CACHE STRING
"Specifies the signing identity to use, if necessary."
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment