Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Fixes to pass my integration tests#15

Open
Jarod42 wants to merge 33 commits intoEnhex:masterfrom
Jarod42:master
Open

Fixes to pass my integration tests#15
Jarod42 wants to merge 33 commits intoEnhex:masterfrom
Jarod42:master

Conversation

@Jarod42
Copy link
Copy Markdown

@Jarod42 Jarod42 commented Aug 15, 2021

Add support for:

  • sysincludedirs, forceinclude
  • pre/post build command
  • customcommands

Fix link to sibbling projects

Tested with https://github.com/Jarod42/premake-sample-projects

Comment thread _preload.lua Outdated
}

local default_toolset_map = {
["windows"] = "msc-v142", -- Visual Studio 2019
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
["windows"] = "msc-v142", -- Visual Studio 2019
["windows"] = "msc-v143", -- Visual Studio 2022

Jarod42 and others added 6 commits March 25, 2026 00:02
_preload.lua**: Added None and SharedItems to valid_kinds. Updated default MSVC toolset to v143 (VS2022). Updated action description.

**cmake.lua**: Extended generateProject to emit .cmake files for Utility, None, Makefile, and SharedItems project kinds (previously only C/C++).

**cmake_workspace.lua**: Implemented startproject support via VS_STARTUP_PROJECT (was a TODO).

**cmake_project.lua**: Major expansion. Added cross-platform command tokens using `${CMAKE_COMMAND} -E` instead of host-specific shell commands (fixes {COPYFILE}, {COPYFILEIFNEWER}, {MKDIR}, etc.). Fixed add_custom_command generation and pch relative paths. Added project kind handling for Utility/None (custom targets), SharedItems (interface libraries), Makefile (custom targets), WindowedApp (WIN32 flag). Made pic and lto independent of cppdialect. Added support for: cdialect, optimize, symbols, debugformat, warnings, externalwarnings, enablewarnings, disablewarnings, fatalwarnings, rtti, exceptionhandling, floatingpoint, visibility, inlinesvisibility, omitframepointer, unsignedchar, openmp, structmemberalign, buffersecuritycheck, strictaliasing, editandcontinue, multiprocessorcompile, vectorextensions, isaextensions, characterset, staticruntime/runtime (MSVC_RUNTIME_LIBRARY), compileas, targetprefix/targetsuffix/targetextension, objdir, dependson, syslibdirs, runpathdirs, entrypoint, linker (LLD), linkerfatalwarnings, systemversion, sanitize (expanded with Thread and UndefinedBehavior), and all C++23/gnu++23/intermediate dialect variants.
Updated to support the "full" premake5 API surface
rtti flag should be used only in c++ code.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants