-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 4.0 dev snapshot
- Loading branch information
Showing
916 changed files
with
55,089 additions
and
56,113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@echo off | ||
setlocal | ||
|
||
rem %1 -> Falcor Core Directory Path | ||
rem %2 -> Platform Short Name | ||
rem %3 -> Output Directory | ||
rem %4 -> WINDSDK Directory | ||
|
||
setlocal | ||
|
||
SET ExtDir=%1\Externals\.packman\ | ||
SET OutDir=%3 | ||
SET FalcorDir=%1\Falcor\ | ||
if not exist "%OutDir%" mkdir "%OutDir%" | ||
|
||
rem Copy Falcor's files | ||
IF not exist %OutDir%\Data\ mkdir %OutDir%\Data >nul | ||
IF exist %FalcorDir%\ShadingUtils\ (xcopy %FalcorDir%\ShadingUtils\*.* %OutDir%\Data /s /y /d) | ||
IF exist %FalcorDir%\Raytracing\Data\ (xcopy %FalcorDir%\Raytracing\Data\*.* %OutDir%\Data /s /y /d /q >nul) | ||
call %~dp0\deployproject.bat %FalcorDir% %OutDir% | ||
|
||
rem Copy externals | ||
robocopy %ExtDir%\Python\ %OutDir% Python37*.dll /r:0 >nul | ||
robocopy %ExtDir%\Python %OutDir%\Python /E /r:0 >nul | ||
robocopy %ExtDir%\AntTweakBar\lib %OutDir% AntTweakBar64.dll /r:0 >nul | ||
robocopy %ExtDir%\FreeImage %OutDir% freeimage.dll /r:0 >nul | ||
robocopy %ExtDir%\assimp\bin\%2 %OutDir% *.dll /r:0 >nul | ||
robocopy %ExtDir%\FFMpeg\bin\%2 %OutDir% *.dll /r:0 >nul | ||
robocopy %ExtDir%\dxcompiler\%2 %OutDir% dxcompiler.dll /r:0 >nul | ||
rem robocopy %ExtDir%\dxcompiler\windows-x86_64\release\%2 %OutDir% *.dll /r:0 >nul | ||
robocopy %ExtDir%\OptiX\bin64 %OutDir% *.dll /r:0 >nul | ||
robocopy %ExtDir%\openvr\bin\win64 %OutDir% openvr_api.dll /r:0 >nul | ||
robocopy %ExtDir%\Slang\bin\windows-x64\release %OutDir% *.dll /r:0 >nul | ||
robocopy %ExtDir%\GLFW\lib %OutDir% *.dll /r:0 >nul | ||
robocopy %ExtDir%\WinPixEventRuntime\bin\x64 %OutDir% WinPixEventRuntime.dll /r:0 >nul | ||
robocopy "%~4\Redist\D3D\%2" %OutDir% dxil.dll /r:0 >nul | ||
|
||
rem Copy NVAPI | ||
set NvApiDir=%ExtDir%\NVAPI | ||
IF exist %NvApiDir% ( | ||
IF not exist %OutDir%\Data\NVAPI mkdir %OutDir%\Data\NVAPI >nul | ||
copy /y %NvApiDir%\nvHLSLExtns.h %OutDir%\Data\NVAPI | ||
copy /y %NvApiDir%\nvHLSLExtnsInternal.h %OutDir%\Data\NVAPI | ||
copy /y %NvApiDir%\nvShaderExtnEnums.h %OutDir%\Data\NVAPI | ||
) | ||
|
||
rem robocopy sets the error level to something that is not zero even if the copy operation was successful. Set the error level to zero | ||
exit /b 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
rem %1==projectDir %2==outputdir | ||
setlocal | ||
|
||
IF not exist %2\Data\ ( mkdir %2\Data >nul ) | ||
IF exist %1\data\ ( xcopy %1\Data\*.* %2\Data /s /y /d /q >nul) | ||
|
File renamed without changes.
0
packman/packman → Build/packman/packman
100755 → 100644
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import sys | ||
import os | ||
|
||
def patchGroup(propSheet, group, val): | ||
groupStart = "<" + group + ">" | ||
groupEnd = "</" + group + ">" | ||
s = propSheet.find(groupStart) | ||
e = propSheet.find(groupEnd) | ||
if(s == -1 or e == -1): | ||
sys.exit("Can't find a `" + groupStart + "` section in the file. This is probably because someone deleted it for the property sheet. Revert the changes and try again.\n") | ||
|
||
if(s >= e): | ||
sys.exit("The property sheet is corrupted. `" + groupEnd + "` can't appear before `" + groupStart + "` \n") | ||
|
||
s += len(groupStart) | ||
propSheet = propSheet[:s] + val + propSheet[e:] | ||
return propSheet | ||
|
||
if(len(sys.argv) != 4): | ||
sys.exit("Usage:\npatchpropssheet.py <Falcor Core Directory> <Current Solution Directory> <Backend [FALCOR_D3D12, FALCOR_VK]>") | ||
|
||
coreDir = sys.argv[1] | ||
solutionDir = sys.argv[2] | ||
backend = sys.argv[3] | ||
propsFileName = coreDir + "\\Falcor\\falcor.props" | ||
# Open and read the file | ||
f = open(propsFileName) | ||
propSheet = f.read() | ||
f.close() | ||
|
||
# Get a relative path from the Current Solution Directory to the Falcor Core Directory. | ||
relcorepath = os.path.relpath(coreDir, solutionDir) | ||
coreDir = "$(SolutionDir)\\" + relcorepath | ||
|
||
propSheet = patchGroup(propSheet, "FALCOR_CORE_DIRECTORY", coreDir) | ||
propSheet = patchGroup(propSheet, "FALCOR_BACKEND", backend) | ||
|
||
# Save the file | ||
f = open(propsFileName, "w") | ||
f.write(propSheet) | ||
f.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@echo off | ||
IF [%1] == [] GOTO helpMsg | ||
set PM_DISABLE_VS_WARNING=true | ||
call "%~dp0packman\packman.cmd " pull "%1" --platform win | ||
if errorlevel 1 exit /b 1 | ||
exit /b 0 | ||
|
||
:helpMsg | ||
echo Please specify a dependency file | ||
exit /b 1 |
0
update_dependencies.sh → Build/update_dependencies.sh
100755 → 100644
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.