Skip to content

Commit

Permalink
vs2019 updates
Browse files Browse the repository at this point in the history
switch to local fs-build-variables clone

use local autobuild-1.1 repo

fix shell; autobuild cache
  • Loading branch information
humbletim committed Jul 30, 2021
1 parent a257afa commit 4c7ac83
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 74 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/CompileUbuntu.yml

This file was deleted.

77 changes: 58 additions & 19 deletions .github/workflows/CompileWindows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,55 +10,94 @@ jobs:
windows_build:
runs-on: windows-latest
env:
AUTOBUILD_VSVER: 120
FSVS_TARGET: 'Visual Studio 16 2019'
AUTOBUILD_VSVER: 164
PreferredToolArchitecture: x64
VIEWER_CHANNEL: FirestormVR-GHA
VIEWER_VERSION_REVISION: 60799

VIEWER_VERSION_REVISION: 64531
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set env
shell: cmd
run: |
echo %cd%
df -h
mkdir c:\cache
mkdir c:\cache\autobuild
mkdir build-vc${{ env.AUTOBUILD_VSVER }}-64
cd build-vc${{ env.AUTOBUILD_VSVER }}-64
mkdir c:\cache\packages
mklink /j packages c:\cache\packages
mkdir c:\build
mkdir c:\build\newview
mklink /j newview c:\build\newview
cd ..
dir build-vc${{ env.AUTOBUILD_VSVER }}-64
dir
echo AUTOBUILD_ID=->> %GITHUB_ENV%
echo AUTOBUILD_INSTALLABLE_CACHE=c:\cache\autobuild>> %GITHUB_ENV%
echo AUTOBUILD_VARIABLES_FILE=%cd%\fs-build-variables\variables>> %GITHUB_ENV%
- name: Set VIEWER_VERSION_GITHASH
shell: bash
run: |
majorVer=`cat indra/newview/VIEWER_VERSION.txt | cut -d "." -f 1`
minorVer=`cat indra/newview/VIEWER_VERSION.txt | cut -d "." -f 2`
patchVer=`cat indra/newview/VIEWER_VERSION.txt | cut -d "." -f 3`
echo ::set-env name=VIEWER_VERSION_STR::${majorVer}.${minorVer}.${patchVer}.${VIEWER_VERSION_REVISION}
echo ::set-env name=VIEWER_VERSION_GITHASH::$(git log -n 1 | grep "Merge " | awk '{ print $2 }' | xargs git rev-parse --short || git rev-parse --short HEAD)
- name: Set env
shell: cmd
run: |
echo ::set-env name=AUTOBUILD_ID::-
echo ::set-env name=AUTOBUILD_VARIABLES_FILE::%cd%\fs-build-variables\variables
- name: Download VS2013 Community
run: choco install visualstudiocommunity2013
echo VIEWER_VERSION_STR=${majorVer}.${minorVer}.${patchVer}.${VIEWER_VERSION_REVISION} >> $GITHUB_ENV
echo VIEWER_VERSION_GITHASH=$(git log -n 1 | grep "Merge " | awk '{ print $2 }' | xargs git rev-parse --short || git rev-parse --short HEAD) >> $GITHUB_ENV
df -h
- name: Setup vsdevenv
uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 2.7
architecture: x64
- name: Get software versions please
shell: cmd
run: |
echo AUTOBUILD_INSTALLABLE_CACHE='%AUTOBUILD_INSTALLABLE_CACHE%'
cmake --version
git --version
python --version
cl.exe
MSBuild.exe -version
echo " "
df -h
- name: Install autobuild through PIP
run: pip install git+https://vcs.firestormviewer.org/autobuild-1.1#egg=autobuild
run: pip install git+https://github.com/humbletim/autobuild-1.1#egg=autobuild

- name: cache -- autobuild downloaded installables
id: cacheddownloads
uses: actions/cache@v2
with:
path: ${{ env.AUTOBUILD_INSTALLABLE_CACHE }}
key: ${{ runner.os }}-cacheddownloads-${{ hashFiles('autobuild.xml') }}-${{ env.VIEWER_CHANNEL }}
- name: cache -- packages cache
id: cachedpackages
uses: actions/cache@v2
with:
path: c:\cache\packages
key: ${{ runner.os }}-cachedpackages-${{ hashFiles('autobuild.xml') }}-${{ env.VIEWER_CHANNEL }}

