Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP Drop Premake #3703

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open

Conversation

expipiplus1
Copy link
Collaborator

@expipiplus1 expipiplus1 commented Mar 7, 2024

TODO:

  • Replace the release action workflows
  • Falcor tests
  • Test as a submodule
  • Archive slang-glslang and slang-llvm repos
  • Remove premake generated files and the cmake code to clean them
  • Update build instructions
  • Document CI setup for CMake

@csyonghe
Copy link
Collaborator

csyonghe commented Mar 7, 2024

We need to update the build instructions document along with this change.

@jkwak-work
Copy link
Collaborator

Our contribution guide needs to be modified as well.
https://github.com/jkwak-work/slang/blob/master/CONTRIBUTION.md#build-slang-from-source

@csyonghe
Copy link
Collaborator

Before we can remove premake, our gitlab CI also need to be updated first to use cmake.

jkwak-work added a commit to jkwak-work/slang that referenced this pull request Apr 24, 2024
Releated to shader-slang#3703

Removing the build instruction with Premake and replacing it with an
instruction with CMake. It is because we are going to move over to CMake
anytime soon.

Bumpping the required CMake version to 3.25.0. When CMakePresets.json
has "version:6" it requires CMake version to be 3.25 or above. See the
URL below for more information,
  https://cmake.org/cmake/help/latest/release/3.25.html
jkwak-work added a commit to jkwak-work/slang that referenced this pull request Apr 24, 2024
Releated to shader-slang#3703

Removing the build instruction with Premake and replacing it with an
instruction with CMake. It is because we are going to move over to CMake
anytime soon.

Bumping the required CMake version to 3.25.0. When CMakePresets.json
has "version:6" it requires CMake version to be 3.25 or above. See the
URL below for more information,
  https://cmake.org/cmake/help/latest/release/3.25.html
@kaizhangNV
Copy link
Contributor

looks like nothing change on : release-*.yml files. How is that going to work? Because those workflows also use premake to build the release binary?

jkwak-work added a commit to jkwak-work/slang that referenced this pull request Apr 24, 2024
Releated to shader-slang#3703

Removing the build instruction with Premake and replacing it with an
instruction with CMake. It is because we are going to move over to CMake
anytime soon.

Bumping the required CMake version to 3.25.0. When CMakePresets.json
has "version:6", it requires CMake version to be 3.25 or above. See the
URL below for more information,
  https://cmake.org/cmake/help/latest/release/3.25.html

CMakeLists.txt copies the prebuilt binary files from
  external/slang-binaries/bin/windows-x64
jkwak-work added a commit to jkwak-work/slang that referenced this pull request Apr 24, 2024
Releated to shader-slang#3703

Removing the build instruction with Premake and replacing it with an
instruction with CMake. It is because we are going to move over to CMake
anytime soon.

Bumping the required CMake version to 3.25.0. When CMakePresets.json
has "version:6", it requires CMake version to be 3.25 or above. See the
URL below for more information,
  https://cmake.org/cmake/help/latest/release/3.25.html

CMakeLists.txt copies the prebuilt binary files from
  external/slang-binaries/bin/windows-x64

CMakeLists.txt was copying "slang-llvm.dll" to build/Release/lib
directory when it should have been build/Release/bin. It made slang-test
to ignore all FILECHECK tests. This is fixed.
csyonghe added a commit that referenced this pull request Apr 25, 2024
Releated to #3703

Removing the build instruction with Premake and replacing it with an
instruction with CMake. It is because we are going to move over to CMake
anytime soon.

Bumping the required CMake version to 3.25.0. When CMakePresets.json
has "version:6", it requires CMake version to be 3.25 or above. See the
URL below for more information,
  https://cmake.org/cmake/help/latest/release/3.25.html

CMakeLists.txt copies the prebuilt binary files from
  external/slang-binaries/bin/windows-x64

CMakeLists.txt was copying "slang-llvm.dll" to build/Release/lib
directory when it should have been build/Release/bin. It made slang-test
to ignore all FILECHECK tests. This is fixed.

Co-authored-by: Yong He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants