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
4528ce87
Commit
4528ce87
authored
4 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Define project channel in a text file and read in from that with optional environment override
parent
211caf06
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/cmake/BuildVersion.cmake
+31
-2
31 additions, 2 deletions
indra/cmake/BuildVersion.cmake
indra/cmake/Variables.cmake
+0
-24
0 additions, 24 deletions
indra/cmake/Variables.cmake
indra/newview/VIEWER_PROJECT_CODENAME.txt
+1
-0
1 addition, 0 deletions
indra/newview/VIEWER_PROJECT_CODENAME.txt
with
32 additions
and
26 deletions
indra/cmake/BuildVersion.cmake
+
31
−
2
View file @
4528ce87
# -*- cmake -*-
# Construct the viewer version number based on the indra/VIEWER_VERSION file
#Construct the viewer channel from environment variables or defaults
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
()
option
(
REVISION_FROM_VCS
"Get current revision from vcs"
ON
)
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
(
"
${
VIEWER_CHANNEL_TYPE
}
"
STREQUAL
"Project"
)
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_VERSION_CODENAME_FILE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/newview/VIEWER_PROJECT_CODENAME.txt"
)
if
(
EXISTS
${
VIEWER_VERSION_CODENAME_FILE
}
)
file
(
STRINGS
${
VIEWER_VERSION_CODENAME_FILE
}
VIEWER_CHANNEL_CODENAME
)
else
()
set
(
VIEWER_CHANNEL_CODENAME
"Default"
CACHE STRING
"Viewer Channel Code Name for Project type"
)
endif
()
endif
()
set
(
VIEWER_CHANNEL
"
${
VIEWER_CHANNEL_BASE
}
${
VIEWER_CHANNEL_TYPE
}
${
VIEWER_CHANNEL_CODENAME
}
"
)
else
()
set
(
VIEWER_CHANNEL
"
${
VIEWER_CHANNEL_BASE
}
${
VIEWER_CHANNEL_TYPE
}
"
)
endif
()
# Construct the viewer version number based on the indra/VIEWER_VERSION file
option
(
REVISION_FROM_VCS
"Get current revision from vcs"
ON
)
find_package
(
Git
)
if
(
NOT DEFINED VIEWER_SHORT_VERSION
)
# will be true in indra/, false in indra/newview/
...
...
This diff is collapsed.
Click to expand it.
indra/cmake/Variables.cmake
+
0
−
24
View file @
4528ce87
...
...
@@ -213,30 +213,6 @@ endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Default deploy grid
set
(
GRID agni CACHE STRING
"Target Grid"
)
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.
indra/newview/VIEWER_PROJECT_CODENAME.txt
0 → 100644
+
1
−
0
View file @
4528ce87
ShrewdShepherd
\ No newline at end of file
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