- name: Configure autobuild
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
autobuild --version
autobuild configure -A 64 -c ReleaseFS_open -- --package --openal --chan ${{env.VIEWER_CHANNEL}} -DLL_TESTS:BOOL=FALSE
autobuild configure -A 64 -c ReleaseFS_open -- --package --openal --chan ${{ env.VIEWER_CHANNEL }} -DLL_TESTS:BOOL=FALSE -DVS_DISABLE_FATAL_WARNINGS=ON
- name: Build & Package
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
msbuild build-vc120-64/Firestorm.sln /target:llpackage /property:Configuration=Release;Platform=x64 /maxcpucount
msbuild build-vc${{ env.AUTOBUILD_VSVER }}-64/Firestorm.sln /target:llpackage /property:Configuration=Release;Platform=x64 /maxcpucount
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: windows-${{env.VIEWER_CHANNEL}}-${{env.VIEWER_VERSION_STR}}-${{env.VIEWER_VERSION_GITHASH}}
path: build-vc120-64/newview/Release/*_Setup.exe
name: windows-${{ env.VIEWER_CHANNEL }}-${{ env.VIEWER_VERSION_STR }}-${{ env.VIEWER_VERSION_GITHASH }}
path: build-vc${{ env.AUTOBUILD_VSVER }}-64/newview/Release/*_Setup.exe
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
url = https://github.com/ValveSoftware/openvr
[submodule "fs-build-variables"]
path = fs-build-variables
url = https://vcs.firestormviewer.org/fs-build-variables
url = https://github.com/humbletim/fs-build-variables
20 changes: 20 additions & 0 deletions indra/cmake/00-Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -304,4 +304,24 @@ else (USESYSTEMLIBS)
)
endif (USESYSTEMLIBS)

if (NOT GENERATE_DEBUG_SYMBOLS)
message(WARNING "DISENGAGING DEBUG SYMBOL GENERATION (removing /Z[oiI7]..)")
#string(REGEX REPLACE "/Z[oiI7]" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
string(REGEX REPLACE "/Z[oiI7]|/DEBUG" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
string(REGEX REPLACE "/Z[oiI7]|/DEBUG" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
string(REGEX REPLACE "/DEBUG(:[A-Z]+)?|/OPT:REF|/FORCE:MULTIPLE " "" CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
string(REGEX REPLACE "/DEBUG(:[A-Z]+)?|/OPT:REF|/FORCE:MULTIPLE " "" CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS}")
string(REGEX REPLACE "/DEBUG(:[A-Z]+)?|/OPT:REF|/FORCE:MULTIPLE " "" CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /DEBUG:NONE /INCREMENTAL:NO")
set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} /DEBUG:NONE /INCREMENTAL:NO")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /DEBUG:NONE /INCREMENTAL:NO")

message(STATUS
"== CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}\n"
"== CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS}\n"
"== CMAKE_CXX_LINKER_FLAGS ${CMAKE_CXX_LINKER_FLAGS}\n"
"== CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS}]\n"
)
endif()

endif(NOT DEFINED ${CMAKE_CURRENT_LIST_FILE}_INCLUDED)
4 changes: 2 additions & 2 deletions indra/newview/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2823,7 +2823,7 @@ if (PACKAGE AND (RELEASE_CRASH_REPORTING OR NON_RELEASE_CRASH_REPORTING) AND VIE

else (NOT BUGSPLAT_DB)
# BugSplat symbol-file generation
if (WINDOWS)
if (NO) #WINDOWS)
# Just pack up a tarball containing only the .pdb file for the
# executable. Because we intend to use cygwin tar, we must render
# VIEWER_SYMBOL_FILE in cygwin path syntax.
Expand All @@ -2849,7 +2849,7 @@ if (PACKAGE AND (RELEASE_CRASH_REPORTING OR NON_RELEASE_CRASH_REPORTING) AND VIE
)
add_custom_target(generate_symbols DEPENDS "${VIEWER_SYMBOL_FILE}" ${VIEWER_BINARY_NAME})
add_dependencies(generate_symbols ${VIEWER_BINARY_NAME})
endif (WINDOWS)
endif()
if (DARWIN)
# Have to run dsymutil first, then pack up the resulting .dSYM directory
add_custom_command(OUTPUT "${VIEWER_APP_DSYM}"
Expand Down
2 changes: 2 additions & 0 deletions indra/newview/fs_viewer_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def fs_linux_tar_excludes(self):
return "--exclude=%s/bin/.debug" % installer_name

def fs_save_windows_symbols(self):
return
self.fs_save_symbols("windows")

pdbName = "firestorm-bin.pdb"
Expand Down Expand Up @@ -139,6 +140,7 @@ def fs_save_osx_symbols( self ):
self.fs_save_symbols("darwin")

def fs_save_symbols(self, osname):
return
if (os.path.exists("%s/firestorm-symbols-%s-%d.tar.bz2" % (self.args['configuration'].lower(),
osname,
self.address_size))):
Expand Down
2 changes: 1 addition & 1 deletion scripts/configure_firestorm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ if [ $WANTS_CONFIG -eq $TRUE ] ; then
UNATTENDED="-DUNATTENDED=ON"
fi

cmake -G "$TARGET" ../indra $CHANNEL ${GITHASH} $FMODSTUDIO $OPENAL $KDU $OPENSIM $SINGLEGRID $AVX_OPTIMIZATION $AVX2_OPTIMIZATION $TRACY_PROFILER $TESTBUILD $PACKAGE \
cmake -G "${FSVS_TARGET:-$TARGET}" ../indra $CHANNEL ${GITHASH} $FMODSTUDIO $OPENAL $KDU $OPENSIM $SINGLEGRID $AVX_OPTIMIZATION $AVX2_OPTIMIZATION $TRACY_PROFILER $TESTBUILD $PACKAGE \
$UNATTENDED -DLL_TESTS:BOOL=OFF -DADDRESS_SIZE:STRING=$AUTOBUILD_ADDRSIZE -DCMAKE_BUILD_TYPE:STRING=$BTYPE \
$CRASH_REPORTING -DVIEWER_SYMBOL_FILE:STRING="${VIEWER_SYMBOL_FILE:-}" -DROOT_PROJECT_NAME:STRING=Firestorm $LL_ARGS_PASSTHRU ${VSCODE_FLAGS:-} | tee $LOG

Expand Down

0 comments on commit 4c7ac83

Please sign in to comment.